查询所支持的实例机型族信息

最近更新时间:2018-08-17 17:02:40

1. 接口描述

接口请求域名: cvm.tencentcloudapi.com 。

本接口(DescribeInstanceFamilyConfigs)查询当前用户和地域所支持的机型族列表信息。

接口请求频率限制:10次/每秒。

注意:本接口支持金融区地域。由于金融区和非金融区是隔离不互通的,因此当公共参数 Region 为金融区地域(例如 ap-shanghai-fsi )时,需要同时指定带金融区地域的域名,最好和 Region 的地域保持一致,例如:cvm.ap-shanghai-fsi.tencentcloudapi.com 。

2. 输入参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数

参数名称 必选 类型 描述
Action String 公共参数,本接口取值:DescribeInstanceFamilyConfigs
Version String 公共参数,本接口取值:2017-03-12
Region String 公共参数,详见产品支持的地域列表

3. 输出参数

参数名称 类型 描述
InstanceFamilyConfigSet Array of InstanceFamilyConfig 实例机型组配置的列表信息
RequestId String 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。

4. 错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码

错误码 描述
InternalServerError 操作内部错误。
InvalidParameterValue 无效参数值。参数值格式错误或者参数值不被支持等。
InvalidRegion.NotFound 未找到该区域。

5. 示例

示例1 查询所支持的实例机型族信息

输入示例

https://cvm.tencentcloudapi.com/?Action=DescribeInstanceFamilyConfigs
&Region=ap-guangzhou
&<公共请求参数>

输出示例

{
  "Response": {
    "InstanceFamilyConfigSet": [
      {
        "InstanceFamily": "S1",
        "InstanceFamilyName": "标准型S1"
      },
      {
        "InstanceFamily": "N1",
        "InstanceFamilyName": "网络优化型N1"
      },
      {
        "InstanceFamily": "I1",
        "InstanceFamilyName": "高IO型I1"
      },
      {
        "InstanceFamily": "M1",
        "InstanceFamilyName": "内存型M1"
      },
      {
        "InstanceFamily": "S2",
        "InstanceFamilyName": "标准型S2"
      },
      {
        "InstanceFamily": "SN2",
        "InstanceFamilyName": "标准型SN2"
      },
      {
        "InstanceFamily": "I2",
        "InstanceFamilyName": "高IO型I2"
      },
      {
        "InstanceFamily": "M2",
        "InstanceFamilyName": "内存型M2"
      },
      {
        "InstanceFamily": "C2",
        "InstanceFamilyName": "计算型C2"
      },
      {
        "InstanceFamily": "CN2",
        "InstanceFamilyName": "计算型CN2"
      },
      {
        "InstanceFamily": "S3",
        "InstanceFamilyName": "标准型S3"
      },
      {
        "InstanceFamily": "C3",
        "InstanceFamilyName": "计算型C3"
      },
      {
        "InstanceFamily": "FX2",
        "InstanceFamilyName": "FPGA型FX2"
      },
      {
        "InstanceFamily": "GN2",
        "InstanceFamilyName": "GPU计算型GN2"
      },
      {
        "InstanceFamily": "GA2",
        "InstanceFamilyName": "GPU渲染型GA2"
      },
      {
        "InstanceFamily": "GN8",
        "InstanceFamilyName": "GPU计算型GN8"
      },
      {
        "InstanceFamily": "CDH",
        "InstanceFamilyName": "独享型"
      },
      {
        "InstanceFamily": "SHARED",
        "InstanceFamilyName": "共享核"
      },
      {
        "InstanceFamily": "SPECIAL",
        "InstanceFamilyName": "特殊机型"
      },
      {
        "InstanceFamily": "OTHER",
        "InstanceFamilyName": "其他"
      }
    ],
    "RequestId": "b061782b-934a-4e53-b1eb-d5f2fed8130e"
  }
}

6. 其他资源

云 API 3.0 提供了配套的开发工具,能更方便的调用 API 。