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 projects/{project}/locations/{location}/zones/{zone}/networks/{network}.  | 
              
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, "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. This value is only used when linkedInterconnectAttachment is set.  | 
              
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, "peerIpv4Cidr": string, "peerAsn": 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.  | 
              
peerIpv4Cidr | 
                
                   
 IP range of the BGP interface outside Google.  | 
              
peerAsn | 
                
                   
 Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value.  | 
              
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. |