HP OneView REST API Reference

logindomains/grouptorolemapping
logindomains-grouptorolemapping.html[10/17/2013 10:36:06 AM]
returned).
Request
Header
Attributes Description
REST API Request Headers NOTE: The X-API-Version header is required for all APIs. For the current release, this must
be set to "X-API-Version:3"
Response Description
Group2RolesMappingList Returns list of directory groups to role assignments on success.
Returns an error message on failure.
Response Codes
REST API Response Codes
Examples
GET https://{appl}/rest/logindomains/grouptorolemapping/{loginDomainID}
The following example obtains a directory identifier for directory, MyDirectory.
Using GET https://example.com/rest/logindomains
Response:
{"name":"MyDirectory",
"loginDomain":"1",
"uri":"/rest/logindomains/1",
...
}
The following example retrieves all the groups to role assignments
for a configured directory which is identified as 1.
https://example.com/rest/logindomains/grouptorolemapping/1
URI: /rest/{/login-domains/grouptorolemapping/{loginDomain}/{groupName},
/logindomains/grouptorolemapping/{loginDomain}/{groupName}}
Method API
DELETE Deletes a directory group to appliance roles assignment.
Request
Header
Attributes Description
REST API Request Headers NOTE: The X-API-Version header is required for all APIs. For the current release, this must
be set to "X-API-Version:3"
Response Description
void Returns an empty string on success.
Returns an error message on failure.
Response Codes
REST API Response Codes
Examples
DELETE
https://{appl}/rest/logindomains/grouptorolemapping/{loginDomain}/{groupName}
The following example obtains a directory identifier for directory, MyDirectory
Using GET https://example.com/rest/logindomains
Response:
{"name":"MyDirectory",
"loginDomain":"1",
"uri":"/rest/logindomains/1",
...