功能介紹
查詢路由表詳情。
調(diào)試
您可以在API Explorer中調(diào)試該接口。
URI
GET /v1/{project_id}/routetables/{routetable_id}
| 
 名稱  | 
 是否必選  | 
 參數(shù)類型  | 
 說明  | 
|---|---|---|---|
| 
 project_id  | 
 是  | 
 String  | 
 項目ID,請參見獲取項目ID。  | 
| 
 routetable_id  | 
 是  | 
 String  | 
 路由表ID,路由表唯一標識  | 
請求參數(shù)
無
請求示例
GET https://{Endpoint}/v1/26ae5181a416420998eb2093aaed84d9/routetables/66df8c1f-d4f6-4a63-9abb-09701fe27b39
響應(yīng)參數(shù)
| 
 名稱  | 
 參數(shù)類型  | 
 說明  | 
|---|---|---|
| 
 id  | 
 String  | 
  | 
| 
 name  | 
 String  | 
  | 
| 
 default  | 
 Boolean  | 
  | 
| 
 routes  | 
||
| 
 subnets  | 
||
| 
 tenant_id  | 
 String  | 
  | 
| 
 vpc_id  | 
 String  | 
  | 
| 
 description  | 
 String  | 
  | 
| 
 created_at  | 
 String  | 
  | 
| 
 updated_at  | 
 String  | 
  | 
| 
 名稱  | 
 參數(shù)類型  | 
 說明  | 
|---|---|---|
| 
 type  | 
 String  | 
  | 
| 
 destination  | 
 String  | 
  | 
| 
 nexthop  | 
 String  | 
  | 
| 
 description  | 
 String  | 
  | 
響應(yīng)示例
{
 "routetable": {
  "id": "05250d7e-0396-4fc9-9c9c-e4d5594784e4",
  "name": "rtb-vpc-l2cg-1",
  "routes": [
   {
    "type": "local",
    "destination": "192.168.4.0/24",
    "nexthop": "-"
   },
   {
    "type": "local",
    "destination": "192.168.1.0/24",
    "nexthop": "-"
   },
   {
    "type": "local",
    "destination": "198.19.128.0/20",
    "nexthop": "-"
   },
   {
    "type": "local",
    "destination": "127.0.0.0/8",
    "nexthop": "-"
   },
   {
    "type": "local",
    "destination": "100.64.0.0/10",
    "nexthop": "-"
   }
  ],
  "subnets": [
   {
    "id": "0e0faa8f-ea73-47aa-b919-8c133e98d5ac"
   },
   {
    "id": "e007e005-10aa-4614-b439-c9a14e55130e"
   }
  ],
  "vpc_id": "7978e43c-f892-49d8-9fab-9bb90a51709b",
  "default": true,
  "tenant_id": "05e369f07a800f802f41c002632ba5f9",
  "created_at": "2022-12-15T02:56:40",
  "updated_at": "2022-12-15T02:56:40"
 }
}
狀態(tài)碼
請參見狀態(tài)碼。
錯誤碼
請參考錯誤碼。
- 通過企業(yè)路由器構(gòu)建DC/VPN雙鏈路主備混合云組網(wǎng)_企業(yè)路由器工作原理_如何使用ER
 - 公網(wǎng)NAT網(wǎng)關(guān)通過多網(wǎng)關(guān)擴展容量_NAT網(wǎng)關(guān)_公網(wǎng)NAT_多網(wǎng)關(guān)-華為云
 - ER是什么_什么是企業(yè)路由器_華為云企業(yè)路由器有什么優(yōu)勢
 - 如何快速創(chuàng)建VPC對等連接_對接連接是什么意思_華為云VPC對接連接
 - GaussDB查詢庫表_GaussDB查詢數(shù)據(jù)庫表_高斯數(shù)據(jù)庫查詢庫表-華為云
 
  
    