Queries the details of one or more deployment sets.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribeDeploymentSets |
get |
*DeploymentSet
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the deployment set. You can call DescribeRegions to query the most recent region list. |
cn-hangzhou |
| PageNumber |
integer |
No |
The page number of the deployment set list. Minimum value: 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page for the paged query. Maximum value: 50. Default value: 10. |
10 |
| DeploymentSetIds |
string |
No |
The IDs of deployment sets. The value can be a JSON array that consists of multiple deployment set IDs in the format of |
["ds-bp67acfmxazb4ph****", "ds-bp67acfmxazb4pi****", … "ds-bp67acfmxazb4pj****"] |
| NetworkType |
string |
No |
Note
This parameter is deprecated. |
null |
| Strategy |
string |
No |
The deployment strategy. Valid values:
|
Availability |
| DeploymentSetName |
string |
No |
The name of the deployment set. The name must be 2 to 128 characters in length and can contain characters that are categorized as letter in Unicode, including English letters, Chinese characters, and digits. The name can also contain colons (:), underscores (_), periods (.), or hyphens (-). |
testDeploymentSetName |
| Granularity |
string |
No |
Note
This parameter is deprecated. |
null |
| Domain |
string |
No |
Note
This parameter is deprecated. |
null |
| Type |
string |
No |
The deployment type. Valid values:
Default value: host. |
host |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
The number of entries per page. |
1 |
| PageNumber |
integer |
The page number of the deployment set list. |
1 |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| TotalCount |
integer |
The total number of queried deployment sets. |
5 |
| RegionId |
string |
The region ID of the deployment set. |
cn-hangzhou |
| DeploymentSets |
object |
||
| DeploymentSet |
array<object> |
The details of the deployment sets. The value is an array that consists of DeploymentSet objects. |
|
|
array<object> |
|||
| CreationTime |
string |
The time when the deployment set was created. The time is displayed in ISO 8601 format in UTC. |
2021-12-07T06:01:46Z |
| Strategy |
string |
The deployment strategy. |
Availability |
| DeploymentSetId |
string |
The ID of the deployment set. |
ds-bp67acfmxazb4ph**** |
| AccountId |
integer |
The Alibaba Cloud account ID. |
1732*******734 |
| DeploymentStrategy |
string |
The deployment strategy. This response parameter corresponds to the value of the |
Availability |
| DeploymentSetDescription |
string |
The description of the deployment set. |
testDeploymentSetDescription |
| Domain |
string |
The deployment domain. |
default |
| GroupCount |
integer |
The number of groups in the deployment set. Note
This response parameter takes effect only when the deployment set strategy is the high availability group strategy (AvailabilityGroup). |
3 |
| Granularity |
string |
The deployment granularity. |
host |
| DeploymentSetName |
string |
The name of the deployment set. |
testDeploymentSetName |
| InstanceAmount |
integer |
The number of instances in the deployment set. |
3 |
| InstanceIds |
object |
||
| InstanceId |
array |
The instance IDs of instances in the deployment set. |
|
|
string |
The instance ID. |
i-bp67acfmxazb4ph**** |
|
| Capacities |
object |
||
| Capacity |
array<object> |
The capacity information of the deployment set at the zone level. The value is an array that consists of Capacity objects. This parameter is returned only when the deployment set contains existing ECS instances. |
|
|
object |
|||
| ZoneId |
string |
The zone ID. Only the zone IDs of existing ECS instances in the deployment set are returned. |
cn-hangzhou-i |
| UsedAmount |
integer |
The number of ECS instances in the deployment set that belong to the zone. |
2 |
| AvailableAmount |
integer |
The number of ECS instances that can be added to the deployment set in the zone. |
18 |
| Type |
string |
The deployment type. |
host |
| Affinity |
integer |
The affinity level of the deployment set. |
3 |
Examples
Success response
JSON format
{
"PageSize": 1,
"PageNumber": 1,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"TotalCount": 5,
"RegionId": "cn-hangzhou",
"DeploymentSets": {
"DeploymentSet": [
{
"CreationTime": "2021-12-07T06:01:46Z",
"Strategy": "Availability",
"DeploymentSetId": "ds-bp67acfmxazb4ph****",
"AccountId": 0,
"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
}
]
},
"Type": "host",
"Affinity": 3
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | InvalidDeploymentSetIds.TooManyInput | The parameter DeploymentSets size should less than 100. | The number of specified deployment sets exceeds 100. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.