Skip to main content

routers

Overview

Namerouters
TypeResource
Idgoogle.compute.routers

Fields

NameDatatypeDescription
idstring[Output Only] The unique identifier for the resource. This identifier is defined by the server.
namestringName of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
descriptionstringAn optional description of this resource. Provide this property when you create the resource.
creationTimestampstring[Output Only] Creation timestamp in RFC3339 text format.
interfacesarrayRouter interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both.
encryptedInterconnectRouterbooleanIndicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments).
selfLinkstring[Output Only] Server-defined URL for the resource.
md5AuthenticationKeysarrayKeys used for MD5 authentication.
regionstring[Output Only] URI of the region where the router resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
networkstringURI of the network to which this router belongs.
natsarrayA list of NAT services created in this router.
kindstring[Output Only] Type of resource. Always compute#router for routers.
bgpPeersarrayBGP information that must be configured into the routing stack to establish BGP peering. This information must specify the peer ASN and either the interface name, IP address, or peer IP address. Please refer to RFC4273.
bgpobject

Methods

NameAccessible byRequired ParamsDescription
aggregated_listSELECTprojectRetrieves an aggregated list of routers.
getSELECTproject, region, routerReturns the specified Router resource.
listSELECTproject, regionRetrieves a list of Router resources available to the specified project.
insertINSERTproject, regionCreates a Router resource in the specified project and region using the data included in the request.
deleteDELETEproject, region, routerDeletes the specified Router resource.
_aggregated_listEXECprojectRetrieves an aggregated list of routers.
patchEXECproject, region, routerPatches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
previewEXECproject, region, routerPreview fields auto-generated during router create and update operations. Calling this method does NOT create or update the router.
updateEXECproject, region, routerUpdates the specified Router resource with the data included in the request. This method conforms to PUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload.