Upgrades a service instance to a new version.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenest:UpgradeServiceInstance |
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-d6ab3a63ccbb4bxxxxxx |
| ServiceVersion |
string |
No |
The service version to upgrade to. |
2 |
| Parameters |
object |
No |
The parameters required for the upgrade. This is used when new parameters are added to the new service version. |
{ \"RegionId\": \"cn-hangzhou\", \"InstanceType\": \"ecs.g5.large\"} |
| ClientToken |
string |
No |
A client-generated token that ensures the idempotence of the request. The token must be unique for each request. It can contain only ASCII characters and must be no more than 64 characters long. |
123e4567-e89b-12d3-a456-426655440000 |
| DryRun |
string |
No |
Specifies whether to perform a dry run. A dry run checks for issues such as permissions and the instance status. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
4DB0F536-B3BE-4F0D-BD29-E83FB56D550C |
| UpgradeRequiredParameters |
array |
The new parameters required for the service upgrade. This parameter is returned only when DryRun is set to true. Include these parameters in the request when you perform the upgrade. |
|
|
string |
The name of a parameter required for the upgrade. |
InstancePassword |
Examples
Success response
JSON format
{
"RequestId": "4DB0F536-B3BE-4F0D-BD29-E83FB56D550C",
"UpgradeRequiredParameters": [
"InstancePassword"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.