Renews the subscription resources for a private deployment service instance. This operation supports two renewal methods: renewing all subscription resources for a service instance or renewing only specific resources. You can use only one method per request.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenest:RenewServiceInstanceResources |
update |
*ServiceInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| ServiceInstanceId |
string |
Yes |
The service instance ID. |
si-b58c874912fc4294**** |
| PeriodUnit |
string |
No |
The time unit of the renewal duration for all subscription resources in the service instance. This parameter specifies the unit for `Period`. Valid values: `Month` and `Year`. Default value: `Month`. |
Month |
| ClientToken |
string |
No |
A client token to ensure that the request is idempotent. Generate a unique value for this parameter from your client for each request. The token can contain only ASCII characters and must not exceed 64 characters in length. |
123e4567-e89b-12d3-a456-426655440000 |
| Period |
integer |
No |
The renewal duration for all subscription resources in the service instance. The unit is specified by `PeriodUnit`. |
1 |
| ResourcePeriod |
array<object> |
No |
The list of resource renewals. |
|
|
object |
No |
The resource renewal configuration. |
||
| ResourceArn |
string |
No |
The Aliyun Resource Name (ARN) of the resource. |
acs:ecs:cn-hongkong:1488317743351199:instance/i-j6c6f3lbky38o8rpeqw2 |
| PeriodUnit |
string |
No |
The time unit of the renewal duration for the resource. This parameter specifies the unit for `Period`. Valid values: `Month` and `Year`. Default value: `Month`. |
Month |
| Period |
integer |
No |
The renewal duration for the resource. The unit is specified by `PeriodUnit`. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
13FE89A5-C036-56BF-A0FF-A31C59819FD7 |
| RenewalResult |
object |
The renewal result. |
|
| TotalCount |
integer |
The number of resources to be renewed. |
10 |
| Succeeded |
integer |
The number of successfully renewed resources. |
9 |
| Failed |
integer |
The number of resources that failed to be renewed. |
1 |
| FailureDetails |
array<object> |
The details of renewal failures. |
|
|
object |
The details of a renewal failure. |
||
| ResourceArn |
string |
The ARN of the resource. |
acs:ecs:cn-hongkong:1488317743351199:instance/i-j6c6f3lbky38o8rpeqw2 |
| ErrorMessage |
string |
The error message. |
Error message |
| ErrorCode |
string |
The error code. |
InvalidPeriod |
Examples
Success response
JSON format
{
"RequestId": "13FE89A5-C036-56BF-A0FF-A31C59819FD7",
"RenewalResult": {
"TotalCount": 10,
"Succeeded": 9,
"Failed": 1
},
"FailureDetails": [
{
"ResourceArn": "acs:ecs:cn-hongkong:1488317743351199:instance/i-j6c6f3lbky38o8rpeqw2",
"ErrorMessage": "Error message",
"ErrorCode": "InvalidPeriod"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.