EMC ViPR REST API

Search (SHIFT+S)

API Reference


Update Role Assignments

PUT /projects/{id}/acl

Add or remove individual ACL entry(s)

idthe URN of a ViPR Project

Required Roles

Requires one of the following roles:

  • SECURITY_ADMIN
  • TENANT_ADMIN

Request Payload

All parameters are required unless otherwise stated.

Field Description Type Notes
<acl_assignment_changes>
<add>     0-* Elements
<privilege> String 0-* Elements
<subject_id> String
<group> String
<tenant> String
</add>      
<remove>     0-* Elements
<privilege> String 0-* Elements
<subject_id> String
<group> String
<tenant> String
</remove>      
</acl_assignment_changes>

Response Body

No data returned in response body

Field Description Type Notes
<acl_assignments>
<acl_assignment>     0-* Elements
<privilege> String 0-* Elements
<subject_id> String
<group> String
<tenant> String
</acl_assignment>      
</acl_assignments>

JSON Example

Request
PUT: https://192.168.0.0:4443/projects/urn:storageos:Project:3b279e34-2585-4332-ac1f-c5170a761737:/acl.json HTTP/1.1

Content-Type: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>

{
    "add": [
        {
            "privilege": [
                "USE"
            ],
            "tenant": "urn:storageos:TenantOrg:75b2b17f-7560-4759-9d46-4081907a27a3:"
        }
    ]
}
Response
HTTP/1.1 200 OK
Content-Type: application/json

{
    "acl": [
        {
            "privilege": [
                "USE"
            ],
            "tenant": "urn:storageos:TenantOrg:75b2b17f-7560-4759-9d46-4081907a27a3:"
        }
    ]
}