All Products
Search
Document Center

Elastic Compute Service:DescribeDeploymentSets

Last Updated:Apr 11, 2024

Queries the attributes of one or more deployment sets.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the deployment set. You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
PageNumberintegerNo

The number of the page to return.

Pages start from page 1.

Default value: 1.

1
PageSizeintegerNo

The number of entries to return on each page.

Maximum value: 50.

Default value: 10.

10
DeploymentSetIdsstringNo

The IDs of deployment sets. The value can be a JSON array that consists of up to 100 deployment set IDs in the format of ["ds-xxxxxxxxx", "ds-yyyyyyyyy", … "ds-zzzzzzzzz"]. Separate multiple deployment set IDs with commas (,).

["ds-bp67acfmxazb4ph****", "ds-bp67acfmxazb4pi****", … "ds-bp67acfmxazb4pj****"]
NetworkTypestringNo
Note The parameter is deprecated.
null
StrategystringNo

The deployment strategy. Valid values:

  • Availability: high availability strategy.
  • AvailabilityGroup: high availability group strategy.
Availability
DeploymentSetNamestringNo

The name of the deployment set. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).

testDeploymentSetName
GranularitystringNo
Note The parameter is deprecated.
null
DomainstringNo
Note The parameter is deprecated.
null

Response parameters

ParameterTypeDescriptionExample
object
PageSizeinteger

The number of entries returned per page.

1
PageNumberinteger

The page number of the returned page.

1
RequestIdstring

The ID of the request.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
TotalCountinteger

The total number of deployment sets returned.

1
RegionIdstring

The region ID of the deployment set.

cn-hangzhou
DeploymentSetsobject []

Details about the deployment sets.

CreationTimestring

The time when the deployment set was created.

2021-12-07T06:01:46Z
Strategystring

The deployment strategy.

LooseDispersion
DeploymentSetIdstring

The ID of the deployment set.

ds-bp67acfmxazb4ph****
DeploymentStrategystring

The deployment strategy. The value of this response parameter is that of the Strategy request parameter.

Availability
DeploymentSetDescriptionstring

The description of the deployment set.

testDeploymentSetDescription
Domainstring

The deployment domain.

default
GroupCountinteger

The number of deployment set groups in the deployment set.

Note This parameter is valid only when the Strategy request parameter is set to AvailabilityGroup.
3
Granularitystring

The deployment granularity.

host
DeploymentSetNamestring

The name of the deployment set.

testDeploymentSetName
InstanceAmountinteger

The number of instances in the deployment set.

3
InstanceIdsarray

The IDs of the instances in the deployment set.

string

The ID of the instance in the deployment set.

i-bp67acfmxazb4ph****
Capacitiesobject []

Details of the capacities of the deployment set. This parameter is valid only when the deployment set contains Elastic Compute Service (ECS) instances. The value contains the capacities of the deployment set in different zones.

ZoneIdstring

The ID of the zone. Only the zone IDs of existing ECS instances in the deployment set are returned.

cn-hangzhou-i
UsedAmountinteger

The number of ECS instances that belong to the zone in the deployment set.

2
AvailableAmountinteger

The number of ECS instances that can be added to the deployment set within the zone.

18

Examples

Sample success responses

JSONformat

{
  "PageSize": 1,
  "PageNumber": 1,
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
  "TotalCount": 1,
  "RegionId": "cn-hangzhou",
  "DeploymentSets": {
    "DeploymentSet": [
      {
        "CreationTime": "2021-12-07T06:01:46Z",
        "Strategy": "LooseDispersion",
        "DeploymentSetId": "ds-bp67acfmxazb4ph****",
        "DeploymentStrategy": "Availability",
        "DeploymentSetDescription": "testDeploymentSetDescription",
        "Domain": "default",
        "GroupCount": 3,
        "Granularity": "host",
        "DeploymentSetName": "testDeploymentSetName",
        "InstanceAmount": 3,
        "InstanceIds": {
          "InstanceId": [
            "i-bp67acfmxazb4ph****"
          ]
        },
        "Capacities": {
          "Capacity": [
            {
              "ZoneId": "cn-hangzhou-i",
              "UsedAmount": 2,
              "AvailableAmount": 18
            }
          ]
        }
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
403InvalidDeploymentSetIds.TooManyInputThe parameter DeploymentSets size should less than 100.The number of specified deployment sets exceeds 100.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-01-17The Error code has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 403
Output ParametersThe response structure of the API has changed.