Resource: Router
Message describing Router object
JSON representation |
---|
{ "name": string, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "description": string, "network": string, "interface": [ { object ( |
Fields | |
---|---|
name |
Required. The canonical resource name of the router. |
create |
Output only. The time when the router was created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
update |
Output only. The time when the router was last updated. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
labels |
Labels associated with this resource. An object containing a list of |
description |
Optional. A free-text description of the resource. Max length 1024 characters. |
network |
Required. The canonical name of the network to which this router belongs. The name is in the form of |
interface[] |
Router interfaces. |
bgp |
BGP peers. |
bgp |
BGP information specific to this router. |
state |
Output only. Current stage of the resource to the device by config push. |
route |
Optional. A list of CIDRs in IP/Length format to advertise northbound as static routes from this router. |
Interface
Router Interface defines the GDCE zone side layer-3 information for building the BGP session.
JSON representation |
---|
{ "name": string, "ipv4Cidr": string, "ipv6Cidr": string, "linkedInterconnectAttachment": string, "subnetwork": string, "loopbackIpAddresses": [ string ] } |
Fields | |
---|---|
name |
Name of this interface entry. Unique within the Zones resource. |
ipv4 |
IP address and range of the interface. |
ipv6 |
IPv6 address and range of the interface. |
linked |
The canonical name of the linked Interconnect attachment. |
subnetwork |
The canonical name of the subnetwork resource that this interface belongs to. |
loopback |
Create loopback interface in the router when specified. The number of IP addresses must match the number of TOR devices. |
BgpPeer
BGPPeer defines the peer side layer-3 information for building the BGP session.
JSON representation |
---|
{ "name": string, "interface": string, "interfaceIpv4Cidr": string, "interfaceIpv6Cidr": string, "peerIpv4Cidr": string, "peerIpv6Cidr": string, "peerAsn": integer, "localAsn": integer } |
Fields | |
---|---|
name |
Name of this BGP peer. Unique within the Zones resource. |
interface |
Name of the RouterInterface the BGP peer is associated with. |
interface |
IP range of the interface within Google. |
interface |
IPv6 range of the interface within Google. |
peer |
IP range of the BGP interface outside Google. |
peer |
IPv6 range of the BGP interface outside Google. |
peer |
Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value. |
local |
Output only. Local BGP Autonomous System Number (ASN). This field is ST_NOT_REQUIRED because it stores private ASNs, which are meaningless outside the zone in which they are being used. |
Bgp
BGP information specific to this router.
JSON representation |
---|
{ "asn": integer, "keepaliveIntervalInSeconds": integer } |
Fields | |
---|---|
asn |
Locally assigned BGP ASN. |
keepalive |
The interval in seconds between BGP keepalive messages that are sent to the peer. Default is 20 with value between 20 and 60. |
Methods |
|
---|---|
|
Creates a new Router in a given project and location. |
|
Deletes a single Router. |
|
Get the diagnostics of a single router resource. |
|
Gets details of a single Router. |
|
Lists Routers in a given project and location. |
|
Updates the parameters of a single Router. |