The UpgradeServiceInstance operation upgrades a service instance based on parameters such as the region ID and service version.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenestsupplier:UpgradeServiceInstance |
update |
*ServiceInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| ServiceInstanceId |
string |
No |
The service instance ID. |
si-5cbae874da0e47xxxxxx |
| ServiceVersion |
string |
No |
The service version. |
2 |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. Generate a unique value for this parameter from your client. The ClientToken value can contain only ASCII characters and must be no more than 64 characters in length. |
10CM943JP0EN9D51H |
| DryRun |
string |
No |
Specifies whether to perform a dry run. A dry run checks for issues such as permission errors and instance status. Valid values:
|
false |
| Parameters |
object |
No |
The configuration parameters of the service instance. |
{ "param": "value" } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Status |
string |
The deployment status of the service instance. Valid values:
|
Created |
| RequestId |
string |
The request ID. |
F224E002-AB0E-5FD9-A87E-54AEE56F6CAE |
| ServiceInstanceId |
string |
The service instance ID. |
si-5cbae874da0e47xxxxxx |
| UpgradeRequiredParameters |
array |
The parameters that are required for the upgrade. |
|
|
string |
The parameters that are required for the upgrade. |
['EcsInstanceType', 'InstancePassword'] |
Examples
Success response
JSON format
{
"Status": "Created",
"RequestId": "F224E002-AB0E-5FD9-A87E-54AEE56F6CAE",
"ServiceInstanceId": "si-5cbae874da0e47xxxxxx",
"UpgradeRequiredParameters": [
"['EcsInstanceType', 'InstancePassword']"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.