Retrieves a list of user permissions 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 more information about how to obtain a workspace ID, see ListWorkspaces. |
123 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned struct. |
||
| RequestId |
string |
The request ID. |
2AE63638-5420-56DC-B******8174039A0 |
| Permissions |
array<object> |
The list of permissions. |
|
|
array<object> |
A permission. |
||
| PermissionCode |
string |
The name of the permission point. The name is unique within the same region. For more information about permission points, see Appendix: Roles and permissions. For example, the value PaiDLC:GetTensorboard grants the permission to view Tensorboard details for the DLC feature. |
PaiDLC:GetTensorboard |
| PermissionRules |
array<object> |
The list of permission rules. |
|
|
object |
A permission rule. |
||
| Accessibility |
string |
The access type. Valid values:
|
PRIVATE |
| EntityAccessType |
string |
The entity access type. This parameter is invalid if Accessibility is set to PUBLIC. In this case, all users can perform the operation. If Accessibility is set to PRIVATE, the permission is determined by the value of EntityAccessType. Valid values:
|
CREATOR |
| TotalCount |
integer |
The 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.