All Products
Search
Document Center

Cloud Control API:UpdateResource

Last Updated:Mar 06, 2025

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.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

PUT /api/v1/providers/{provider}/products/{product}/resources/* HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
requestPathstringYes

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
regionIdstringNo

The region ID. This parameter is required if a cloud service is a regionalized.

cn-beijing
clientTokenstringNo

The client token that is used to ensure the idempotence of the request. If a cloud service supports idempotence, the parameter takes effect.

1e810dfe1468721d0664a49b9d9f74f4
bodyobjectNo

The request body. The property of the resource to be updated is specified in JSON format.

{ "AccountPassword": "4321****", "Description": "cctest" }

Response parameters

ParameterTypeDescriptionExample
headersobject
x-acs-cloudcontrol-timeoutstring

The timeout period for the asynchronous operation. Unit: seconds. If the operation is asynchronous, this field is returned. In this case, the HTTP status code 202 is returned.

360
object

The response parameters.

requestIdstring

The ID of the request.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3****
taskIdstring

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

Sample success responses

JSONformat

{
  "requestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****\n",
  "taskId": "task-433aead756057fff8189a7ce5****\n"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history