UpdateServiceInstanceSpec
Modifies the specifications of a service instance when the parameter values or plan settings of the service instance do not meet your requirements.
Operation description
Before you begin
Make sure that the service provider has enabled the specification modification feature and configured the modification parameters when creating the service.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenest:UpdateServiceInstanceSpec |
update |
*ServiceInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ServiceInstanceId |
string |
Yes |
The ID of the service instance. You can call the ListServiceInstances - List service instances operation to obtain the service instance ID. |
si-d6ab3a63ccbb4b17**** |
| PredefinedParametersName |
string |
No |
The plan name of the service instance. You can specify this parameter if the service provider set Change Type to Plan Change when adding a specification modification operation. You can obtain the plan name configured for the service by viewing the PredefinedParameters property of the DeployMetadata response parameter in the GetService - Get service details operation. |
Package 1 |
| Parameters |
object |
No |
The modification parameters of the service instance. You can specify this parameter if the service provider set Change Type to Parameter Change when adding a specification modification operation. Note
For example, if the service is configured to upgrade the ECS instance type, you must specify an instance type that is higher than the original instance type of the service instance. |
{ "InstanceType": "ecs.g8ise.2xlarge" } |
| DryRun |
boolean |
No |
Specifies whether to perform a dry run on the request, including checks on permissions and instance status. Valid values:
|
true |
| EnableUserPrometheus |
boolean |
No |
Specifies whether to enable Prometheus monitoring on the user side. Valid values:
|
true |
| OperationName |
string |
No |
The name of the specification modification operation. You can obtain the name and content of the specification modification operation configured for the service by viewing the ModifyParametersConfig property of the OperationMetadata response parameter in the GetService - Get service details operation. |
Plan configuration change |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can generate the value from your client, but you must ensure that the value is unique among different requests. The ClientToken parameter supports only ASCII characters and can be up to 64 characters in length. |
123e4567-e89b-12d3-a456-42665544**** |
| Commodity |
object |
No |
The purchase order information for Alibaba Cloud Marketplace. This parameter is not required if the service is not listed in Alibaba Cloud Marketplace or uses the pay-as-you-go billing method. |
|
| AutoPay |
boolean |
No |
Specifies whether to enable automatic payment. Valid values:
|
true |
| CouponId |
string |
No |
The coupon. |
sxs-xxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| OrderId |
string |
The ID of the order. |
23396265896**** |
| RequestId |
string |
The ID of the request. |
06BF8F22-02DC-4750-83DF-3FFC11C065EA |
Examples
Success response
JSON format
{
"OrderId": "23396265896****",
"RequestId": "06BF8F22-02DC-4750-83DF-3FFC11C065EA"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.