Create a new RoleAssignment, thereby granting the principal the permissions defined by the given Role.
The auth token's access policy must allow action:use/createRoleAssignment.
Security
bearerAuth
The principal to be assigned to a Role.
Example:"principal:abc-123:idp:example-user"
Id of the Role to be assigned to the principal.
Example:"role:550e8400-e29b-41d4-a716-446655440000"
- https://access.eqix.equinix.comhttps://access.eqix.equinix.com/v1/roleAssignments
{ "principal": "principal:abc-123:idp:example-user", "roleId": "role:550e8400-e29b-41d4-a716-446655440000", "assignmentScope": { "id": "07218c48-343d-43e2-9831-a2080445cd22", "type": "PROJECT", "parent": { … } } }
Success
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": { … } } }