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. |
createTime |
Output only. The time when the router was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The time when the router was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. 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. |
bgpPeer[] |
BGP peers. |
bgp |
BGP information specific to this router. |
state |
Output only. Current stage of the resource to the device by config push. |
routeAdvertisements[] |
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. |
ipv4Cidr |
IP address and range of the interface. |
ipv6Cidr |
IPv6 address and range of the interface. |
linkedInterconnectAttachment |
The canonical name of the linked Interconnect attachment. |
subnetwork |
The canonical name of the subnetwork resource that this interface belongs to. |
loopbackIpAddresses[] |
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. |
interfaceIpv4Cidr |
IP range of the interface within Google. |
interfaceIpv6Cidr |
IPv6 range of the interface within Google. |
peerIpv4Cidr |
IP range of the BGP interface outside Google. |
peerIpv6Cidr |
IPv6 range of the BGP interface outside Google. |
peerAsn |
Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value. |
localAsn |
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. |
keepaliveIntervalInSeconds |
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. |