Calls this operation to update resources.
Operation description
You can go to OpenAPI Explorer to view the documentation and try out Cloud Control API.
If resources fail to be updated at any time, the Cloud Control API does not roll the resource back to the original status.
The resource APIs cannot be rolled back. If the API operation is partially failed to be called, you can call the GetResource operation to view the latest status of the resource. If necessary, you can call the UpdateResource or DeleteResource operation to manually compensate for the failure.
Try it now
Test
RAM authorization
Request syntax
PUT /api/v1/providers/{provider}/products/{product}/resources/* HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| requestPath |
string |
No |
The request path. Specify this parameter in the following format: /api/v1/providers/{provider}/products/{product}/resources/{resourceType}/{resourceId} Variables in the request path: provider: the Cloud service provider. Only Aliyun is supported. product: the code of the service. resourceType: the type of resources. If parent resource is specified, the format is {parent resource type code}/parent resource ID/{resource type code}. resourceId: the resource ID. |
/api/v1/providers/Aliyun/products/Redis/resources/Instance/r-8vbf5abe31cxxxxx/Account/cctest |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| regionId |
string |
No |
The region ID. This parameter is required if a cloud service is a regionalized. |
cn-beijing |
| clientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. If a cloud service supports idempotence, the parameter takes effect. |
1e810dfe1468721d0664a49b9d9f74f4 |
| body |
object |
No |
The request body. The property of the resource to be updated is specified in JSON format. |
{ "AccountPassword": "4321****", "Description": "cctest" } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| requestId |
string |
The ID of the request. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| taskId |
string |
The ID of the asynchronous task. If the operation is asynchronous, this field is returned. In this case, the HTTP status code 202 is returned. |
task-433aead756057fff8189a7ce5**** |
Examples
Success response
JSON format
{
"requestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****\n",
"taskId": "task-433aead756057fff8189a7ce5****\n"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.