UpdateWorkspaceResource
Updates resources in a workspace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paiworkspace:UpdateWorkspaceResource |
*All Resource
|
None | None |
Request syntax
PUT /api/v1/workspaces/{WorkspaceId}/resources HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
Yes |
The workspace ID. For information about how to obtain a workspace ID, see ListWorkspaces. |
123 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request parameters. |
|
| IsDefault |
boolean |
No |
Specifies whether to set the resource as the default resource for the workspace. Currently, only |
true |
| ProductType |
string |
No |
This parameter is deprecated. Use |
MaxCompute |
| GroupName |
string |
No |
The group name. |
group-kjds******sd |
| ResourceType |
string |
No |
The resource type. Valid values are:
|
MaxCompute |
| Labels |
array<object> |
No |
An array of tags. The update affects only resources that have all of the specified tags. |
|
|
object |
No |
A tag. |
||
| Key |
string |
No |
The key of the tag. |
system.****** |
| Value |
string |
No |
The value of the tag. |
True |
| ResourceIds |
array |
No |
An array of resource IDs. You cannot leave both |
|
|
string |
No |
A resource ID. |
Resource-dks******jkf |
|
| Spec |
object |
No |
The specifications of the resource. |
{ "clusterType": "share" } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
5A14FA81-DD4E-******-6343FE44B941 |
| ResourceIds |
array |
An array of IDs for the resources that were updated. |
Resource-dks******jkf |
|
string |
The ID of an updated resource. |
Resource-dks******jkf |
Examples
Success response
JSON format
{
"RequestId": "5A14FA81-DD4E-******-6343FE44B941",
"ResourceIds": [
"Resource-dks******jkf\n"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.