Last updated:2021-05-27 17:52:41


You can call this operation to configure an automatic renewal policy for multiple instances.

Request parameters

Parameter Type Required Example Description
Action String Yes SetRenewal The operation that you want to perform. Set the value to SetRenewal.
Version String Yes 2020-08-31 The version number of the API operation. Set the value to 2020-08-31.
InstanceIds String Yes d9394af-814a-40b3-80b1-45636f770551 The ID of the instance. You can specify up to 100 Subscription instances. Separate multiple instance IDs with commas (,).
RenewStrategy Int Yes 0 The renewal policy. Valid values:
0: manual renewal
1: automatic renewal.
RenewDuration Int No 12 The renewal duration, in months. This parameter is required when RenewStrategy is set to 1. Valid values: 1, 2, 3, 6, 12, 24, and 36.

Response parameters

Parameter Type Example Description
RequestId String 9f7cbbcb-cad9-4cd6-9c90-5b27e39b21b1 The ID of the request.
success Boolean true The call result.
Error Object The error message returned when the call fails. For more information, see the sample error response.


Sample requests

curl -X POST \
'' \
-H 'authorization: xxx, SignedHeaders=content-type;host;x-amz-date, Signature=xxx' \
-H 'cache-control: no-cache' \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'host:' \
-H 'x-amz-date: 20170720T022802Z'
-D 'instanceIds=xxx&renewStrategy=xxx&renewDuration=xxx'

Sample success response

    "RequestId": "9f7cbbcb-cad9-4cd6-9c90-5b27e39b21b1",
    "success": true

Sample error response

    "Error": {
        "Code": "InvalidParameterValue",
        "Message": "The renewal duration is invalid."
    "RequestId": "21b0e61b-4979-45d5-b8ce-258a23753163",
    "success": false

Did you find the above information helpful?

Mostly Unhelpful
A little helpful
Very helpful

What might be the problems?

Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions


Please give us your feedback.


Thank you for your feedback.