You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Deployment sets
ModifyInstanceDeployment - Adjusts deployment sets
Copy page
Download PDF
ModifyInstanceDeployment - Adjusts deployment sets
Call the ModifyInstanceDeployment operation to adjust the deployment set to which an instance belongs. You can add an instance to a specified deployment set, or remove an instance from a deployment set.​
Usage notes​
Before you call this API, refer to Adjusting deployment sets to which instances belong to fully understand the relevant precautions and ensure the accuracy and compliance of the operation.​
Debugging​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
Only the request parameters specific to this operation and some common parameters are listed below. For more information, refer to Common parameters.​
Action string required Sample value: ModifyInstanceDeployment​
The action that you want to perform. Value: ModifyInstanceDeployment.​
​
Version string required Sample value: 2020-04-01​
The version of the API. Valid value: 2020-04-01.​
​
ClientToken string Optional Sample value: 333456899ff****​
The ClientToken is used to ensure the request idempotency. The client can automatically generate a token, but you need to ensure that it is unique across requests. This prevents duplicate operations caused by multiple retries when the API request times out or an internal server error occurs.​
Value: Only ASCII characters are supported. The length is no more than 64 ASCII characters.​
​
DeploymentSetGroupNumber integer Optional Sample value: 1​
The serial number of the deployment set group. The value range is 1 to 7.​
This parameter is required only when Strategy is AvailabilityGroup.​
​
DeploymentSetId string required Sample value: dps-yc1o9aahks5m57nk****​
The ID of the target deployment set.​
  • When an empty string is passed in, the instance is removed from the deployment set.​
​
InstanceId string required Sample value: i-3tigy72q3u3vj0x2****​
The instance ID.​
​
​
​
Response parameters​
This operation has no specific response parameters. For more information, refer to Response structure.​
Sample request​
​
GET /?Action=ModifyInstanceDeployment&Version=2020-04-01&DeploymentSetId=dps-yc1o9aahks5m57nk****&InstanceId=i-3tigy72q3u3vj0x2**** HTTP/1.1​
Host: ecs.cn-beijing.volcengineapi.com​
Region: cn-beijing​
ServiceName: ecs​
​
Sample response​
​
{​
"ResponseMetadata": {​
"RequestId": "2021062415303301022514515207C4****",​
"Action": "ModifyInstanceDeployment",​
"Version": "2020-04-01",​
"Service": "ecs",​
"Region": "cn-beijing"​
},​
"Result": {}​
}​
​
Error codes​
The table below lists the business-related error codes of the operation. For more information, refer to Common error codes.​
​
Status code​
Error code​
Error message​
Description​
400​
IdempotentParameterMismatch​
The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.​
The idempotent parameters are inconsistent.​
400​
Insufficient.Balance​
The request is denied due to the lack of balance.​
The account balance is insufficient.​
400​
InvalidClientToken.Malformed​
The specified ClientToken is malformed.​
The specified ClientToken is invalid.​
400​
InvalidDedicatedHostInstanceForModifyInstanceDeploymentSet.Unsupported​
The specified dedicated host instance does not support modify instance deployment set.​
The specified instance deployed on a dedicated host does not support deployment set adjustment.​
400​
InvalidInstanceStatus​
The status of the specified instance does not support this request.​
The current status of the instance does not support this operation.​
400​
InvalidInstanceTypeForModifyInstanceDeployment.Unsupported​
The specified InstanceType does not support modification of deployment set.​
The specified instance type does not support deployment set adjustment.​
400​
InvalidScheduledInstanceForModifyInstanceDeploymentSet.Unsupported​
The specified scheduled instance does not support modify instance deployment set.​
The specified ESI does not support deployment set adjustment.​
400​
InvalidStoppedModeForModifyInstanceDeploymentSet.Unsupported​
The specified instance of StoppedMode cannot be added to DeploymentSet.​
The specified instance in economical mode cannot be added to the deployment set.​
400​
LimitExceeded.MaximumDeploymentSetInstances​
You've reached the limit on the number of instances that can be added to the deployment set.​
The number of instances in the specified deployment set exceeds the maximum limit.​
400​
MissingParameter.DeploymentSetId​
The required parameter DeploymentSetId is not supplied.​
The deployment set ID cannot be empty.​
400​
MissingParameter.InstanceId​
The required parameter InstanceId is not supplied.​
The instance ID cannot be left empty.​
404​
InvalidDeploymentSet.NotFound​
The specified DeploymentSet does not exist.​
The specified deployment set does not exist.​
404​
InvalidInstance.NotFound​
The specified instance does not exist.​
The specified instance does not exist.​
412​
IdempotentProcessing​
The request uses the same client token as a previous one that is still in process.​
The previous idempotent request is still in process. Please try again later.​
412​
OperationDenied.ResourceLocked​
The specified operation is denied as your resource is locked for another operation.​
The specified action was rejected because your resource has been locked by other actions.​
500​
InternalError​
An internal error has occurred.​
An internal error occurred. Try again. If multiple attempts fail, submit a ticket.​
​
​
Last updated: 2026.06.18 17:48:25