Retrieves the configurations of a workspace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paiworkspace:GetConfig |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/workspaces/{WorkspaceId}/config HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
Yes |
The workspace ID. |
1234******2 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CategoryName |
string |
No |
The classification of the configuration item. The following classifications are supported:
|
CommonResourceConfig |
| ConfigKey |
string |
No |
The key of the configuration item. The following keys are supported:
|
tempStoragePath |
| Verbose |
string |
No |
The value of the configuration item. |
oss://*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A******C83E |
| WorkspaceId |
string |
The workspace ID. |
1234******2 |
| ConfigKey |
string |
The key of the configuration item. The following keys are supported:
|
tempStoragePath |
| ConfigValue |
string |
The value of the configuration item. |
oss://*** |
| CategoryName |
string |
The classification of the configuration item. The following classifications are supported:
|
CommonResourceConfig |
| Labels |
array<object> |
The list of tags for the configuration item. |
|
|
object |
The tag of the configuration item. |
||
| Key |
string |
The key of the tag. |
key1 |
| Value |
string |
The value of the tag. |
value1 |
| GmtCreateTime |
string |
||
| GmtModifiedTime |
string |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A******C83E",
"WorkspaceId": "1234******2\n",
"ConfigKey": "tempStoragePath",
"ConfigValue": "oss://***",
"CategoryName": "CommonResourceConfig",
"Labels": [
{
"Key": "key1",
"Value": "value1"
}
],
"GmtCreateTime": "",
"GmtModifiedTime": ""
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.