最近更新时间:2023.07.25 18:39:31
首次发布时间:2023.01.06 07:41:48
调用 DescribeDeploymentSets 接口查询部署集的属性。
名称 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeDeploymentSets | 要执行的操作,取值:DescribeDeploymentSets。 |
Version | String | 是 | 2020-04-01 | API的版本,取值:2020-04-01。 |
DeploymentSetIds.N | String | 否 | DeploymentSetIds.1=dps-yc1o9aahks5m57nk****&DeploymentSetIds.2=dps-ybr1vulgy87grbt6**** | 部署集ID,您可以调用DescribeDeploymentSets查询部署集ID。
|
DeploymentSetName | String | 否 | testDeploymentSet | 部署集名称。
|
Strategy | String | 否 | Availability | 部署策略,取值:
|
Granularity | String | 否 | host | 部署集粒度,取值:
说明 当 |
MaxResults | Integer | 否 | 10 | 分页查询时设置的每页行数:
|
NextToken | String | 否 | - | 分页查询凭证,用于标记分页的位置,初次调用该接口时无需设置。下次查询时,取值为上一次API调用返回的NextToken 参数值。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
DeploymentSets | Array of Struct | - | 部署集详情,具体请参见下表“ DeploymentSet结构 ”。 |
NextToken | String | bHpwdXJja2RxemU1eG5sb3NzdGcW1-RCEq****** | 本次调用返回的查询凭证值,返回为空表示该页为末页。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
CreatedAt | String | 2021-07-26T21:55:12+08:00 | 部署集的创建时间。 |
DeploymentSetDescription | String | tesDeploymentDescription | 部署集描述。 |
DeploymentSetId | String | dps-yc1o9aahks5m57nk**** | 部署集ID。 |
DeploymentSetName | String | testDeploymentSet | 部署集名称。 |
Strategy | String | Availability | 部署策略。 |
Granularity | String | host | 部署集粒度。 |
GroupCount | Integer | 3 | 部署集组数量。 |
InstanceAmount | Integer | 1 | 部署集内的实例数量。 |
InstanceIds | List | ["i-3tigy72q3u3vj0x2****","i-3tigy72q3u3vj0x2****"] | 部署集内的实例ID列表。 |
Capacities | Array of Struct | - | 部署集所属可用区内的相关信息,仅当部署集内有存量实例时返回该参数,具体请参见下表“ Capacity结构 ”。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
ZoneId | String | cn-beijing-a | 实例所属可用区ID,仅返回部署集内存量实例所属的可用区ID。 |
UsedCount | Integer | 1 | 部署集内属于该可用区的实例数量。 |
AvailableCount | Integer | 4 | 该可用区内,还可以加入当前部署集的实例数量。 |
GET /?Action=DescribeDeploymentSets&Version=2020-04-01&DeploymentSetIds.1=dps-yc1o9aahks5m57nk**** HTTP/1.1 Host: open.volcengineapi.com Region: cn-beijing ServiceName: ecs
{ "ResponseMetadata": { "RequestId": "2021110417394001022514606307*****", "Action": "DescribeDeploymentSets", "Version": "2020-04-01", "Service": "ecs", "Region": "cn-beijing" }, "Result": { "DeploymentSets": [ { "CreatedAt": "2021-11-25T15:12:58+08:00", "DeploymentSetDescription": "", "DeploymentSetId": "dps-yc1o9aahks5m57nk****", "DeploymentSetName": "testDeploymentSet", "Strategy": "Availability", "Granularity": "host", "InstanceAmount": 1, "InstanceIds": [ i-3tigy72q3u3vj0x2**** ], "Capacities": [ { "ZoneId": "cn-beijing-a", "UsedCount": 1, "AvailableCount": 4 } ] } ], "NextToken":"bHpwdXJja2RxemU1eG5sb3NzdGcW1-RCEq******" } }
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidArgument | The specified argument is invalid. | 指定的参数不合法。 |
400 | LimitExceeded.MaximumDeploymentSetIds | You've reached the limit on the number of DeploymentSetIds that you can set. | 指定的部署集数量超过最大限制。 |
500 | InternalError | An internal error has occurred. | 内部错误,请重试。如果多次尝试失败,请提交工单。 |