Get Permissions
GET /object/bucket/acl/permissions
Gets all ACL permissions.
Required Roles
Requires one of the following roles:
SYSTEM_ADMIN
SYSTEM_MONITOR
NAMESPACE_ADMIN
Response Body
Response contains the permission details for the ACL.
Field |
Description |
Type |
Notes |
permissions |
|
|
|
permission |
|
|
0-* Elements
|
id |
Permission id |
String |
|
display_name |
Display name |
String |
|
description |
Description |
String |
|
Examples
Request
GET https://192.168.0.0:4443/object/bucket/acl/permissions HTTP/1.1
Concept-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"?>
<permissions>
<permission>
<id>read</id>
<display_name>read</display_name>
</permission>
</permissions>
Request
GET https://192.168.0.0:4443/object/bucket/acl/permissions.json HTTP/1.1
Content-Type: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"permission": [
{
"id": "read",
"display_name": "read"
}
]
}
Request
curl -H $token -H "Content-Type: application/xml" -X GET https://$nodeIp:4443/object/bucket/acl/permissions
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<permissions>
<permission>
<id>read</id>
<display_name>read</display_name>
</permission>
</permissions>