Get a RoleAssignment by its id. For an Access Policy token, the RoleAssignment's assignmentScope must be at or below the project (if given, otherwise the project that owns the Access Policy) For a Role Assignment token, the RoleAssignment must be visible by the user and the project args are unsupported.
The auth token's access policy must allow action:use/getRoleAssignment.
Security
bearerAuth
- https://access.eqix.equinix.comhttps://access.eqix.equinix.com/v1/roleAssignments/{roleAssignmentId}
// No request payloadSuccess
Immutable UUID of this RoleAssignment
Example:"roleassignment:550e8400-e29b-41d4-a716-446655440000"
Id of the project that owns this assignment
Example:"project:abc-123"
Any of:
Globally unique string identifier for a principal formatted like "principal:...".
string(Principal)
Id of the Role assigned to the principal
Example:"role:550e8400-e29b-41d4-a716-446655440000"
Response
{ "roleAssignmentId": "roleassignment:550e8400-e29b-41d4-a716-446655440000", "projectId": "project:abc-123", "principal": "principal:abc-123:idp:example-user", "roleId": "role:550e8400-e29b-41d4-a716-446655440000", "roleName": "Network Admin", "assignmentScope": { "id": "07218c48-343d-43e2-9831-a2080445cd22", "type": "PROJECT", "name": "My Project", "parent": { … } } }