Retrieves the workspace list for a tenant.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListWorkspaces |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AlreadyJoined |
boolean |
No |
Whether the current user has joined the workspace. |
true |
| SearchKey |
string |
No |
The search keyword. Fuzzy match is supported. |
poc_test |
| Region |
string |
No |
The region in which the bucket is located. |
cn-hangzhou |
| ServiceAccountId |
integer |
No |
The service account ID. |
12345 |
| WorkspaceId |
integer |
No |
The workspace ID. |
12**** |
| PageNumber |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The number of entries per page. |
10 |
| VpcId |
string |
No |
The virtual private cloud (VPC) ID. Note
This parameter cannot be used as a filter. |
vpc-bp10wnlcmor**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
EE214ECD-4330-503A-82F0-FFB03975**** |
| ErrorCode |
string |
The error code. |
UserNotExist |
| ErrorMessage |
string |
The error message returned if the request failed. |
UnknownError |
| Success |
boolean |
Whether the request was successful. Valid values:
|
true |
| TotalCount |
integer |
The total number of workspaces that meet the conditions. |
10 |
| Data |
object |
||
| BaseWorkspaces |
array<object> |
The dataset. |
|
|
object |
|||
| Description |
string |
The description of the workspace. |
Test |
| CreatorId |
integer |
The ID of the creator. |
123 |
| OwnerUid |
string |
The Alibaba Cloud UID of the owner. |
15608564799**** |
| WorkspaceId |
integer |
The workspace ID. |
8652340494**** |
| GmtModified |
string |
The update time. |
2025-01-01 00:00:00 |
| ServiceAccountId |
integer |
The ID of the service account. |
12345 |
| CreatorUid |
string |
The Alibaba Cloud account UID of the creator. |
1344**** |
| ServiceAccountNickName |
string |
The nickname of the service account. |
testname |
| Name |
string |
The name of the workspace. |
workspace-xxxx |
| AlreadyJoined |
boolean |
Whether the current user has joined the workspace. |
true |
| TenantId |
integer |
The ID of the tenant to which the workspace belongs. |
23456 |
| GmtCreate |
string |
The creation time. |
2025-01-01 00:00:00 |
| ServiceAccountUid |
string |
The Alibaba Cloud account UID of the service account. |
1422**** |
| OwnerId |
integer |
The owner ID. |
123**** |
| VpcId |
string |
The VPC ID. |
vpc-25fl3qjqb**** |
| Region |
string |
The region ID. |
cn-hangzhou |
| WorkspaceName |
string |
The name of the workspace. |
test-workspace |
| CreatorNickName |
string |
The nickname of the creator. |
work***** |
| OwnerNickName |
string |
The nickname of the owner. |
hel**** |
| NextToken |
string |
NextToken does not take effect. |
token-xxx |
| MaxResults |
integer |
The total number of workspaces that meet the conditions, same as the TotalCount parameter. |
10 |
Examples
Success response
JSON format
{
"RequestId": "EE214ECD-4330-503A-82F0-FFB03975****",
"ErrorCode": "UserNotExist",
"ErrorMessage": "UnknownError",
"Success": true,
"TotalCount": 10,
"Data": {
"BaseWorkspaces": [
{
"Description": "Test",
"CreatorId": 123,
"OwnerUid": "15608564799****",
"WorkspaceId": 0,
"GmtModified": "2025-01-01 00:00:00",
"ServiceAccountId": 12345,
"CreatorUid": "1344****",
"ServiceAccountNickName": "testname",
"Name": "workspace-xxxx",
"AlreadyJoined": true,
"TenantId": 23456,
"GmtCreate": "2025-01-01 00:00:00",
"ServiceAccountUid": "1422****",
"OwnerId": 0,
"VpcId": "vpc-25fl3qjqb****",
"Region": "cn-hangzhou",
"WorkspaceName": "test-workspace",
"CreatorNickName": "work*****",
"OwnerNickName": "hel****"
}
]
},
"NextToken": "token-xxx",
"MaxResults": 10
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.