Renews a specified instance. This operation cannot be used to renew ECS, RDS, or Redis instances. To renew these instances, call the dedicated renewal API for the specific product.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
bss:ModifyInstance | create | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
ProductCode | string | Yes | The product code. | rds |
InstanceId | string | Yes | The instance ID. | rm-skjdhaskjdh |
RenewPeriod | integer | Yes | The renewal period for the subscription instance, in months. Valid values:
| 6 |
ClientToken | string | No | A client token to ensure the idempotence of the request. | ASKJHKLASJHAFSLKJH |
ProductType | string | No | The product type. | rds |
Response elements
Parameter | Type | Description | Example |
object | |||
Code | string | The status code. | Success |
Message | string | The error message. | Successful! |
RequestId | string | The request ID. | 6000EE23-274B-4E07-A697-FF2E999520A4 |
Success | boolean | Indicates whether the request was successful. | true |
| Data | object | The returned data. | |
OrderId | string | The order ID. | 202657601410661 |
Examples
Success response
JSON format
{
"Code": "Success",
"Message": "Successful!",
"RequestId": "6000EE23-274B-4E07-A697-FF2E999520A4",
"Success": true,
"Data": {
"OrderId": "202657601410661"
}
}Error codes
HTTP status code | Error code | Error message | Description |
400 | NotApplicable | This API is not applicable for caller. | |
400 | NotAuthorized | This API is not authorized for caller. | |
400 | InvalidOwner | The specified owner doesn't belong to caller. | Invalid user identity. |
400 | ResourceStatusError | The resource status error. | |
400 | ResourceNotExists | The specific resource is not exists. | |
500 | InternalError | The request processing has failed due to some unknown error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.