Access/acls/{userGroup}: GET
Gets the list of the REST API access control lists (ACL) defined for a user group.
Availability
Available on all IBM Storage Scale editions.
Description
The GET access/acls/{userGroup} request gets the detailed information of the REST API access control lists (ACL) defined for a user group.
Request URL
https://<IP address or host name of API server>:<port>/scalemgmt/v2/access/acls/{userGroup}
where- acls/{userGroup}
- List the REST API access control lists (ACL) defined for the specified user group. Required.
Request headers
Accept: application/json
Parameters
The following parameters can be used in the request URL to customize the
request:
Parameter name | Description and applicable keywords | Required/optional |
---|---|---|
userGroup | The user group name for which the ACL is to be listed. | Required. |
Request data
No request data.
Response data
{"status": {
"code": Return Code,
"message": "Return Message"
},
"acls": [
{
"userGroup": "user group name",
"entries": [
{
"entryId": The access control entry ID,
"type": "ALLOW| DENY",
"method": "GET | POST | DELETE | PUT ",
"uri": "Resource URL"
}
]
}
]
}
The details of the parameters are provided in the following list:
- status:
- Return status.
- "code": ReturnCode,
- The HTTPS Status code.
- "message": "ReturnMessage"
- The detailed success or error message.
- acls:
- An array of information on the access control lists.
- userGroup:
- The user group for which the access control list is defined.
- entries
- The access control entries.
Examples
The following example gets the REST API ACLs for the user group Monitor
.
Request data:
curl -k -u admin:admin001 -X GET --header 'accept:application/json'
'https://198.51.100.1:443/scalemgmt/v2/access/acls/Monitor'
Response data:
Note: In the JSON data that is returned, the return code indicates whether the
command is successful. The response code 200 indicates that the command successfully retrieved the
information. Error code 400 represents an
invalid request and 500 represents internal server error.
{
"acls" : [ {
"userGroup" : "Monitor",
"entries" : [ {
"entryId" : 1,
"type" : "ALLOW",
"method" : "DELETE",
"uri" : "*"
}, {
"entryId" : 2,
"type" : "ALLOW",
"method" : "GET",
"uri" : "*"
} ]
} ],
"status" : {
"code" : 200,
"message" : "The request finished successfully."
}
}