You need to enable JavaScript to run this app.
导航

获取可开通的实例规格

最近更新时间2023.07.03 16:32:35

首次发布时间2022.02.25 18:58:31

本接口用于获取边缘服务下可开通的实例规格。

请求方法

GET

请求参数

下表列出了接口特定的请求参数以及公共请求参数 Action 和 Version。 其他公共参数,请参见公共参数

名称

类型

是否必选

示例值

描述

Action

String

ListInstanceTypes

公共参数。该参数表示接口名称。取值:ListInstanceTypes。

Version

String

2021-04-30

公共参数。该参数表示接口版本。取值:2021-04-30。

返回数据

名称

类型

示例值

描述

instance_type_configs

[]InstanceTypeConfig

请参见返回示例

实例规格列表。

请求示例

GET https://veenedge.volcengineapi.com/?Action=ListInstanceTypes&Version=2021-04-30
&<其他公共参数>

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202305191956536197961A3F5BA175****",
        "Action": "ListInstanceTypes",
        "Version": "2021-04-30",
        "Service": "veenedge",
        "Region": "cn-north-1"
    },
    "Result": {
        "instance_type_configs": [
            {
                "instance_type": "veEN.G1.large",
                "instance_type_family": "G",
                "cpu": 2,
                "memory": 8,
                "gpu": 0,
                "gpu_spec": "",
                "instance_type_family_name": "通用型",
                "arch": "x86"
            },
            {
                "instance_type": "veEN.C1.xlarge",
                "instance_type_family": "C",
                "cpu": 4,
                "memory": 8,
                "gpu": 0,
                "gpu_spec": "",
                "instance_type_family_name": "计算型",
                "arch": "x86"
            },
            {
                "instance_type": "veEN.R1.3xlarge",
                "instance_type_family": "R",
                "cpu": 12,
                "memory": 96,
                "gpu": 0,
                "gpu_spec": "",
                "instance_type_family_name": "内存型",
                "arch": "x86"
            }
        ]
    }
}

错误码

如果响应正文中包含 Error 字段,则表示 API 请求失败。关于错误码的更多信息,参见错误码