本接口用于获取私有网络列表。
下表列出了接口特定的请求参数以及公共请求参数 Action 和 Version。 其他公共参数,请参见公共参数。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListVPCInstances | 接口名称。当前 API 的名称为 ListVPCInstances 。 |
Version | String | 是 | 2021-04-30 | 接口版本。当前 API 的版本为 2021-04-30 。 |
cluster_names | []String | 否 | ****-zzcu01 | 节点名称的列表。多个节点之间用半角逗号(,)分隔。 |
vpc_identity_list | []String | 否 | vpc-sbjngs**** | 私有网络的 ID 的列表。多个私有网络之间用半角逗号(,)分隔。 |
fuzzy_vpc_id_or_name | String | 否 | vpc | 私有网络的 ID 或者名称。支持模糊查询。 |
is_vlan_vpc | Boolean | 否 |
| 是否是 VLAN 私有网络:
|
is_default_vpc | Boolean | 否 |
| 是否是默认私有网络:
|
is_custom_vpc | Boolean | 否 |
| 是否是自定义私有网络:
|
fuzzy_segment | String | 否 | 172.1.0 | 私有网络的网段。支持模糊查询。 |
with_resource_statistic | Boolean | 否 |
| 是否返回私有网络下的资源的统计数据。取值范围:
|
page | Integer | 否 |
| 私有网络列表的页码。 |
limit | Integer | 否 |
| 分页查询时设置的每页行数。 |
order_by | Integer | 否 |
| 查询出来的私有网络的排列顺序,按照创建时间排序。取值范围:
|
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
vpc_instances | []VpcInstances | 请参见返回示例 | 私有网络的列表。 |
count | Long | 1 | 私有网络的数量。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
vpc_identity | String | vpc-sbjngs**** | 私有网络的 ID。 |
vpc_name | String | **联通01-默认VPC | 私有网络的名称。 |
cluster | Cluster | 见下文说明 | 私有网络所属的节点。 |
status | String |
| 私有网络的状态:
|
is_default | Boolean |
| 是否是默认私有网络:
|
desc | String | **联通01-默认VPC | 私有网络的描述。 |
is_vlan | Boolean |
| 是否是 VLAN 私有网络:
|
sub_nets | []SubNets | 见下文说明 | 子网列表。 |
resource_statistic | ResourceStatistic | 见下文说明 | 资源统计列表。 |
create_time | Long | 1632808736 | 私有网络的创建时间。 |
update_time | Long | 1635757441 | 私有网络的更新时间。 |
local_account_vgw_num | Long | 1 | 本账号边缘云网关的数量。 |
cross_account_vgw_num | Long | 1 | 跨账号边缘云网关的数量。 |
is_custom | Boolean |
| 是否是自定义私有网络:
|
segment | String | 172.16.0.0/12 | 私有网络的网段。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
cluster_name | String | ****-zzcu01 | 节点的名称。 |
country | String | CN | 节点所在国家。 |
region | String | CentralChina | 节点所在的区域。 |
province | String | HA | 节点所在的省份。 |
city | String | 410100 | 节点所在的城市。 |
isp | String | CUCC | 运营商。 |
level | String |
| 节点的计费类别:
|
alias | String | **联通01 | 节点的中文名称。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
subnet_identity | String | subnet-t4qzc7f75gr**** | 子网的 ID。 |
cidr_ip | String | 172.**.**.128 | IP 地址。 |
cidr_mask | Integer | 26 | 前缀长度。 |
create_time | Long | 1634108663 | 子网的创建时间。 |
update_time | Long | 1634108663 | 子网的更新时间。 |
name | String | subnet-dev01 | 子网的名称。 |
desc | String | subnet-dev01 | 子网的描述。 |
status | String |
| 子网的状态:
|
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
veen_instance_count | Long | 1 | 边缘实例的数量。 |
veew_sg_instance_count | Long | 1 | 外网防火墙的数量。 |
veew_lb_instance_count | Long | 1 | 负载均衡实例的数量。 |
veew_route_table_instance_count | Long | 1 | 路由表的数量。 |
veew_natgw_instance_count | Long | 1 | NAT 网关的数量。 |
GET https://veenedge.volcengineapi.com/?Action=ListVPCInstances&Version=2021-04-30 &fuzzy_segment=172.16 &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 请求失败。关于错误码的更多信息,参见错误码。