You need to enable JavaScript to run this app.
导航
DescribeDeploymentSetSupportedInstanceTypeFamily - 查询支持部署集的实例规格族列表
最近更新时间:2024.05.21 10:23:57首次发布时间:2023.01.06 07:41:48

调用 DescribeDeploymentSetSupportedInstanceTypeFamily 接口查询支持部署集的实例规格族。

使用场景

有关部署集的更多信息,请参见部署集概述

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
Action
String

DescribeDeploymentSetSupportedInstanceTypeFamily

要执行的操作,取值:DescribeDeploymentSetSupportedInstanceTypeFamily。

Version
String

2020-04-01

API的版本,取值:2020-04-01。

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构

参数
类型
示例值
描述
DeploymentSetCreateInstanceTypeFamilies
Array of String

["ecs.i2","ecs.g2i"]

支持使用部署集特性创建实例的规格族。

DeploymentSetModifyInstanceTypeFamilies
Array of String

["ecs.g2i","ecs.g1ie"]

支持变更部署集的实例规格族。

请求示例

GET /?Action=DescribeDeploymentSetSupportedInstanceTypeFamily&Version=2020-04-01 HTTP/1.1
Host: open.volcengineapi.com
Region: cn-beijing
ServiceName: ecs

返回示例

{
    "ResponseMetadata":{
        "RequestId":"2021110417394001022514606307*****",
        "Action":"DescribeDeploymentSetSupportedInstanceTypeFamily",
        "Version":"2020-04-01",
        "Service":"ecs",
        "Region":"cn-beijing"
    },
    "Result":{
        "DeploymentSetCreateInstanceTypeFamilies":[
            "ecs.c1ie",
            "ecs.c2i",
            "ecs.c2a",
            "ecs.r1ie",
            "ecs.r2i",
            "ecs.r2a",
            "ecs.g1ie",
            "ecs.g2i",
            "ecs.g2a",
            "ecs.i2",
            "ecs.d2",
            "ecs.d1s",
            "ecs.hfg2",
            "ecs.hfc2",
            "ecs.hfr2",
            "ecs.ebmg2i",
            "ecs.ebmg2a",
            "ecs.ebmhfc2i",
            "ecs.ebmi2"
        ],
        "DeploymentSetModifyInstanceTypeFamilies":[
            "ecs.c1ie",
            "ecs.c2i",
            "ecs.c2a",
            "ecs.r1ie",
            "ecs.r2i",
            "ecs.r2a",
            "ecs.g1ie",
            "ecs.g2i",
            "ecs.g2a",
            "ecs.hfg2",
            "ecs.hfc2",
            "ecs.hfr2",
            "ecs.ebmg2i",
            "ecs.ebmg2a",
            "ecs.ebmhfc2i"
        ]
    }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
500
InternalError
An internal error has occurred.

内部错误,请重试。如果多次尝试失败,请提交工单。