All Products
Search
Document Center

Data Management:ListWorkspaces

Last Updated:Jan 13, 2026

Queries a list of workspaces of the tenant.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dms:ListWorkspaceslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
AlreadyJoinedbooleanNo

Specifies whether the current user has joined the workspace.

true
SearchKeystringNo

The search keyword. Fuzzy match is supported.

poc_test
RegionstringNo

The region in which the bucket is located.

cn-hangzhou
ServiceAccountIdlongNo

The service account ID.

12345
WorkspaceIdlongNo

The workspace ID.

12****
PageNumberintegerNo

The page number.

1
PageSizeintegerNo

The number of entries per page.

10
VpcIdstringNo

The virtual private cloud (VPC) ID.

Note This parameter cannot be used as a filter.
vpc-bp10wnlcmor****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

EE214ECD-4330-503A-82F0-FFB03975****
ErrorCodestring

The error code.

UserNotExist
ErrorMessagestring

The error message that is returned if the request failed.

UnknownError
Successboolean

Indicates whether the call was successful. Valid values:

  • true: The request succeeded.
  • false: The request failed.
true
TotalCountlong

The total number of workspaces that meet the conditions.

10
Dataarray<object>

The dataset.

BaseWorkspacesobject
Descriptionstring

The description of the workspace.

Test
CreatorIdlong

The ID of the creator.

123
OwnerUidstring

The Alibaba Cloud UID of the owner.

15608564799****
WorkspaceIdlong

The workspace ID.

8652340494****
GmtModifiedstring

The update time.

2025-01-01 00:00:00
ServiceAccountIdlong

The ID of the service account.

12345
CreatorUidstring

The Alibaba Cloud account UID of the creator.

1344****
ServiceAccountNickNamestring

The nickname of the service account.

testname
Namestring

The name of the workspace.

workspace-xxxx
AlreadyJoinedboolean

Whether the current user has joined the workspace.

true
TenantIdlong

The ID of the tenant to which the workspace belongs.

23456
GmtCreatestring

The creation time.

2025-01-01 00:00:00
ServiceAccountUidstring

The Alibaba Cloud account UID of the service account.

1422****
OwnerIdlong

The owner ID.

123****
VpcIdstring

The VPC ID.

vpc-25fl3qjqb****
Regionstring

The region ID.

cn-hangzhou
WorkspaceNamestring

The name of the workspace.

test-workspace
CreatorNickNamestring

The nickname of the creator.

work*****
OwnerNickNamestring

The nickname of the owner.

hel****
NextTokenstring

NextToken does not take effect.

token-xxx
MaxResultsinteger

The total number of workspaces that meet the condition, which is the same as the TotalCount parameter.

10

Examples

Sample success responses

JSONformat

{
  "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

For a list of error codes, visit the Service error codes.