Retrieves the details of the default workspace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paiworkspace:GetDefaultWorkspace |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/defaultWorkspaces HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Verbose |
boolean |
No |
Specifies whether to return detailed information about the default workspace. The detailed information includes the Conditions list. Valid values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| RequestId |
string |
The request ID. |
5A14FA81-DD4E-******-6343FE44B941 |
| WorkspaceId |
string |
The workspace ID. |
1234 |
| WorkspaceName |
string |
The name of the workspace. The name must be unique within the same region. |
workspace-example |
| GmtCreateTime |
string |
The time when the workspace was created. The time is in Coordinated Universal Time (UTC) and is formatted in ISO 8601. |
2021-01-21T17:12:35.232Z |
| GmtModifiedTime |
string |
The time when the workspace was last modified. The time is in UTC and is formatted in ISO 8601. |
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 in the workspace.
|
|
|
string |
The environment. Valid values:
|
prod |
|
| Creator |
string |
The Alibaba Cloud account that created the workspace. |
17915******4216 |
| Owner |
object |
The Alibaba Cloud account that created the workspace. |
|
| UserId |
string |
The UID of the user. |
17915******4216 |
| UserName |
string |
The username. |
username |
| UserKp |
string |
The UID of the user. |
17915******4216 |
| Status |
string |
The status of the workspace. Valid values:
|
ENABLED |
| Conditions |
array<object> |
The details about the creation stages of the default workspace. |
|
|
object |
The details about a creation stage of the default workspace. |
||
| Type |
string |
The task type. Valid values:
|
CREATING |
| Code |
integer |
The status code. A value of 200 indicates that the request was successful. Other values indicate that the request failed. |
200 |
| Message |
string |
The error message. This parameter is empty if the status code is 200. |
Create Failed |
Examples
Success response
JSON format
{
"RequestId": "5A14FA81-DD4E-******-6343FE44B941",
"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": "17915******4216\n",
"Owner": {
"UserId": "17915******4216",
"UserName": "username",
"UserKp": "17915******4216"
},
"Status": "ENABLED",
"Conditions": [
{
"Type": "CREATING ",
"Code": 200,
"Message": "Create Failed"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.