GetWorkspace
Retrieves the details of a workspace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paiworkspace:GetWorkspace |
get |
*Workspace
|
None | None |
Request syntax
GET /api/v1/workspaces/{WorkspaceId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
Yes |
The workspace ID. For more information about how to obtain the workspace ID, see ListWorkspaces. |
12345 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Verbose |
boolean |
No |
Specifies whether to display supplementary information such as the workspace owner. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| AdminNames |
array |
The list of administrator account names. |
|
|
string |
The administrator account name. Displayed when Verbose is set to true. |
demo_test@***.aliyunid.com |
|
| Creator |
string |
The user ID of the creator. |
1157******94123 |
| Description |
string |
The workspace description. |
workspace description example |
| DisplayName |
string |
The display name of the workspace. |
workspace-example |
| EnvTypes |
array |
The environments included in the workspace.
|
|
|
string |
The environment type. Valid values:
|
prod |
|
| ExtraInfos |
object |
The extra information, which currently includes TenantId (tenant ID). |
{"TenantId": "4286******98"} |
| GmtCreateTime |
string |
The time when the workspace was created. The time is displayed in UTC and formatted in ISO 8601. |
2021-01-21T17:12:35.232Z |
| GmtModifiedTime |
string |
The time when the workspace was modified. The time is displayed in UTC and formatted in ISO 8601. |
2021-01-21T17:12:35.232Z |
| IsDefault |
boolean |
Specifies whether the workspace is the default workspace. Valid values:
|
true |
| Owner |
object |
The workspace owner information. Displayed when Verbose is set to true. |
|
| DisplayName |
string |
The display name. |
mings****t |
| UserId |
string |
The user ID. |
1157******94123 |
| UserKp |
string |
The user UID. |
1157******94123 |
| UserName |
string |
The username. |
mings****t |
| RequestId |
string |
The request ID. |
A0F049F0-8D69-5BAC-8F10-B4DED1B5A34C |
| ResourceGroupId |
string |
The resource group ID. |
rg-acfmwp7rkyq**** |
| Status |
string |
The workspace status. Valid values:
|
ENABLED |
| WorkspaceId |
string |
The workspace ID. |
1234 |
| WorkspaceName |
string |
The workspace name. |
workspace-example |
Examples
Success response
JSON format
{
"AdminNames": [
"demo_test@***.aliyunid.com"
],
"Creator": "1157******94123",
"Description": "workspace description example",
"DisplayName": "workspace-example",
"EnvTypes": [
"prod"
],
"ExtraInfos": {
"TenantId": "4286******98"
},
"GmtCreateTime": "2021-01-21T17:12:35.232Z",
"GmtModifiedTime": "2021-01-21T17:12:35.232Z",
"IsDefault": true,
"Owner": {
"DisplayName": "mings****t",
"UserId": "1157******94123",
"UserKp": "1157******94123",
"UserName": "mings****t"
},
"RequestId": "A0F049F0-8D69-5BAC-8F10-B4DED1B5A34C",
"ResourceGroupId": "rg-acfmwp7rkyq****",
"Status": "ENABLED",
"WorkspaceId": "1234",
"WorkspaceName": "workspace-example"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.