Found 0 result in total
Content is empty
If you don't find the content you expect, please try another search term
Last updated:2021-05-27 17:52:41
You can call this operation to configure an automatic renewal policy for multiple instances.
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. |
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. |
curl -X POST \
'http://trade.api.ksyun.com/?Action=SetRenewal&Version=2020-08-31' \
-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: trade.api.ksyun.com' \
-H 'x-amz-date: 20170720T022802Z'
-D 'instanceIds=xxx&renewStrategy=xxx&renewDuration=xxx'
{
"RequestId": "9f7cbbcb-cad9-4cd6-9c90-5b27e39b21b1",
"success": true
}
{
"Error": {
"Code": "InvalidParameterValue",
"Message": "The renewal duration is invalid."
},
"RequestId": "21b0e61b-4979-45d5-b8ce-258a23753163",
"success": false
}
Pure Mode