查询指定业务可创建的实例规格列表。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | ListInstanceConfigurationSpec | 接口名称。当前 API 的名称为 ListInstanceConfigurationSpec。 |
| Version | String | 是 | 2023-10-30 | 接口版本。当前 API 的版本为 2023-10-30。 |
| ProductId | String | 是 | 1846027520802****** | 当前业务 ID。可登录云手机控制台,在已创建的业务卡片中获取。 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| Row | Array of ConfigurationSpec | - | 实例规格数组。 |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| Memory | String | 8192 | 实例内存容量。 |
| CpuCore | String | 8 | 实例 CPU 核数。 |
| Multiple | Integer | 1 | 实例开数。 |
| ServerTypeCode | String | g2.8c12g | 云机规格。 |
| ConfigurationCode | String | ultimate | 实例规格 ID。 |
| ConfigurationName | String | 旗舰型 | 实例规格名称。 |
GET https://open.volcengineapi.com?Action=ListInstanceConfigurationSpec&Version=2023-10-30&ProductId=1846027520802******
{ "ResponseMetadata": { "Action": "ListInstanceConfigurationSpec", "Region": "cn-north-1", "Service": "ACEP", "Version": "2023-10-30", "RequestId": "20230604110420****100232280022D31" }, "Result": { "Row": [ { "ConfigurationCode": "ultimate", "ConfigurationName": "旗舰型", "ServerTypeCode": "g2.8c12g", "CpuCore": "8", "Memory": "8192", "Multiple": 1 }, { "ConfigurationCode": "enhanced", "ConfigurationName": "加强型", "ServerTypeCode": "g2.8c12g", "CpuCore": "4", "Memory": "4096", "Multiple": 2 }, { "ConfigurationCode": "common", "ConfigurationName": "通用型", "ServerTypeCode": "g2.8c12g", "CpuCore": "3", "Memory": "3072", "Multiple": 3 }, { "ConfigurationCode": "sample", "ConfigurationName": "入门型", "ServerTypeCode": "g2.8c12g", "CpuCore": "2", "Memory": "2048", "Multiple": 4 }, { "ConfigurationCode": "basic", "ConfigurationName": "基础型", "ServerTypeCode": "g2.8c12g", "CpuCore": "1.6", "Memory": "2048", "Multiple": 5 }, { "ConfigurationCode": "elementary", "ConfigurationName": "低配型", "ServerTypeCode": "g2.8c12g", "CpuCore": "1.3", "Memory": "1706", "Multiple": 6 } ] } }
您可访问公共错误码,获取更多错误码信息。