Retrieves the details of a DMS workspace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:GetWorkspace |
get |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
integer |
Yes |
The DMS workspace ID. |
12**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID for troubleshooting. |
FE8EE2F1-4880-46BC-A704-5CF63EAF**** |
| Message |
string |
The error message returned on failure. |
UnknownError |
| Data |
object |
The response data. |
|
| WorkspaceId |
integer |
The workspace ID. |
863020290155**** |
| WorkspaceName |
string |
The workspace name. |
workspace_xxx |
| Description |
string |
The workspace description. |
Test |
| RegionId |
string |
The region ID of the workspace. |
cn-hangzhou |
| OwnerId |
string |
The owner ID. |
12345**** |
| ServiceAccountId |
string |
The service account ID. |
12345**** |
| Tid |
integer |
The tenant ID. Note
To view the tenant ID, go to the DMS console and hover over the profile picture in the upper-right corner. View information about the current tenant. |
3322**** |
| VpcId |
string |
The VPC ID. |
vpc-xxxx |
| Success |
boolean |
Whether the request succeeded. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "FE8EE2F1-4880-46BC-A704-5CF63EAF****",
"Message": "UnknownError",
"Data": {
"WorkspaceId": 0,
"WorkspaceName": "workspace_xxx",
"Description": "Test",
"RegionId": "cn-hangzhou",
"OwnerId": "12345****",
"ServiceAccountId": "12345****",
"Tid": 0,
"VpcId": "vpc-xxxx"
},
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | WorkspaceNotExist | The specified workspace not exist. | The workspace does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.