Queries the attributes of one or more deployment sets.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the deployment set. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
PageNumber | integer | No | The number of the page to return. Pages start from page 1. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. 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 up to 100 deployment set IDs in the format of | ["ds-bp67acfmxazb4ph****", "ds-bp67acfmxazb4pi****", … "ds-bp67acfmxazb4pj****"] |
NetworkType | string | No | Note
The 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. It must start with a letter and cannot start with | testDeploymentSetName |
Granularity | string | No | Note
The parameter is deprecated.
| null |
Domain | string | No | Note
The parameter is deprecated.
| null |
Response parameters
Examples
Sample success responses
JSON
format
{
"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 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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||
---|---|---|---|---|---|---|---|---|
2022-01-17 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||
|