- Documentation
Elastic Compute Service
Elastic Compute Service
API Reference
Deployment sets
CreateDeploymentSet – Creates a deployment set
Deployment sets
CreateDeploymentSet – Creates a deployment set
CreateDeploymentSet – Creates a deployment set
Call the CreateDeploymentSet operation to create a deployment set.
Usage notes
Request description
When you call this operation, if you do not pass in optional parameters, the original configuration is retained.
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: CreateDeploymentSet
The action that you want to perform. Value: CreateDeploymentSet.
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. You can use the client to automatically generate a token, but you must make sure that the token is unique among different requests. This prevents repeated actions due to multiple client retries when the call of the API action times out or an internal server error occurs.
Value: Only ASCII characters are supported. The length is no more than 64 ASCII characters.
DeploymentSetName string required Sample value: testDeploymentSetName
The name of the deployment set.
- Cannot start with a number, a hyphen (-), or an underscore (_).
- Only Chinese characters, letters, numbers, underscores, and hyphens are allowed.
- The length limit is 1 to 128 characters.
Description string Optional Sample value: testDescription
The description of the deployment set.
- It must start with a letter or Chinese character.
- Only Chinese characters, letters, numbers, dots (.), spaces, underscores (_), hyphen (-), equal signs (=), English comma (,), Chinese comma (,), and Chinese period (。) are allowed.
- The length is limited to 255 characters.
tip
When an empty string is passed in, the existing description is cleared.
Granularity string Optional Sample value: host
The deployment granularity. Valid values:
GroupCount integer Optional Sample value: 3
Set the number of availability groups.
tip
When the value of Strategy is AvailabilityGroup, this parameter is required.
Strategy string Optional Sample value: Availability
The deployment policy. Valid values:
- Availability (default): Availability policy.
- AvailabilityGroup: Availability Group policy.
Response parameters
Only the response parameters specific to this operation are listed below. For more information, refer to the response structure. DeploymentSetId string Sample value: dps-yc1o9aahks5m57nk****
The ID of the deployment set.
Sample request
Sample response
Error codes
The table below lists the business-related error codes of the operation. For more information, refer to Common error codes.
Last updated: 2026.09.11 19:20:17