查询租户下辅助弹性网卡列表
功能介绍
查询辅助弹性网卡列表,单次查询最多返回2000条数据。
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。
URI
GET /v3/{project_id}/vpc/sub-network-interfaces
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
project_id |
是 |
String |
项目ID。 获取方式请参见获取项目ID。 |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
limit |
否 |
Integer |
|
marker |
否 |
String |
分页查询起始的资源ID,为空时查询第一页。 |
id |
否 |
Array of strings |
|
description |
否 |
Array of strings |
|
vpc_id |
否 |
Array of strings |
|
virsubnet_id |
否 |
Array of strings |
|
parent_id |
否 |
Array of strings |
|
private_ip_address |
否 |
Array of strings |
|
mac_address |
否 |
Array of strings |
|
enable_eip |
否 |
Boolean |
|
scope |
否 |
String |
|
security_groups |
否 |
String |
|
parent_device_id |
否 |
String |
|
vlan_id |
否 |
Integer |
|
state |
否 |
String |
|
ipv6_ip_address |
否 |
String |
|
project_id |
否 |
String |
|
instance_id |
否 |
String |
|
instacne_type |
否 |
String |
|
请求参数
无
响应参数
状态码:200
参数 |
参数类型 |
描述 |
---|---|---|
request_id |
String |
|
sub_network_interfaces |
Array of SubNetworkInterface objects |
辅助弹性网卡查询对象。 |
page_info |
PageInfo object |
分页信息。 |
参数 |
参数类型 |
描述 |
---|---|---|
id |
String |
|
virsubnet_id |
String |
|
private_ip_address |
String |
|
ipv6_ip_address |
String |
|
mac_address |
String |
|
parent_device_id |
String |
|
parent_id |
String |
|
description |
String |
|
vpc_id |
String |
|
vlan_id |
Integer |
|
security_groups |
Array of strings |
|
tags |
Array of ResourceTag objects |
|
project_id |
String |
|
created_at |
String |
|
allowed_address_pairs |
Array of AllowAddressPair objects |
|
state |
String |
|
instance_id |
String |
|
instance_type |
String |
|
scope |
String |
|
security_enabled |
Boolean |
|
参数 |
参数类型 |
描述 |
---|---|---|
key |
String |
最小长度:1 最大长度:128 |
value |
String |
最大长度:255 |
请求示例
-
使用辅助弹性网卡ID过滤查询辅助弹性网卡列表。
GET https://{Endpoint}/v3/8c6fb137a48a428aaf9a0229dca4edb3/vpc/sub-network-interfaces?id=022b5c53-20e1-4f4b-b90c-0575a5e97412&id=056d6cb4-b436-460d-9a63-67666bf3ea9c
-
多条件组合过滤查询辅助弹性网卡
https://{Endpoint}/v3/8c6fb137a48a428aaf9a0229dca4edb3/vpc/sub-network-interfaces?virsubnet_id=3eae2c96-de45-4c41-bf2d-e4ad53a2acb4&private_ip_address=192.168.22.177&parent_id=5eb9dc59-8159-4197-88ea-f3507ad8e0a7
-
分页查询辅助弹性网卡列表
GET https://{Endpoint}/v3/8c6fb137a48a428aaf9a0229dca4edb3/vpc/sub-network-interfaces?limit=2
响应示例
状态码:200
GET操作正常返回,更多状态码请参见状态码。
{
"request_id" : "db2bd86cad7519610d9d405228e63076",
"sub_network_interfaces" : [ {
"id" : "4c2b455a-4c75-4c4d-bada-727be4d0f7b5",
"project_id" : "6b32266bded64091a138e9ec19cff361",
"virsubnet_id" : "3c15c3b0-0df4-4115-9c18-e67a8a0d7702",
"private_ip_address" : "192.168.0.160",
"ipv6_ip_address" : null,
"mac_address" : "fa:16:3e:26:7e:1e",
"parent_device_id" : "285b2e45-2968-4f4c-8992-54e0d4c8da1d",
"security_enabled" : false,
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"vpc_id" : "c10e1e02-9db2-4bd0-89ef-52536952627e",
"instance_id" : "",
"instance_type" : "",
"description" : "",
"parent_id" : "00336617-4552-48c5-9856-f539f4e9aca2",
"vlan_id" : 3413,
"state" : null,
"tags" : [ ],
"scope" : "center",
"created_at" : "2025-02-10T08:21:16Z"
}, {
"id" : "a9ecbff0-d24f-493d-b62c-ee9b916db23a",
"project_id" : "6b32266bded64091a138e9ec19cff361",
"virsubnet_id" : "3c15c3b0-0df4-4115-9c18-e67a8a0d7702",
"private_ip_address" : "192.168.0.20",
"ipv6_ip_address" : null,
"mac_address" : "fa:16:3e:26:7e:92",
"parent_device_id" : "285b2e45-2968-4f4c-8992-54e0d4c8da1d",
"security_enabled" : false,
"security_groups" : [ ],
"allowed_address_pairs" : [ ],
"vpc_id" : "c10e1e02-9db2-4bd0-89ef-52536952627e",
"instance_id" : "",
"instance_type" : "",
"description" : "",
"parent_id" : "00336617-4552-48c5-9856-f539f4e9aca2",
"vlan_id" : 595,
"state" : null,
"tags" : [ ],
"scope" : "center",
"created_at" : "2025-02-10T08:21:16Z"
} ],
"page_info" : {
"previous_marker" : "4c2b455a-4c75-4c4d-bada-727be4d0f7b5",
"current_count" : 2
}
}
状态码
状态码 |
描述 |
---|---|
200 |
GET操作正常返回,更多状态码请参见状态码。 |
错误码
请参见错误码。