Querying a Route Table
Function
This API is used to query details about a route table.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
vpc:routeTables:get
Read
routeTable *
- vpc:RouteTableId
- vpc:VpcId
- g:EnterpriseProjectId
-
-
URI
GET /v1/{project_id}/routetables/{routetable_id}
Table 1 describes the parameters.
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Specifies the project ID. For details about how to obtain a project ID, see Obtaining a Project ID. |
|
routetable_id |
Yes |
String |
Specifies the route table ID that uniquely identifies a route table. |
Request Parameters
None
Example Request
GET https://{Endpoint}/v1/26ae5181a416420998eb2093aaed84d9/routetables/66df8c1f-d4f6-4a63-9abb-09701fe27b39
Response Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
routetable |
routetable object |
Specifies the route table. For details, see Table 3. |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
|
|
name |
String |
|
|
default |
Boolean |
|
|
routes |
Array of route objects |
|
|
subnets |
Array of subnet objects |
|
|
tenant_id |
String |
|
|
vpc_id |
String |
|
|
description |
String |
|
|
created_at |
String |
|
|
updated_at |
String |
|
|
Parameter |
Type |
Description |
|---|---|---|
|
type |
String |
|
|
destination |
String |
|
|
nexthop |
String |
|
|
description |
String |
|
Example Response
{
"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"
}
}
Status Code
See Status Codes.
Error Code
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot