UpdateServiceInstanceSpec

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

computenest:UpdateServiceInstanceSpec

update

*ServiceInstance

acs:computenest:*:{#accountId}:serviceinstance/{#serviceinstanceId}

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
  • You can obtain the modification parameters configured for the service by viewing the ModifyParametersConfig property of the OperationMetadata response parameter in the GetService - Get service details operation.

  • You can also view the modification parameters configured for the service on the Service Instance Modification page in the Compute Nest console.

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: sends the request but does not create a service instance.

  • false: sends the request and creates the service instance if the check is passed.

true

EnableUserPrometheus

boolean

No

Specifies whether to enable Prometheus monitoring on the user side.

Valid values:

  • true: Enabled.

  • false: Disabled.

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 (default): enables automatic payment. You must ensure that your account balance is sufficient.

  • false: generates an order but does not deduct the fee. If the balance of your payment method is insufficient, you can set the AutoPay parameter to false. In this case, an unpaid order is generated, and you can log on to the ApsaraDB RDS console to pay the order.

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.