Virtual Data Center:Get Role Assignments

Search (SHIFT+S)



Get Role Assignments

GET /vdc/role-assignments

Get vdc role assignments


Required Roles

Requires one of the following roles:

  • SECURITY_ADMIN
  • RESTRICTED_SECURITY_ADMIN

Response Body

Role assignment details

Field Description Type Notes
<role_assignments_create>
<link>
<role_assignment>     0-* Elements
<role> String 0-* Elements
<subject_id> String
<group> String
</role_assignment>      
</role_assignments_create>

Examples

Request
GET https://192.168.0.0:4443/vdc/role-assignments HTTP/1.1

Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK 
Content-Type: application/xml 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<role_assignments_create>
     <link href="/vdc/role-assignments" rel="self"/>
     <role_assignment>
          <role>SYSTEM_AUDITOR</role>
          <role>SECURITY_ADMIN</role>
          <role>SYSTEM_MONITOR</role>
          <role>SYSTEM_ADMIN</role>
          <subject_id>super_sanity@sanity.local</subject_id>
     </role_assignment>
</role_assignments_create>
Notes: