Method get
Returns the specified RouteTable resource.
To get the list of available RouteTable resources, make a list request.
HTTP request
GET https://vpc.api.cloud.yandex.net/vpc/v1/routeTables/{routeTableId}
Path parameters
Parameter | Description |
---|---|
routeTableId | Required. ID of the RouteTable resource to return. To get the route table ID use a list request. The maximum string length in characters is 50. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"folderId": "string",
"createdAt": "string",
"name": "string",
"description": "string",
"labels": "object",
"networkId": "string",
"staticRoutes": [
{
"labels": "object",
"destinationPrefix": "string",
"nextHopAddress": "string"
}
]
}
A RouteTable resource. For more information, see Static Routes.
Field | Description |
---|---|
id | string ID of the route table. |
folderId | string ID of the folder that the route table belongs to. |
createdAt | string (date-time) Creation timestamp in RFC3339 text format. String in RFC3339 text format. |
name | string Name of the route table. The name is unique within the project. 3-63 characters long. |
description | string Optional description of the route table. 0-256 characters long. |
labels | object Resource labels as |
networkId | string ID of the network the route table belongs to. |
staticRoutes[] | object A StaticRoute resource. For more information, see Static Routes. |
staticRoutes[]. labels |
object Resource labels as |
staticRoutes[]. destinationPrefix |
string Destination subnet in CIDR notation |
staticRoutes[]. nextHopAddress |
string Next hop IP address |