ListPermissions
Queries the permissions of a user in a workspace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paiworkspace:ListPermissions |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/workspaces/{WorkspaceId}/permissions HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
Yes |
The workspace ID. For information about how to obtain the workspace ID, see ListWorkspaces. |
123 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| RequestId |
string |
The request ID. |
2AE63638-5420-56DC-B******8174039A0 |
| Permissions |
array<object> |
The list of permissions. |
|
|
array<object> |
The permission. |
||
| PermissionCode |
string |
The name of the permission point, which is unique within a region. For more information about permission points, see Appendix: Roles and permissions. For example, the sample value PaiDLC:GetTensorboard indicates the permission to view TensorBoard details in the DLC module. |
PaiDLC:GetTensorboard |
| PermissionRules |
array<object> |
The list of permission rules. |
|
|
object |
The permission rule. |
||
| Accessibility |
string |
The access type. Valid values:
|
PRIVATE |
| EntityAccessType |
string |
The access type. If Accessibility is set to PUBLIC, all users can perform operations and this parameter does not take effect. If Accessibility is set to PRIVATE, the permissions are determined by the value of EntityAccessType. Valid values of EntityAccessType:
|
CREATOR |
| TotalCount |
integer |
The total number of entries that meet the filter conditions. |
1 |
Examples
Success response
JSON format
{
"RequestId": "2AE63638-5420-56DC-B******8174039A0",
"Permissions": [
{
"PermissionCode": "PaiDLC:GetTensorboard",
"PermissionRules": [
{
"Accessibility": "PRIVATE",
"EntityAccessType": "CREATOR"
}
]
}
],
"TotalCount": 1
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.