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 a workspace ID, see ListWorkspaces. |
12345 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Verbose |
boolean |
No |
Specifies whether to return additional information, such as the workspace owner. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
A0F049F0-8D69-5BAC-8F10-B4DED1B5A34C |
| WorkspaceId |
string |
The workspace ID. |
1234 |
| WorkspaceName |
string |
The workspace name. |
workspace-example |
| GmtCreateTime |
string |
The time when the workspace was created. The time is in UTC and follows the ISO 8601 standard. |
2021-01-21T17:12:35.232Z |
| GmtModifiedTime |
string |
The time when the workspace was last modified. The time is in UTC and follows the ISO 8601 standard. |
2021-01-21T17:12:35.232Z |
| DisplayName |
string |
The display name of the workspace. |
workspace-example |
| Description |
string |
The description of the workspace. |
workspace description example |
| EnvTypes |
array |
The environments that the workspace contains. Valid values:
|
|
|
string |
The environment type. Valid values:
|
prod |
|
| Creator |
string |
The ID of the user who created the workspace. |
1157******94123 |
| Status |
string |
The status of the workspace. Valid values:
|
ENABLED |
| AdminNames |
array |
The list of administrator account names. |
|
|
string |
The administrator account name. This parameter is returned only when Verbose is set to true. |
demo_test@***.aliyunid.com |
|
| IsDefault |
boolean |
Indicates whether the workspace is the default workspace. Valid values:
|
true |
| ExtraInfos |
object |
Additional information. This parameter currently contains the tenant ID (TenantId). |
{"TenantId": "4286******98"} |
| Owner |
object |
The information about the workspace owner. This parameter is returned only when Verbose is set to true. |
|
| UserKp |
string |
The user UID. |
1157******94123 |
| UserId |
string |
The user ID. |
1157******94123 |
| UserName |
string |
The username. |
mings****t |
| DisplayName |
string |
The display name. |
mings****t |
| ResourceGroupId |
string |
The resource group ID. |
rg-acfmwp7rkyq**** |
Examples
Success response
JSON format
{
"RequestId": "A0F049F0-8D69-5BAC-8F10-B4DED1B5A34C",
"WorkspaceId": "1234",
"WorkspaceName": "workspace-example",
"GmtCreateTime": "2021-01-21T17:12:35.232Z",
"GmtModifiedTime": "2021-01-21T17:12:35.232Z",
"DisplayName": "workspace-example",
"Description": "workspace description example",
"EnvTypes": [
"prod"
],
"Creator": "1157******94123",
"Status": "ENABLED",
"AdminNames": [
"demo_test@***.aliyunid.com"
],
"IsDefault": true,
"ExtraInfos": {
"TenantId": "4286******98"
},
"Owner": {
"UserKp": "1157******94123",
"UserId": "1157******94123",
"UserName": "mings****t",
"DisplayName": "mings****t"
},
"ResourceGroupId": "rg-acfmwp7rkyq****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.