HP OneView REST API Reference
logindomains/grouptorolemapping
logindomains-grouptorolemapping.html[10/17/2013 10:36:06 AM]
}
The following example deletes the roles assiged to the group, ServerAdminGroup
from the directory, MyDirectory which is identified as 1.
https://example.com/rest/logindomains/grouptorolemapping/1/ServerAdminGroup
GET Retrieves the roles assignment for a directory group under a directory
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
Group2RolesMappingPerGroupVersion2 Returns the role assignment for
a directory group on success.
Returns an error message on failure.
Response Codes
REST API Response Codes
Examples
GET https://{appl}/rest/logindomains/grouptorolemapping/{loginDomainID}/{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",
...
}
The following example gets the directory groups to role assignment
for the specified directory which is identified as 1
https://example.com/rest/logindomains/grouptorolemapping/1/ServerAdminGroup
Group2RolesMappingPerGroupValidation
description: Data model for a group to roles mapping validation at a group level
type: object
Properties
category: description: Resource category used for authorizations and resource type groupings
type: string
created: description: Date and time when the resource was created
format: YYYY-MM-DDThh:mm:ss.sssZ
type: string
pattern: [1-2][0-9][0-9][0-9]-([0-1][0-9])-[0-3][0-9]T[0-2][0-9]:[0-5][0-9]:[0-5][0-9](.[0-9][0-9][0-9])?Z
uri: description: The canonical URI of the resource
type: string
modified: description: Date and time when the resource was last modified
format: YYYY-MM-DDThh:mm:ss.sssZ
type: string
pattern: [1-2][0-9][0-9][0-9]-([0-1][0-9])-[0-3][0-9]T[0-2][0-9]:[0-5][0-9]:[0-5][0-9](.[0-9][0-9][0-9])?Z
eTag:
description: Entity tag/version ID of the resource, the same value that is returned in the ETag header on a GET of