You need to enable JavaScript to run this app.
边缘计算节点

边缘计算节点

复制全文
私有网络
获取私有网络列表
复制全文
获取私有网络列表

本接口用于获取私有网络列表。

请求说明

  • 请求方式:GET
  • 请求地址:https://veenedge.volcengineapi.com/?Action=ListVPCInstances&Version=2021-04-30

请求参数

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

Query

参数
类型
是否必选
示例值
描述
Action
String
ListVPCInstances
接口名称。当前 API 的名称为 ListVPCInstances
Version
String
2021-04-30
接口版本。当前 API 的版本为 2021-04-30
projects
String[]
default
项目列表。项目之间用半角逗号(,)分隔。
limit
Integer
10
分页查询时设置的每页行数。
默认值:1000
order_by
Integer
1

查询出来的私有网络的排列顺序,按照创建时间排序。取值范围:

  • 1(默认值):按照降序排列。
  • 2:按照升序排列。
page
Integer
1
私有网络列表的页码。
默认值:1
TagFilters.N.Key
String[]
env
标签键。
TagFilters.N.Values.N
String[]
prod
标签值列表。
cluster_names
String[]
****-zzcu01
节点名称的列表。多个节点之间用半角逗号(,)分隔。
vpc_identity_list
String[]
vpc-sbjngs****
私有网络的 ID 的列表。多个私有网络之间用半角逗号(,)分隔。
is_vlan_vpc
Boolean
false

是否是 VLAN 私有网络:

  • true:VLAN 私有网络。
  • false:非 VLAN 私有网络。
is_default_vpc
Boolean
false

是否是默认私有网络:

  • true:默认私有网络。
  • false:该参数值无效。指定该参数值的效果等同于未指定 is_default_vpc 的值。
is_custom_vpc
Boolean
true

是否是自定义私有网络:

  • true:自定义私有网络。
  • false:非自定义私有网络。
with_resource_statistic
Boolean
false

是否返回私有网络下的资源的统计数据。取值范围:

  • true:返回资源的统计数据。
  • false(默认值):不返回资源的统计数据。
with_tag_info
Boolean
false

是否返回私有网络的标签信息。取值范围:

  • true:返回私有网络的标签信息。
  • false(默认值):不返回私有网络的标签信息。

返回参数

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

参数
类型
示例值
描述
count
Integer
1
私有网络的数量。
vpc_instances
Object[]
-
私有网络的列表。

请求示例

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

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20240319200454BFD1FA5DC840BA24****",
        "Action": "ListVPCInstances",
        "Version": "2021-04-30",
        "Service": "veenedge",
        "Region": "cn-north-1"
    },
    "Result": {
        "vpc_instances": [
            {
                "account_identity": 210006****,
                "user_identity": 0,
                "vpc_identity": "vpc-fwgwcb****",
                "vpc_name": "自定义vpc0001",
                "vpc_ns": "ns-210006**",
                "cluster_vpc_id": 29**,
                "cluster": {
                    "cluster_name": "**ct03",
                    "country": "CN",
                    "region": "NorthChina",
                    "province": "TJ",
                    "city": "120000",
                    "isp": "CTCC",
                    "level": "2",
                    "alias": "**电信03"
                },
                "status": "available",
                "is_default": false,
                "desc": "",
                "sub_nets": [
                    {
                        "account_identity": 210006****,
                        "user_identity": 0,
                        "subnet_identity": "subnet-5vw6c67cwjj****",
                        "cidr_ip": "172.16.0.0",
                        "cidr_mask": 20,
                        "name": "子网09",
                        "desc": "",
                        "status": "available",
                        "create_time": 1692947336,
                        "update_time": 1692947336
                    }
                ],
                "resource_statistic": {
                    "veen_instance_count": 1,
                    "veew_sg_instance_count": 1,
                    "veew_lb_instance_count": 0,
                    "veew_route_table_instance_count": 1,
                    "veew_natgw_instance_count": 0
                },
                "local_account_vgw_num": 0,
                "cross_account_vgw_num": 0,
                "is_custom": true,
                "segment": "172.16.0.0/12",
                "create_time": 1692947336,
                "update_time": 1692947336
            },
            {
                "account_identity": 210006****,
                "user_identity": 0,
                "vpc_identity": "vpc-6b4hvr****",
                "vpc_name": "vpc-01",
                "vpc_ns": "ns-210006****",
                "cluster_vpc_id": 35**,
                "cluster": {
                    "cluster_name": "**cm04",
                    "country": "CN",
                    "region": "Southwest",
                    "province": "SC",
                    "city": "510100",
                    "isp": "CMCC",
                    "level": "2",
                    "alias": "**移动04"
                },
                "status": "available",
                "is_default": false,
                "desc": "",
                "sub_nets": [
                    {
                        "account_identity": 210006****,
                        "user_identity": 0,
                        "subnet_identity": "subnet-sl7jpnt69tr****",
                        "cidr_ip": "172.16.1.0",
                        "cidr_mask": 24,
                        "name": "SubNet01",
                        "desc": "",
                        "status": "available",
                        "create_time": 1710417509,
                        "update_time": 1710417510
                    },
                    {
                        "account_identity": 210006****,
                        "user_identity": 0,
                        "subnet_identity": "subnet-2hjczm2llvk****",
                        "cidr_ip": "172.16.2.0",
                        "cidr_mask": 24,
                        "name": "SubNet02",
                        "desc": "",
                        "status": "available",
                        "create_time": 1710417941,
                        "update_time": 1710417941
                    }
                ],
                "resource_statistic": {
                    "veen_instance_count": 3,
                    "veew_sg_instance_count": 1,
                    "veew_lb_instance_count": 0,
                    "veew_route_table_instance_count": 1,
                    "veew_natgw_instance_count": 0
                },
                "local_account_vgw_num": 0,
                "cross_account_vgw_num": 0,
                "is_custom": true,
                "segment": "172.16.0.0/12",
                "create_time": 1710417509,
                "update_time": 1710417941
            },
            {
                "account_identity": 210006****,
                "user_identity": 0,
                "vpc_identity": "vpc-6stb4j****",
                "vpc_name": "Net01",
                "vpc_ns": "ns-210006****",
                "cluster_vpc_id": 25**,
                "cluster": {
                    "cluster_name": "**cm04",
                    "country": "CN",
                    "region": "Southwest",
                    "province": "SC",
                    "city": "510100",
                    "isp": "CMCC",
                    "level": "2",
                    "alias": "**移动04"
                },
                "status": "available",
                "is_default": false,
                "desc": "",
                "sub_nets": [
                    {
                        "account_identity": 210006****,
                        "user_identity": 0,
                        "subnet_identity": "subnet-wmp96wx5sh6****",
                        "cidr_ip": "172.16.1.0",
                        "cidr_mask": 24,
                        "name": "SubNet011",
                        "desc": "",
                        "status": "available",
                        "create_time": 1710419433,
                        "update_time": 1710419433
                    }
                ],
                "resource_statistic": {
                    "veen_instance_count": 0,
                    "veew_sg_instance_count": 1,
                    "veew_lb_instance_count": 0,
                    "veew_route_table_instance_count": 1,
                    "veew_natgw_instance_count": 0
                },
                "local_account_vgw_num": 0,
                "cross_account_vgw_num": 0,
                "is_custom": true,
                "segment": "172.16.1.0/24",
                "create_time": 1710419433,
                "update_time": 1710419433
            }
        ],
        "count": 3
    }
}

错误码

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

最近更新时间:2026.01.07 16:44:58
这个页面对您有帮助吗?
有用
有用
无用
无用