SetRenewal
Configure renewal settings for one or more instances.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
Action | String | Yes | SetRenewal | The action to perform. Set the value to SetRenewal. |
InstanceIDs | String | Yes | dbaudit-cn-**** | The IDs of one or more subscription instances. You can specify up to 100 instance IDs, separated by commas (,). |
RenewalStatus | String | Yes | AutoRenewal | The renewal status. Valid values:
|
RenewalPeriod | Integer | No | 1 | The auto-renewal period. Valid values:
Note
|
ProductCode | String | No | dbaudit | The product code. For Database Audit, the product code is dbaudit. |
ProductType | String | No | dbaudit | The product type. For Database Audit, the product type is dbaudit. |
SubscriptionType | String | No | Subscription | The billing method. Set this to Subscription, which specifies the prepaid billing method for Database Audit. |
RenewalPeriodUnit | String | No | M | The auto-renewal period unit. Valid values:
Note RenewalStatusAutoRenewalRenewalPeriodUnitThis parameter is required when is set to . |
Response parameters
Parameter | Type | Example | Description |
Code | String | Success | The status code of the request. |
Message | String | Successful | The message that corresponds to the Code. |
RequestId | String | 6000EE23-274B-4E07-A697-FF2E999520A4 | The request ID. |
Success | Boolean | true | Indicates whether the request was successful. |
Examples
Sample request
http(s)://[Endpoint]/?Action=SetRenewal
&InstanceIDs=dbaudit-cn-****
&RenewalStatus=AutoRenewal
&RenewalPeriod=1
&RenewalPeriodUnit=M
&<common request parameters>Sample response
XML format
<SetRenewalResponse>
<Message>Successful</Message>
<RequestId>6000EE23-274B-4E07-A697-FF2E999520A4</RequestId>
<Success>true</Success>
<Code>Success</Code>
</SetRenewalResponse>JSON format
{
"Message": "Successful",
"RequestId": "6000EE23-274B-4E07-A697-FF2E999520A4",
"Success": true,
"Code": "Success"
}Error codes
For a list of error codes, see the Error Center.