routes
Creates, updates, deletes, gets or lists a routes
resource.
Overview
Name | routes |
Type | Resource |
Id | google.networkconnectivity.routes |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Immutable. The name of the route. Route names must be unique. Route names use the following form: projects/{project_number}/locations/global/hubs/{hub}/routeTables/{route_table_id}/routes/{route_id} |
description | string | An optional description of the route. |
createTime | string | Output only. The time the route was created. |
ipCidrRange | string | The destination IP address range. |
labels | object | Optional labels in key-value pair format. For more information about labels, see Requirements for labels. |
location | string | Output only. The origin location of the route. Uses the following form: "projects/{project}/locations/{location}" Example: projects/1234/locations/us-central1 |
nextHopInterconnectAttachment | object | A route next hop that leads to an interconnect attachment resource. |
nextHopRouterApplianceInstance | object | A route next hop that leads to a Router appliance instance. |
nextHopVpcNetwork | object | |
nextHopVpnTunnel | object | A route next hop that leads to a VPN tunnel resource. |
priority | string | Output only. The priority of this route. Priority is used to break ties in cases where a destination matches more than one route. In these cases the route with the lowest-numbered priority value wins. |
spoke | string | Immutable. The spoke that this route leads to. Example: projects/12345/locations/global/spokes/SPOKE |
state | string | Output only. The current lifecycle state of the route. |
type | string | Output only. The route's type. Its type is determined by the properties of its IP address range. |
uid | string | Output only. The Google-generated UUID for the route. This value is unique across all Network Connectivity Center route resources. If a route is deleted and another with the same name is created, the new route is assigned a different uid . |
updateTime | string | Output only. The time the route was last updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | hubsId, projectsId, routeTablesId, routesId | Gets details about the specified route. |
list | SELECT | hubsId, projectsId, routeTablesId | Lists routes in a given route table. |
SELECT
examples
Lists routes in a given route table.
SELECT
name,
description,
createTime,
ipCidrRange,
labels,
location,
nextHopInterconnectAttachment,
nextHopRouterApplianceInstance,
nextHopVpcNetwork,
nextHopVpnTunnel,
priority,
spoke,
state,
type,
uid,
updateTime
FROM google.networkconnectivity.routes
WHERE hubsId = '{{ hubsId }}'
AND projectsId = '{{ projectsId }}'
AND routeTablesId = '{{ routeTablesId }}';