功能介紹
查詢 企業(yè)路由器 實(shí)例下的VPC連接列表。
接口約束
-
支持過濾查詢,過濾條件有id,state,enterprise_project_id,vpc_id,過濾條件可以重復(fù)和組合。
-
支持分頁查詢,limit和marker組合實(shí)現(xiàn)分頁查詢。
-
支持單字段排序功能,排序字段有[id,name,description,created_at,updated_at],不支持多字段排序。
調(diào)試
您可以在API Explorer中調(diào)試該接口,支持自動(dòng)認(rèn)證鑒權(quán)。API Explorer可以自動(dòng)生成SDK代碼示例,并提供SDK代碼示例調(diào)試功能。
URI
GET /v3/{project_id}/enterprise-router/{er_id}/vpc-attachments
|
參數(shù) |
是否必選 |
參數(shù)類型 |
描述 |
|---|---|---|---|
|
project_id |
是 |
String |
項(xiàng)目ID |
|
er_id |
是 |
String |
企業(yè)路由器實(shí)例ID |
|
參數(shù) |
是否必選 |
參數(shù)類型 |
|---|---|---|
|
limit |
否 |
Integer |
|
marker |
否 |
String |
|
state |
否 |
Array |
|
id |
否 |
Array |
|
sort_key |
否 |
Array |
|
sort_dir |
否 |
Array |
|
vpc_id |
否 |
Array |
請(qǐng)求參數(shù)
無
響應(yīng)參數(shù)
狀態(tài)碼: 200
|
參數(shù) |
參數(shù)類型 |
描述 |
|---|---|---|
|
vpc_attachments |
VPC連接列表 |
|
|
page_info |
分頁查詢的信息 |
|
|
request_id |
String |
請(qǐng)求ID |
|
參數(shù) |
參數(shù)類型 |
|---|---|
|
id |
String |
|
name |
String |
|
vpc_id |
String |
|
virsubnet_id |
String |
|
auto_create_vpc_routes |
Boolean |
|
state |
String |
|
created_at |
String |
|
updated_at |
String |
|
tags |
|
|
description |
String |
|
project_id |
String |
|
vpc_project_id |
String |
請(qǐng)求示例
-
分頁查詢VPC連接信息
GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/vpc-attachments?limit=10 -
查詢?nèi)縑PC連接信息
GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/vpc-attachments
響應(yīng)示例
狀態(tài)碼: 200
OK
{
"vpc_attachments" : [ {
"id" : "6f83b848-8331-4271-ac0c-ef94b7686402",
"name" : "vpc-attach-01",
"vpc_id" : "b715e131-3371-4e17-a2de-4f669e24439a",
"virsubnet_id" : "0605767a9980d5762fbcc00b3537e757",
"project_id" : "08d5a9564a704afda6039ae2babbef3c",
"state" : "available",
"created_at" : "2020-03-11T15:13:31Z",
"updated_at" : "2020-03-11T15:13:31Z"
}, {
"id" : "6f83b848-8331-4271-ac0c-ef94b7686402",
"name" : "vpc-attach-01",
"vpc_id" : "4b8567f6-358f-4a7f-8cd3-3cbb82c0b25f",
"virsubnet_id" : "2b55f334-a15e-43a9-ab11-b34c2dbb6fac",
"project_id" : "08d5a9564a704afda6039ae2babbef3c",
"state" : "available",
"created_at" : "2020-03-11T15:13:31Z",
"updated_at" : "2020-03-11T15:13:31Z"
} ],
"page_info" : {
"next_marker" : "1",
"current_count" : 2
},
"request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
}
狀態(tài)碼
|
狀態(tài)碼 |
描述 |
|---|---|
|
200 |
OK |
錯(cuò)誤碼
請(qǐng)參見錯(cuò)誤碼。
