1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="compute_alpha.html">Compute Engine API</a> . <a href="compute_alpha.routers.html">routers</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p> 79<p class="firstline">Retrieves an aggregated list of routers.</p> 80<p class="toc_element"> 81 <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p> 82<p class="firstline">Retrieves the next page of results.</p> 83<p class="toc_element"> 84 <code><a href="#delete">delete(project, region, router, requestId=None)</a></code></p> 85<p class="firstline">Deletes the specified Router resource.</p> 86<p class="toc_element"> 87 <code><a href="#get">get(project, region, router)</a></code></p> 88<p class="firstline">Returns the specified Router resource. Gets a list of available routers by making a list() request.</p> 89<p class="toc_element"> 90 <code><a href="#getNatMappingInfo">getNatMappingInfo(project, region, router, orderBy=None, maxResults=None, pageToken=None, natName=None, filter=None)</a></code></p> 91<p class="firstline">Retrieves runtime Nat mapping information of VM endpoints.</p> 92<p class="toc_element"> 93 <code><a href="#getNatMappingInfo_next">getNatMappingInfo_next(previous_request, previous_response)</a></code></p> 94<p class="firstline">Retrieves the next page of results.</p> 95<p class="toc_element"> 96 <code><a href="#getRouterStatus">getRouterStatus(project, region, router)</a></code></p> 97<p class="firstline">Retrieves runtime information of the specified router.</p> 98<p class="toc_element"> 99 <code><a href="#insert">insert(project, region, body, requestId=None)</a></code></p> 100<p class="firstline">Creates a Router resource in the specified project and region using the data included in the request.</p> 101<p class="toc_element"> 102 <code><a href="#list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p> 103<p class="firstline">Retrieves a list of Router resources available to the specified project.</p> 104<p class="toc_element"> 105 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 106<p class="firstline">Retrieves the next page of results.</p> 107<p class="toc_element"> 108 <code><a href="#patch">patch(project, region, router, body, requestId=None)</a></code></p> 109<p class="firstline">Patches 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.</p> 110<p class="toc_element"> 111 <code><a href="#preview">preview(project, region, router, body)</a></code></p> 112<p class="firstline">Preview fields auto-generated during router create and update operations. Calling this method does NOT create or update the router.</p> 113<p class="toc_element"> 114 <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body)</a></code></p> 115<p class="firstline">Returns permissions that a caller has on the specified resource.</p> 116<p class="toc_element"> 117 <code><a href="#update">update(project, region, router, body, requestId=None)</a></code></p> 118<p class="firstline">Updates the specified Router resource with the data included in the request.</p> 119<h3>Method Details</h3> 120<div class="method"> 121 <code class="details" id="aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code> 122 <pre>Retrieves an aggregated list of routers. 123 124Args: 125 project: string, Project ID for this request. (required) 126 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 127 128You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. 129 130Currently, only sorting by name or creationTimestamp desc is supported. 131 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) 132 pageToken: string, Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. 133 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. 134 135For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. 136 137You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. 138 139To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). 140 141Returns: 142 An object of the form: 143 144 { # Contains a list of routers. 145 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 146 "kind": "compute#routerAggregatedList", # Type of resource. 147 "items": { # A list of Router resources. 148 "a_key": { # Name of the scope containing this set of routers. 149 "routers": [ # A list of routers contained in this scope. 150 { # Represents a Cloud Router resource. 151 # 152 # For more information about Cloud Router, read the the Cloud Router overview. 153 "kind": "compute#router", # [Output Only] Type of resource. Always compute#router for routers. 154 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 155 "nats": [ # A list of NAT services created in this router. 156 { # Represents a Nat resource. It enables the VMs within the specified subnetworks to access Internet without external IP addresses. It specifies a list of subnetworks (and the ranges within) that want to use NAT. Customers can also provide the external IPs that would be used for NAT. GCP would auto-allocate ephemeral IPs if no external IPs are provided. 157 "drainNatIps": [ # A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only. 158 "A String", 159 ], 160 "udpIdleTimeoutSec": 42, # Timeout (in seconds) for UDP connections. Defaults to 30s if not set. 161 "natIps": [ # A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project. 162 "A String", 163 ], 164 "name": "A String", # Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035. 165 "tcpTransitoryIdleTimeoutSec": 42, # Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set. 166 "subnetworks": [ # A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above. 167 { # Defines the IP ranges that want to use NAT for a subnetwork. 168 "sourceIpRangesToNat": [ # Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] 169 "A String", 170 ], 171 "name": "A String", # URL for the subnetwork resource that will use NAT. 172 "secondaryIpRangeNames": [ # A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat. 173 "A String", 174 ], 175 }, 176 ], 177 "tcpEstablishedIdleTimeoutSec": 42, # Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set. 178 "natIpAllocateOption": "A String", # Specify the NatIpAllocateOption, which can take one of the following values: 179 # - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. 180 # - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. 181 "sourceSubnetworkIpRangesToNat": "A String", # Specify the Nat option, which can take one of the following values: 182 # - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. 183 # - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. 184 # - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. 185 "icmpIdleTimeoutSec": 42, # Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. 186 "logConfig": { # Configuration of logging on a NAT. # Configure logging on this NAT. 187 "filter": "A String", # Specifies the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. 188 "enable": True or False, # Indicates whether or not to export logs. This is false by default. 189 }, 190 "minPortsPerVm": 42, # Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the value of this field is 50, at least 64 ports are allocated to a VM. 191 }, 192 ], 193 "interfaces": [ # Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both. 194 { 195 "linkedInterconnectAttachment": "A String", # URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be either be a VPN tunnel or an Interconnect attachment. 196 "linkedVpnTunnel": "A String", # URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be either a VPN tunnel or an Interconnect attachment. 197 "ipRange": "A String", # IP address and range of the interface. The IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface. 198 "name": "A String", # Name of this interface entry. The name must be 1-63 characters long and comply with RFC1035. 199 "managementType": "A String", # [Output Only] The resource that configures and manages this interface. 200 # - MANAGED_BY_USER is the default value and can be managed directly by users. 201 # - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted. 202 }, 203 ], 204 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 205 "bgp": { # BGP information specific to this router. 206 "asn": 42, # Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. 207 "advertisedIpRanges": [ # User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. 208 { # Description-tagged IP ranges for the router to advertise. 209 "range": "A String", # The IP range to advertise. The value must be a CIDR-formatted string. 210 "description": "A String", # User-specified description for the IP range. 211 }, 212 ], 213 "keepaliveInterval": 42, # The interval in seconds between BGP keepalive messages that are sent to the peer. Hold time is three times the interval at which keepalive messages are sent, and the hold time is the maximum number of seconds allowed to elapse between successive keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local hold time value or the peer?s hold time value as the hold time for the BGP connection between the two peers. If set, this value must be between 1 and 120. The default is 20. 214 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 215 "A String", 216 ], 217 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. 218 }, 219 "network": "A String", # URI of the network to which this router belongs. 220 "bgpPeers": [ # BGP 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. 221 { 222 "enable": "A String", # The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing information. The default is TRUE. 223 "peerAsn": 42, # Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value. 224 "interfaceName": "A String", # Name of the interface the BGP peer is associated with. 225 "name": "A String", # Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. 226 "bfd": { # BFD configuration for the BGP peering. 227 "sessionInitializationMode": "A String", # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE. 228 "minTransmitInterval": 42, # The minimum interval, in milliseconds, between BFD packets transmitted to the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the corresponding receive interval of the other router. If BFD echo mode is enabled on this router and the peer router, this value is used to negotiate the interval between BFD echo packets transmitted by this router. Otherwise, it will be used to determine the interval between BFD control packets. If set, this value must be between 100 and 30000. The default is 300. 229 "packetMode": "A String", # The BFD packet mode for this BGP peer. If set to CONTROL_AND_ECHO, BFD echo mode is enabled for this BGP peer. In this mode, if the peer router also has BFD echo mode enabled, BFD echo packets will be sent to the other router. If the peer router does not have BFD echo mode enabled, only control packets will be sent. If set to CONTROL_ONLY, BFD echo mode is disabled for this BGP peer. If this router and the peer router have a multihop connection, this should be set to CONTROL_ONLY as BFD echo mode is only supported on singlehop connections. The default is CONTROL_AND_ECHO. 230 "mode": "A String", # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE. 231 "minReceiveInterval": 42, # The minimum interval, in milliseconds, between BFD packets received from the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the transmit interval of the other router. If BFD echo mode is enabled on this router and the peer router, this value is used to negotiate the interval between BFD echo packets transmitted by the peer router. Otherwise, it will be used to determine the interval between BFD control packets. If set, this value must be between 100 and 30000. The default is 300. 232 "multiplier": 42, # The number of consecutive BFD packets that must be missed before BFD declares that a peer is unavailable. If set, the value must be a value between 2 and 16. The default is 3. 233 "slowTimerInterval": 42, # The minimum interval, in milliseconds, between BFD control packets transmitted to and received from the peer router when BFD echo mode is enabled on both routers. The actual transmit and receive intervals are negotiated between the two routers and are equal to the greater of this value and the corresponding interval on the other router. If set, this value must be between 1000 and 30000. The default is 5000. 234 }, 235 "peerIpAddress": "A String", # IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported. 236 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: 237 # - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. 238 # - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. 239 # - ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router's VPC network. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These groups are advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 240 "A String", 241 ], 242 "managementType": "A String", # [Output Only] The resource that configures and manages this BGP peer. 243 # - MANAGED_BY_USER is the default value and can be managed by you or other users 244 # - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted. 245 "advertisedIpRanges": [ # User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. 246 { # Description-tagged IP ranges for the router to advertise. 247 "range": "A String", # The IP range to advertise. The value must be a CIDR-formatted string. 248 "description": "A String", # User-specified description for the IP range. 249 }, 250 ], 251 "advertisedRoutePriority": 42, # The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win. 252 "ipAddress": "A String", # IP address of the interface inside Google Cloud Platform. Only IPv4 is supported. 253 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 254 }, 255 ], 256 "region": "A String", # [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. 257 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 258 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 259 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 260 "name": "A String", # Name 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. 261 }, 262 ], 263 "warning": { # Informational warning which replaces the list of routers when the list is empty. 264 "message": "A String", # [Output Only] A human-readable description of the warning code. 265 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 266 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 267 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 268 { 269 "value": "A String", # [Output Only] A warning data value corresponding to the key. 270 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 271 }, 272 ], 273 }, 274 }, 275 }, 276 "warning": { # [Output Only] Informational warning message. 277 "message": "A String", # [Output Only] A human-readable description of the warning code. 278 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 279 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 280 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 281 { 282 "value": "A String", # [Output Only] A warning data value corresponding to the key. 283 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 284 }, 285 ], 286 }, 287 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 288 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 289 }</pre> 290</div> 291 292<div class="method"> 293 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code> 294 <pre>Retrieves the next page of results. 295 296Args: 297 previous_request: The request for the previous page. (required) 298 previous_response: The response from the request for the previous page. (required) 299 300Returns: 301 A request object that you can call 'execute()' on to request the next 302 page. Returns None if there are no more items in the collection. 303 </pre> 304</div> 305 306<div class="method"> 307 <code class="details" id="delete">delete(project, region, router, requestId=None)</code> 308 <pre>Deletes the specified Router resource. 309 310Args: 311 project: string, Project ID for this request. (required) 312 region: string, Name of the region for this request. (required) 313 router: string, Name of the Router resource to delete. (required) 314 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 315 316For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. 317 318The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 319 320Returns: 321 An object of the form: 322 323 { # Represents an Operation resource. 324 # 325 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 326 # 327 # Operations can be global, regional or zonal. 328 # - For global operations, use the globalOperations resource. 329 # - For regional operations, use the regionOperations resource. 330 # - For zonal operations, use the zonalOperations resource. 331 # 332 # For more information, read Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) 333 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 334 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 335 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 336 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 337 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 338 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 339 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 340 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 341 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 342 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 343 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 344 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 345 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 346 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 347 { 348 "message": "A String", # [Output Only] A human-readable description of the warning code. 349 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 350 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 351 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 352 { 353 "value": "A String", # [Output Only] A warning data value corresponding to the key. 354 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 355 }, 356 ], 357 }, 358 ], 359 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 360 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 361 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 362 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 363 "name": "A String", # [Output Only] Name of the resource. 364 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 365 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 366 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 367 { 368 "message": "A String", # [Output Only] An optional, human-readable error message. 369 "code": "A String", # [Output Only] The error type identifier for this error. 370 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 371 }, 372 ], 373 }, 374 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 375 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 376 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 377 }</pre> 378</div> 379 380<div class="method"> 381 <code class="details" id="get">get(project, region, router)</code> 382 <pre>Returns the specified Router resource. Gets a list of available routers by making a list() request. 383 384Args: 385 project: string, Project ID for this request. (required) 386 region: string, Name of the region for this request. (required) 387 router: string, Name of the Router resource to return. (required) 388 389Returns: 390 An object of the form: 391 392 { # Represents a Cloud Router resource. 393 # 394 # For more information about Cloud Router, read the the Cloud Router overview. 395 "kind": "compute#router", # [Output Only] Type of resource. Always compute#router for routers. 396 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 397 "nats": [ # A list of NAT services created in this router. 398 { # Represents a Nat resource. It enables the VMs within the specified subnetworks to access Internet without external IP addresses. It specifies a list of subnetworks (and the ranges within) that want to use NAT. Customers can also provide the external IPs that would be used for NAT. GCP would auto-allocate ephemeral IPs if no external IPs are provided. 399 "drainNatIps": [ # A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only. 400 "A String", 401 ], 402 "udpIdleTimeoutSec": 42, # Timeout (in seconds) for UDP connections. Defaults to 30s if not set. 403 "natIps": [ # A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project. 404 "A String", 405 ], 406 "name": "A String", # Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035. 407 "tcpTransitoryIdleTimeoutSec": 42, # Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set. 408 "subnetworks": [ # A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above. 409 { # Defines the IP ranges that want to use NAT for a subnetwork. 410 "sourceIpRangesToNat": [ # Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] 411 "A String", 412 ], 413 "name": "A String", # URL for the subnetwork resource that will use NAT. 414 "secondaryIpRangeNames": [ # A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat. 415 "A String", 416 ], 417 }, 418 ], 419 "tcpEstablishedIdleTimeoutSec": 42, # Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set. 420 "natIpAllocateOption": "A String", # Specify the NatIpAllocateOption, which can take one of the following values: 421 # - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. 422 # - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. 423 "sourceSubnetworkIpRangesToNat": "A String", # Specify the Nat option, which can take one of the following values: 424 # - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. 425 # - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. 426 # - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. 427 "icmpIdleTimeoutSec": 42, # Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. 428 "logConfig": { # Configuration of logging on a NAT. # Configure logging on this NAT. 429 "filter": "A String", # Specifies the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. 430 "enable": True or False, # Indicates whether or not to export logs. This is false by default. 431 }, 432 "minPortsPerVm": 42, # Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the value of this field is 50, at least 64 ports are allocated to a VM. 433 }, 434 ], 435 "interfaces": [ # Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both. 436 { 437 "linkedInterconnectAttachment": "A String", # URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be either be a VPN tunnel or an Interconnect attachment. 438 "linkedVpnTunnel": "A String", # URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be either a VPN tunnel or an Interconnect attachment. 439 "ipRange": "A String", # IP address and range of the interface. The IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface. 440 "name": "A String", # Name of this interface entry. The name must be 1-63 characters long and comply with RFC1035. 441 "managementType": "A String", # [Output Only] The resource that configures and manages this interface. 442 # - MANAGED_BY_USER is the default value and can be managed directly by users. 443 # - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted. 444 }, 445 ], 446 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 447 "bgp": { # BGP information specific to this router. 448 "asn": 42, # Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. 449 "advertisedIpRanges": [ # User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. 450 { # Description-tagged IP ranges for the router to advertise. 451 "range": "A String", # The IP range to advertise. The value must be a CIDR-formatted string. 452 "description": "A String", # User-specified description for the IP range. 453 }, 454 ], 455 "keepaliveInterval": 42, # The interval in seconds between BGP keepalive messages that are sent to the peer. Hold time is three times the interval at which keepalive messages are sent, and the hold time is the maximum number of seconds allowed to elapse between successive keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local hold time value or the peer?s hold time value as the hold time for the BGP connection between the two peers. If set, this value must be between 1 and 120. The default is 20. 456 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 457 "A String", 458 ], 459 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. 460 }, 461 "network": "A String", # URI of the network to which this router belongs. 462 "bgpPeers": [ # BGP 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. 463 { 464 "enable": "A String", # The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing information. The default is TRUE. 465 "peerAsn": 42, # Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value. 466 "interfaceName": "A String", # Name of the interface the BGP peer is associated with. 467 "name": "A String", # Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. 468 "bfd": { # BFD configuration for the BGP peering. 469 "sessionInitializationMode": "A String", # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE. 470 "minTransmitInterval": 42, # The minimum interval, in milliseconds, between BFD packets transmitted to the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the corresponding receive interval of the other router. If BFD echo mode is enabled on this router and the peer router, this value is used to negotiate the interval between BFD echo packets transmitted by this router. Otherwise, it will be used to determine the interval between BFD control packets. If set, this value must be between 100 and 30000. The default is 300. 471 "packetMode": "A String", # The BFD packet mode for this BGP peer. If set to CONTROL_AND_ECHO, BFD echo mode is enabled for this BGP peer. In this mode, if the peer router also has BFD echo mode enabled, BFD echo packets will be sent to the other router. If the peer router does not have BFD echo mode enabled, only control packets will be sent. If set to CONTROL_ONLY, BFD echo mode is disabled for this BGP peer. If this router and the peer router have a multihop connection, this should be set to CONTROL_ONLY as BFD echo mode is only supported on singlehop connections. The default is CONTROL_AND_ECHO. 472 "mode": "A String", # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE. 473 "minReceiveInterval": 42, # The minimum interval, in milliseconds, between BFD packets received from the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the transmit interval of the other router. If BFD echo mode is enabled on this router and the peer router, this value is used to negotiate the interval between BFD echo packets transmitted by the peer router. Otherwise, it will be used to determine the interval between BFD control packets. If set, this value must be between 100 and 30000. The default is 300. 474 "multiplier": 42, # The number of consecutive BFD packets that must be missed before BFD declares that a peer is unavailable. If set, the value must be a value between 2 and 16. The default is 3. 475 "slowTimerInterval": 42, # The minimum interval, in milliseconds, between BFD control packets transmitted to and received from the peer router when BFD echo mode is enabled on both routers. The actual transmit and receive intervals are negotiated between the two routers and are equal to the greater of this value and the corresponding interval on the other router. If set, this value must be between 1000 and 30000. The default is 5000. 476 }, 477 "peerIpAddress": "A String", # IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported. 478 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: 479 # - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. 480 # - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. 481 # - ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router's VPC network. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These groups are advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 482 "A String", 483 ], 484 "managementType": "A String", # [Output Only] The resource that configures and manages this BGP peer. 485 # - MANAGED_BY_USER is the default value and can be managed by you or other users 486 # - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted. 487 "advertisedIpRanges": [ # User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. 488 { # Description-tagged IP ranges for the router to advertise. 489 "range": "A String", # The IP range to advertise. The value must be a CIDR-formatted string. 490 "description": "A String", # User-specified description for the IP range. 491 }, 492 ], 493 "advertisedRoutePriority": 42, # The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win. 494 "ipAddress": "A String", # IP address of the interface inside Google Cloud Platform. Only IPv4 is supported. 495 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 496 }, 497 ], 498 "region": "A String", # [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. 499 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 500 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 501 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 502 "name": "A String", # Name 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. 503 }</pre> 504</div> 505 506<div class="method"> 507 <code class="details" id="getNatMappingInfo">getNatMappingInfo(project, region, router, orderBy=None, maxResults=None, pageToken=None, natName=None, filter=None)</code> 508 <pre>Retrieves runtime Nat mapping information of VM endpoints. 509 510Args: 511 project: string, Project ID for this request. (required) 512 region: string, Name of the region for this request. (required) 513 router: string, Name of the Router resource to query for Nat Mapping information of VM endpoints. (required) 514 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 515 516You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. 517 518Currently, only sorting by name or creationTimestamp desc is supported. 519 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) 520 pageToken: string, Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. 521 natName: string, Name of the nat service to filter the Nat Mapping information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035. 522 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. 523 524For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. 525 526You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. 527 528To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). 529 530Returns: 531 An object of the form: 532 533 { # Contains a list of VmEndpointNatMappings. 534 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 535 "kind": "compute#vmEndpointNatMappingsList", # [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints. 536 "warning": { # [Output Only] Informational warning message. 537 "message": "A String", # [Output Only] A human-readable description of the warning code. 538 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 539 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 540 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 541 { 542 "value": "A String", # [Output Only] A warning data value corresponding to the key. 543 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 544 }, 545 ], 546 }, 547 "result": [ # [Output Only] A list of Nat mapping information of VM endpoints. 548 { # Contain information of Nat mapping for a VM endpoint (i.e., NIC). 549 "interfaceNatMappings": [ 550 { # Contain information of Nat mapping for an interface of this endpoint. 551 "sourceVirtualIp": "A String", # Primary IP of the VM for this NIC. 552 "natIpPortRanges": [ # A list of all IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. 553 "A String", 554 ], 555 "drainNatIpPortRanges": [ # List of all drain IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. 556 "A String", 557 ], 558 "numTotalDrainNatPorts": 42, # Total number of drain ports across all NAT IPs allocated to this interface. It equals to the aggregated port number in the field drain_nat_ip_port_ranges. 559 "numTotalNatPorts": 42, # Total number of ports across all NAT IPs allocated to this interface. It equals to the aggregated port number in the field nat_ip_port_ranges. 560 "sourceAliasIpRange": "A String", # Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP range. Examples: "10.33.4.55/32", or "192.168.5.0/24". 561 }, 562 ], 563 "instanceName": "A String", # Name of the VM instance which the endpoint belongs to 564 }, 565 ], 566 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 567 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 568 }</pre> 569</div> 570 571<div class="method"> 572 <code class="details" id="getNatMappingInfo_next">getNatMappingInfo_next(previous_request, previous_response)</code> 573 <pre>Retrieves the next page of results. 574 575Args: 576 previous_request: The request for the previous page. (required) 577 previous_response: The response from the request for the previous page. (required) 578 579Returns: 580 A request object that you can call 'execute()' on to request the next 581 page. Returns None if there are no more items in the collection. 582 </pre> 583</div> 584 585<div class="method"> 586 <code class="details" id="getRouterStatus">getRouterStatus(project, region, router)</code> 587 <pre>Retrieves runtime information of the specified router. 588 589Args: 590 project: string, Project ID for this request. (required) 591 region: string, Name of the region for this request. (required) 592 router: string, Name of the Router resource to query. (required) 593 594Returns: 595 An object of the form: 596 597 { 598 "kind": "compute#routerStatusResponse", # Type of resource. 599 "result": { 600 "bgpPeerStatus": [ 601 { 602 "status": "A String", # Status of the BGP peer: {UP, DOWN} 603 "uptime": "A String", # Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds 604 "name": "A String", # Name of this BGP peer. Unique within the Routers resource. 605 "uptimeSeconds": "A String", # Time this session has been up, in seconds. Format: 145 606 "linkedVpnTunnel": "A String", # URL of the VPN tunnel that this BGP peer controls. 607 "bfdStatus": { # Next free: 15 608 "negotiatedLocalControlTxIntervalMs": 42, # Negotiated transmit interval for control packets. When echo mode is enabled this will reflect the negotiated slow timer interval. 609 "controlPacketCounts": { # Control packet counts for the current BFD session. 610 "numTx": 42, # Number of packets transmitted since the beginning of the current BFD session. 611 "numRx": 42, # Number of packets received since the beginning of the current BFD session. 612 "numRxRejected": 42, # Number of packets received that were rejected because of errors since the beginning of the current BFD session. 613 "numRxSuccessful": 42, # Number of packets received that were successfully processed since the beginning of the current BFD session. 614 }, 615 "localState": "A String", # The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 616 "echoPacketCounts": { # Echo packet counts for the current BFD session. 617 "numTx": 42, # Number of packets transmitted since the beginning of the current BFD session. 618 "numRx": 42, # Number of packets received since the beginning of the current BFD session. 619 "numRxRejected": 42, # Number of packets received that were rejected because of errors since the beginning of the current BFD session. 620 "numRxSuccessful": 42, # Number of packets received that were successfully processed since the beginning of the current BFD session. 621 }, 622 "echoPacketIntervals": [ # Inter-packet time interval statistics for echo packets. 623 { # Next free: 7 624 "numIntervals": "A String", # Number of inter-packet intervals from which these statistics were derived. 625 "maxMs": "A String", # Maximum observed inter-packet interval in milliseconds. 626 "minMs": "A String", # Minimum observed inter-packet interval in milliseconds. 627 "duration": "A String", # From how long ago in the past these intervals were observed. 628 "avgMs": "A String", # Average observed inter-packet interval in milliseconds. 629 "type": "A String", # The type of packets for which inter-packet intervals were computed. 630 }, 631 ], 632 "bfdSessionInitializationMode": "A String", # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. 633 "configUpdateTimestampMicros": "A String", # Unix timestamp of the most recent config update. 634 "txPacket": { # The most recent Tx control packet for this BFD session. 635 "minTxIntervalMs": 42, # The Desired Min TX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880 636 "multipoint": True or False, # The multipoint bit of the BFD packet. This is specified in section 4.1 of RFC5880 637 "yourDiscriminator": 42, # The Your Discriminator value in the BFD packet. This is specified in section 4.1 of RFC5880 638 "authenticationPresent": True or False, # The Authentication Present bit of the BFD packet. This is specified in section 4.1 of RFC5880 639 "myDiscriminator": 42, # The My Discriminator value in the BFD packet. This is specified in section 4.1 of RFC5880 640 "multiplier": 42, # The detection time multiplier of the BFD packet. This is specified in section 4.1 of RFC5880 641 "state": "A String", # The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 642 "diagnostic": "A String", # The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 643 "controlPlaneIndependent": True or False, # The Control Plane Independent bit of the BFD packet. This is specified in section 4.1 of RFC5880 644 "length": 42, # The length of the BFD Control packet in bytes. This is specified in section 4.1 of RFC5880 645 "version": 42, # The version number of the BFD protocol, as specified in section 4.1 of RFC5880. 646 "minRxIntervalMs": 42, # The Required Min RX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880 647 "demand": True or False, # The demand bit of the BFD packet. This is specified in section 4.1 of RFC5880 648 "minEchoRxIntervalMs": 42, # The Required Min Echo RX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880 649 "poll": True or False, # The Poll bit of the BFD packet. This is specified in section 4.1 of RFC5880 650 "final": True or False, # The Final bit of the BFD packet. This is specified in section 4.1 of RFC5880 651 }, 652 "rxPacket": { # The most recent Rx control packet for this BFD session. 653 "minTxIntervalMs": 42, # The Desired Min TX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880 654 "multipoint": True or False, # The multipoint bit of the BFD packet. This is specified in section 4.1 of RFC5880 655 "yourDiscriminator": 42, # The Your Discriminator value in the BFD packet. This is specified in section 4.1 of RFC5880 656 "authenticationPresent": True or False, # The Authentication Present bit of the BFD packet. This is specified in section 4.1 of RFC5880 657 "myDiscriminator": 42, # The My Discriminator value in the BFD packet. This is specified in section 4.1 of RFC5880 658 "multiplier": 42, # The detection time multiplier of the BFD packet. This is specified in section 4.1 of RFC5880 659 "state": "A String", # The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 660 "diagnostic": "A String", # The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 661 "controlPlaneIndependent": True or False, # The Control Plane Independent bit of the BFD packet. This is specified in section 4.1 of RFC5880 662 "length": 42, # The length of the BFD Control packet in bytes. This is specified in section 4.1 of RFC5880 663 "version": 42, # The version number of the BFD protocol, as specified in section 4.1 of RFC5880. 664 "minRxIntervalMs": 42, # The Required Min RX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880 665 "demand": True or False, # The demand bit of the BFD packet. This is specified in section 4.1 of RFC5880 666 "minEchoRxIntervalMs": 42, # The Required Min Echo RX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880 667 "poll": True or False, # The Poll bit of the BFD packet. This is specified in section 4.1 of RFC5880 668 "final": True or False, # The Final bit of the BFD packet. This is specified in section 4.1 of RFC5880 669 }, 670 "negotiatedLocalEchoTxIntervalMs": 42, # Negotiated transmit interval for echo packets. 671 "localDiagnostic": "A String", # The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 672 "uptimeMs": "A String", # Session uptime in milliseconds. Value will be 0 if session is not up. 673 "controlPacketIntervals": [ # Inter-packet time interval statistics for control packets. 674 { # Next free: 7 675 "numIntervals": "A String", # Number of inter-packet intervals from which these statistics were derived. 676 "maxMs": "A String", # Maximum observed inter-packet interval in milliseconds. 677 "minMs": "A String", # Minimum observed inter-packet interval in milliseconds. 678 "duration": "A String", # From how long ago in the past these intervals were observed. 679 "avgMs": "A String", # Average observed inter-packet interval in milliseconds. 680 "type": "A String", # The type of packets for which inter-packet intervals were computed. 681 }, 682 ], 683 "usingEchoMode": True or False, # Indicates if echo mode is currently being used. 684 }, 685 "peerIpAddress": "A String", # IP address of the remote BGP interface. 686 "advertisedRoutes": [ # Routes that were advertised to the remote BGP peer 687 { # Represents a Route resource. 688 # 689 # A route defines a path from VM instances in the VPC network to a specific destination. This destination can be inside or outside the VPC network. For more information, read the Routes overview. (== resource_for beta.routes ==) (== resource_for v1.routes ==) 690 "nextHopGateway": "A String", # The URL to a gateway that should handle matching packets. You can only specify the internet gateway using a full or partial valid URL: projects/project/global/gateways/default-internet-gateway 691 "nextHopVpnTunnel": "A String", # The URL to a VpnTunnel that should handle matching packets. 692 "kind": "compute#route", # [Output Only] Type of this resource. Always compute#routes for Route resources. 693 "name": "A String", # Name 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])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. 694 "tags": [ # A list of instance tags to which this route applies. 695 "A String", 696 ], 697 "nextHopIlb": "A String", # The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets. You can only specify the forwarding rule as a partial or full URL. For example, the following are all valid URLs: 698 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule 699 # - regions/region/forwardingRules/forwardingRule Note that this can only be used when the destination_range is a public (non-RFC 1918) IP CIDR range. 700 "nextHopInstance": "A String", # The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: 701 # https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ 702 "priority": 42, # The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length. In cases where multiple routes have equal prefix length, the one with the lowest-numbered priority value wins. The default value is `1000`. The priority value must be from `0` to `65535`, inclusive. 703 "nextHopPeering": "A String", # [Output Only] The network peering name that should handle matching packets, which should conform to RFC1035. 704 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 705 "nextHopNetwork": "A String", # The URL of the local network if it should handle matching packets. 706 "network": "A String", # Fully-qualified URL of the network that this route applies to. 707 "nextHopIp": "A String", # The network IP address of an instance that should handle matching packets. Only IPv4 is supported. 708 "warnings": [ # [Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages. 709 { 710 "message": "A String", # [Output Only] A human-readable description of the warning code. 711 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 712 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 713 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 714 { 715 "value": "A String", # [Output Only] A warning data value corresponding to the key. 716 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 717 }, 718 ], 719 }, 720 ], 721 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 722 "destRange": "A String", # The destination range of outgoing packets that this route applies to. Only IPv4 is supported. 723 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 724 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 725 "nextHopInterconnectAttachment": "A String", # [Output Only] The URL to an InterconnectAttachment which is the next hop for the route. This field will only be populated for the dynamic routes generated by Cloud Router with a linked interconnectAttachment. 726 "description": "A String", # An optional description of this resource. Provide this field when you create the resource. 727 }, 728 ], 729 "state": "A String", # BGP state as specified in RFC1771. 730 "ipAddress": "A String", # IP address of the local BGP interface. 731 "numLearnedRoutes": 42, # Number of routes learned from the remote BGP Peer. 732 }, 733 ], 734 "bestRoutesForRouter": [ # Best routes learned by this router. 735 { # Represents a Route resource. 736 # 737 # A route defines a path from VM instances in the VPC network to a specific destination. This destination can be inside or outside the VPC network. For more information, read the Routes overview. (== resource_for beta.routes ==) (== resource_for v1.routes ==) 738 "nextHopGateway": "A String", # The URL to a gateway that should handle matching packets. You can only specify the internet gateway using a full or partial valid URL: projects/project/global/gateways/default-internet-gateway 739 "nextHopVpnTunnel": "A String", # The URL to a VpnTunnel that should handle matching packets. 740 "kind": "compute#route", # [Output Only] Type of this resource. Always compute#routes for Route resources. 741 "name": "A String", # Name 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])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. 742 "tags": [ # A list of instance tags to which this route applies. 743 "A String", 744 ], 745 "nextHopIlb": "A String", # The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets. You can only specify the forwarding rule as a partial or full URL. For example, the following are all valid URLs: 746 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule 747 # - regions/region/forwardingRules/forwardingRule Note that this can only be used when the destination_range is a public (non-RFC 1918) IP CIDR range. 748 "nextHopInstance": "A String", # The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: 749 # https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ 750 "priority": 42, # The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length. In cases where multiple routes have equal prefix length, the one with the lowest-numbered priority value wins. The default value is `1000`. The priority value must be from `0` to `65535`, inclusive. 751 "nextHopPeering": "A String", # [Output Only] The network peering name that should handle matching packets, which should conform to RFC1035. 752 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 753 "nextHopNetwork": "A String", # The URL of the local network if it should handle matching packets. 754 "network": "A String", # Fully-qualified URL of the network that this route applies to. 755 "nextHopIp": "A String", # The network IP address of an instance that should handle matching packets. Only IPv4 is supported. 756 "warnings": [ # [Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages. 757 { 758 "message": "A String", # [Output Only] A human-readable description of the warning code. 759 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 760 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 761 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 762 { 763 "value": "A String", # [Output Only] A warning data value corresponding to the key. 764 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 765 }, 766 ], 767 }, 768 ], 769 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 770 "destRange": "A String", # The destination range of outgoing packets that this route applies to. Only IPv4 is supported. 771 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 772 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 773 "nextHopInterconnectAttachment": "A String", # [Output Only] The URL to an InterconnectAttachment which is the next hop for the route. This field will only be populated for the dynamic routes generated by Cloud Router with a linked interconnectAttachment. 774 "description": "A String", # An optional description of this resource. Provide this field when you create the resource. 775 }, 776 ], 777 "natStatus": [ 778 { # Status of a NAT contained in this router. Next tag: 9 779 "userAllocatedNatIps": [ # A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133". 780 "A String", 781 ], 782 "drainUserAllocatedNatIps": [ # A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", ?179.12.26.133?]. 783 "A String", 784 ], 785 "name": "A String", # Unique name of this NAT. 786 "autoAllocatedNatIps": [ # A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] 787 "A String", 788 ], 789 "numVmEndpointsWithNatMappings": 42, # Number of VM endpoints (i.e., Nics) that can use NAT. 790 "userAllocatedNatIpResources": [ # A list of fully qualified URLs of reserved IP address resources. 791 "A String", 792 ], 793 "drainAutoAllocatedNatIps": [ # A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", ?179.12.26.133?]. 794 "A String", 795 ], 796 "minExtraNatIpsNeeded": 42, # The number of extra IPs to allocate. This will be greater than 0 only if user-specified IPs are NOT enough to allow all configured VMs to use NAT. This value is meaningful only when auto-allocation of NAT IPs is *not* used. 797 }, 798 ], 799 "network": "A String", # URI of the network to which this router belongs. 800 "bestRoutes": [ # Best routes for this router's network. 801 { # Represents a Route resource. 802 # 803 # A route defines a path from VM instances in the VPC network to a specific destination. This destination can be inside or outside the VPC network. For more information, read the Routes overview. (== resource_for beta.routes ==) (== resource_for v1.routes ==) 804 "nextHopGateway": "A String", # The URL to a gateway that should handle matching packets. You can only specify the internet gateway using a full or partial valid URL: projects/project/global/gateways/default-internet-gateway 805 "nextHopVpnTunnel": "A String", # The URL to a VpnTunnel that should handle matching packets. 806 "kind": "compute#route", # [Output Only] Type of this resource. Always compute#routes for Route resources. 807 "name": "A String", # Name 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])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. 808 "tags": [ # A list of instance tags to which this route applies. 809 "A String", 810 ], 811 "nextHopIlb": "A String", # The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets. You can only specify the forwarding rule as a partial or full URL. For example, the following are all valid URLs: 812 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule 813 # - regions/region/forwardingRules/forwardingRule Note that this can only be used when the destination_range is a public (non-RFC 1918) IP CIDR range. 814 "nextHopInstance": "A String", # The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: 815 # https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ 816 "priority": 42, # The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length. In cases where multiple routes have equal prefix length, the one with the lowest-numbered priority value wins. The default value is `1000`. The priority value must be from `0` to `65535`, inclusive. 817 "nextHopPeering": "A String", # [Output Only] The network peering name that should handle matching packets, which should conform to RFC1035. 818 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 819 "nextHopNetwork": "A String", # The URL of the local network if it should handle matching packets. 820 "network": "A String", # Fully-qualified URL of the network that this route applies to. 821 "nextHopIp": "A String", # The network IP address of an instance that should handle matching packets. Only IPv4 is supported. 822 "warnings": [ # [Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages. 823 { 824 "message": "A String", # [Output Only] A human-readable description of the warning code. 825 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 826 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 827 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 828 { 829 "value": "A String", # [Output Only] A warning data value corresponding to the key. 830 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 831 }, 832 ], 833 }, 834 ], 835 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 836 "destRange": "A String", # The destination range of outgoing packets that this route applies to. Only IPv4 is supported. 837 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 838 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 839 "nextHopInterconnectAttachment": "A String", # [Output Only] The URL to an InterconnectAttachment which is the next hop for the route. This field will only be populated for the dynamic routes generated by Cloud Router with a linked interconnectAttachment. 840 "description": "A String", # An optional description of this resource. Provide this field when you create the resource. 841 }, 842 ], 843 }, 844 }</pre> 845</div> 846 847<div class="method"> 848 <code class="details" id="insert">insert(project, region, body, requestId=None)</code> 849 <pre>Creates a Router resource in the specified project and region using the data included in the request. 850 851Args: 852 project: string, Project ID for this request. (required) 853 region: string, Name of the region for this request. (required) 854 body: object, The request body. (required) 855 The object takes the form of: 856 857{ # Represents a Cloud Router resource. 858 # 859 # For more information about Cloud Router, read the the Cloud Router overview. 860 "kind": "compute#router", # [Output Only] Type of resource. Always compute#router for routers. 861 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 862 "nats": [ # A list of NAT services created in this router. 863 { # Represents a Nat resource. It enables the VMs within the specified subnetworks to access Internet without external IP addresses. It specifies a list of subnetworks (and the ranges within) that want to use NAT. Customers can also provide the external IPs that would be used for NAT. GCP would auto-allocate ephemeral IPs if no external IPs are provided. 864 "drainNatIps": [ # A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only. 865 "A String", 866 ], 867 "udpIdleTimeoutSec": 42, # Timeout (in seconds) for UDP connections. Defaults to 30s if not set. 868 "natIps": [ # A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project. 869 "A String", 870 ], 871 "name": "A String", # Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035. 872 "tcpTransitoryIdleTimeoutSec": 42, # Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set. 873 "subnetworks": [ # A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above. 874 { # Defines the IP ranges that want to use NAT for a subnetwork. 875 "sourceIpRangesToNat": [ # Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] 876 "A String", 877 ], 878 "name": "A String", # URL for the subnetwork resource that will use NAT. 879 "secondaryIpRangeNames": [ # A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat. 880 "A String", 881 ], 882 }, 883 ], 884 "tcpEstablishedIdleTimeoutSec": 42, # Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set. 885 "natIpAllocateOption": "A String", # Specify the NatIpAllocateOption, which can take one of the following values: 886 # - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. 887 # - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. 888 "sourceSubnetworkIpRangesToNat": "A String", # Specify the Nat option, which can take one of the following values: 889 # - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. 890 # - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. 891 # - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. 892 "icmpIdleTimeoutSec": 42, # Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. 893 "logConfig": { # Configuration of logging on a NAT. # Configure logging on this NAT. 894 "filter": "A String", # Specifies the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. 895 "enable": True or False, # Indicates whether or not to export logs. This is false by default. 896 }, 897 "minPortsPerVm": 42, # Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the value of this field is 50, at least 64 ports are allocated to a VM. 898 }, 899 ], 900 "interfaces": [ # Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both. 901 { 902 "linkedInterconnectAttachment": "A String", # URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be either be a VPN tunnel or an Interconnect attachment. 903 "linkedVpnTunnel": "A String", # URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be either a VPN tunnel or an Interconnect attachment. 904 "ipRange": "A String", # IP address and range of the interface. The IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface. 905 "name": "A String", # Name of this interface entry. The name must be 1-63 characters long and comply with RFC1035. 906 "managementType": "A String", # [Output Only] The resource that configures and manages this interface. 907 # - MANAGED_BY_USER is the default value and can be managed directly by users. 908 # - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted. 909 }, 910 ], 911 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 912 "bgp": { # BGP information specific to this router. 913 "asn": 42, # Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. 914 "advertisedIpRanges": [ # User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. 915 { # Description-tagged IP ranges for the router to advertise. 916 "range": "A String", # The IP range to advertise. The value must be a CIDR-formatted string. 917 "description": "A String", # User-specified description for the IP range. 918 }, 919 ], 920 "keepaliveInterval": 42, # The interval in seconds between BGP keepalive messages that are sent to the peer. Hold time is three times the interval at which keepalive messages are sent, and the hold time is the maximum number of seconds allowed to elapse between successive keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local hold time value or the peer?s hold time value as the hold time for the BGP connection between the two peers. If set, this value must be between 1 and 120. The default is 20. 921 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 922 "A String", 923 ], 924 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. 925 }, 926 "network": "A String", # URI of the network to which this router belongs. 927 "bgpPeers": [ # BGP 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. 928 { 929 "enable": "A String", # The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing information. The default is TRUE. 930 "peerAsn": 42, # Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value. 931 "interfaceName": "A String", # Name of the interface the BGP peer is associated with. 932 "name": "A String", # Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. 933 "bfd": { # BFD configuration for the BGP peering. 934 "sessionInitializationMode": "A String", # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE. 935 "minTransmitInterval": 42, # The minimum interval, in milliseconds, between BFD packets transmitted to the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the corresponding receive interval of the other router. If BFD echo mode is enabled on this router and the peer router, this value is used to negotiate the interval between BFD echo packets transmitted by this router. Otherwise, it will be used to determine the interval between BFD control packets. If set, this value must be between 100 and 30000. The default is 300. 936 "packetMode": "A String", # The BFD packet mode for this BGP peer. If set to CONTROL_AND_ECHO, BFD echo mode is enabled for this BGP peer. In this mode, if the peer router also has BFD echo mode enabled, BFD echo packets will be sent to the other router. If the peer router does not have BFD echo mode enabled, only control packets will be sent. If set to CONTROL_ONLY, BFD echo mode is disabled for this BGP peer. If this router and the peer router have a multihop connection, this should be set to CONTROL_ONLY as BFD echo mode is only supported on singlehop connections. The default is CONTROL_AND_ECHO. 937 "mode": "A String", # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE. 938 "minReceiveInterval": 42, # The minimum interval, in milliseconds, between BFD packets received from the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the transmit interval of the other router. If BFD echo mode is enabled on this router and the peer router, this value is used to negotiate the interval between BFD echo packets transmitted by the peer router. Otherwise, it will be used to determine the interval between BFD control packets. If set, this value must be between 100 and 30000. The default is 300. 939 "multiplier": 42, # The number of consecutive BFD packets that must be missed before BFD declares that a peer is unavailable. If set, the value must be a value between 2 and 16. The default is 3. 940 "slowTimerInterval": 42, # The minimum interval, in milliseconds, between BFD control packets transmitted to and received from the peer router when BFD echo mode is enabled on both routers. The actual transmit and receive intervals are negotiated between the two routers and are equal to the greater of this value and the corresponding interval on the other router. If set, this value must be between 1000 and 30000. The default is 5000. 941 }, 942 "peerIpAddress": "A String", # IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported. 943 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: 944 # - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. 945 # - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. 946 # - ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router's VPC network. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These groups are advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 947 "A String", 948 ], 949 "managementType": "A String", # [Output Only] The resource that configures and manages this BGP peer. 950 # - MANAGED_BY_USER is the default value and can be managed by you or other users 951 # - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted. 952 "advertisedIpRanges": [ # User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. 953 { # Description-tagged IP ranges for the router to advertise. 954 "range": "A String", # The IP range to advertise. The value must be a CIDR-formatted string. 955 "description": "A String", # User-specified description for the IP range. 956 }, 957 ], 958 "advertisedRoutePriority": 42, # The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win. 959 "ipAddress": "A String", # IP address of the interface inside Google Cloud Platform. Only IPv4 is supported. 960 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 961 }, 962 ], 963 "region": "A String", # [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. 964 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 965 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 966 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 967 "name": "A String", # Name 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. 968 } 969 970 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 971 972For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. 973 974The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 975 976Returns: 977 An object of the form: 978 979 { # Represents an Operation resource. 980 # 981 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 982 # 983 # Operations can be global, regional or zonal. 984 # - For global operations, use the globalOperations resource. 985 # - For regional operations, use the regionOperations resource. 986 # - For zonal operations, use the zonalOperations resource. 987 # 988 # For more information, read Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) 989 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 990 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 991 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 992 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 993 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 994 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 995 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 996 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 997 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 998 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 999 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 1000 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 1001 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 1002 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 1003 { 1004 "message": "A String", # [Output Only] A human-readable description of the warning code. 1005 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 1006 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 1007 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 1008 { 1009 "value": "A String", # [Output Only] A warning data value corresponding to the key. 1010 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 1011 }, 1012 ], 1013 }, 1014 ], 1015 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 1016 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 1017 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 1018 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 1019 "name": "A String", # [Output Only] Name of the resource. 1020 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 1021 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 1022 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 1023 { 1024 "message": "A String", # [Output Only] An optional, human-readable error message. 1025 "code": "A String", # [Output Only] The error type identifier for this error. 1026 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 1027 }, 1028 ], 1029 }, 1030 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 1031 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 1032 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 1033 }</pre> 1034</div> 1035 1036<div class="method"> 1037 <code class="details" id="list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</code> 1038 <pre>Retrieves a list of Router resources available to the specified project. 1039 1040Args: 1041 project: string, Project ID for this request. (required) 1042 region: string, Name of the region for this request. (required) 1043 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 1044 1045You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. 1046 1047Currently, only sorting by name or creationTimestamp desc is supported. 1048 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) 1049 pageToken: string, Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. 1050 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. 1051 1052For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. 1053 1054You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. 1055 1056To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). 1057 1058Returns: 1059 An object of the form: 1060 1061 { # Contains a list of Router resources. 1062 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 1063 "kind": "compute#routerList", # [Output Only] Type of resource. Always compute#router for routers. 1064 "items": [ # A list of Router resources. 1065 { # Represents a Cloud Router resource. 1066 # 1067 # For more information about Cloud Router, read the the Cloud Router overview. 1068 "kind": "compute#router", # [Output Only] Type of resource. Always compute#router for routers. 1069 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 1070 "nats": [ # A list of NAT services created in this router. 1071 { # Represents a Nat resource. It enables the VMs within the specified subnetworks to access Internet without external IP addresses. It specifies a list of subnetworks (and the ranges within) that want to use NAT. Customers can also provide the external IPs that would be used for NAT. GCP would auto-allocate ephemeral IPs if no external IPs are provided. 1072 "drainNatIps": [ # A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only. 1073 "A String", 1074 ], 1075 "udpIdleTimeoutSec": 42, # Timeout (in seconds) for UDP connections. Defaults to 30s if not set. 1076 "natIps": [ # A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project. 1077 "A String", 1078 ], 1079 "name": "A String", # Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035. 1080 "tcpTransitoryIdleTimeoutSec": 42, # Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set. 1081 "subnetworks": [ # A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above. 1082 { # Defines the IP ranges that want to use NAT for a subnetwork. 1083 "sourceIpRangesToNat": [ # Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] 1084 "A String", 1085 ], 1086 "name": "A String", # URL for the subnetwork resource that will use NAT. 1087 "secondaryIpRangeNames": [ # A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat. 1088 "A String", 1089 ], 1090 }, 1091 ], 1092 "tcpEstablishedIdleTimeoutSec": 42, # Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set. 1093 "natIpAllocateOption": "A String", # Specify the NatIpAllocateOption, which can take one of the following values: 1094 # - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. 1095 # - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. 1096 "sourceSubnetworkIpRangesToNat": "A String", # Specify the Nat option, which can take one of the following values: 1097 # - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. 1098 # - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. 1099 # - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. 1100 "icmpIdleTimeoutSec": 42, # Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. 1101 "logConfig": { # Configuration of logging on a NAT. # Configure logging on this NAT. 1102 "filter": "A String", # Specifies the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. 1103 "enable": True or False, # Indicates whether or not to export logs. This is false by default. 1104 }, 1105 "minPortsPerVm": 42, # Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the value of this field is 50, at least 64 ports are allocated to a VM. 1106 }, 1107 ], 1108 "interfaces": [ # Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both. 1109 { 1110 "linkedInterconnectAttachment": "A String", # URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be either be a VPN tunnel or an Interconnect attachment. 1111 "linkedVpnTunnel": "A String", # URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be either a VPN tunnel or an Interconnect attachment. 1112 "ipRange": "A String", # IP address and range of the interface. The IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface. 1113 "name": "A String", # Name of this interface entry. The name must be 1-63 characters long and comply with RFC1035. 1114 "managementType": "A String", # [Output Only] The resource that configures and manages this interface. 1115 # - MANAGED_BY_USER is the default value and can be managed directly by users. 1116 # - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted. 1117 }, 1118 ], 1119 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 1120 "bgp": { # BGP information specific to this router. 1121 "asn": 42, # Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. 1122 "advertisedIpRanges": [ # User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. 1123 { # Description-tagged IP ranges for the router to advertise. 1124 "range": "A String", # The IP range to advertise. The value must be a CIDR-formatted string. 1125 "description": "A String", # User-specified description for the IP range. 1126 }, 1127 ], 1128 "keepaliveInterval": 42, # The interval in seconds between BGP keepalive messages that are sent to the peer. Hold time is three times the interval at which keepalive messages are sent, and the hold time is the maximum number of seconds allowed to elapse between successive keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local hold time value or the peer?s hold time value as the hold time for the BGP connection between the two peers. If set, this value must be between 1 and 120. The default is 20. 1129 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 1130 "A String", 1131 ], 1132 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. 1133 }, 1134 "network": "A String", # URI of the network to which this router belongs. 1135 "bgpPeers": [ # BGP 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. 1136 { 1137 "enable": "A String", # The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing information. The default is TRUE. 1138 "peerAsn": 42, # Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value. 1139 "interfaceName": "A String", # Name of the interface the BGP peer is associated with. 1140 "name": "A String", # Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. 1141 "bfd": { # BFD configuration for the BGP peering. 1142 "sessionInitializationMode": "A String", # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE. 1143 "minTransmitInterval": 42, # The minimum interval, in milliseconds, between BFD packets transmitted to the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the corresponding receive interval of the other router. If BFD echo mode is enabled on this router and the peer router, this value is used to negotiate the interval between BFD echo packets transmitted by this router. Otherwise, it will be used to determine the interval between BFD control packets. If set, this value must be between 100 and 30000. The default is 300. 1144 "packetMode": "A String", # The BFD packet mode for this BGP peer. If set to CONTROL_AND_ECHO, BFD echo mode is enabled for this BGP peer. In this mode, if the peer router also has BFD echo mode enabled, BFD echo packets will be sent to the other router. If the peer router does not have BFD echo mode enabled, only control packets will be sent. If set to CONTROL_ONLY, BFD echo mode is disabled for this BGP peer. If this router and the peer router have a multihop connection, this should be set to CONTROL_ONLY as BFD echo mode is only supported on singlehop connections. The default is CONTROL_AND_ECHO. 1145 "mode": "A String", # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE. 1146 "minReceiveInterval": 42, # The minimum interval, in milliseconds, between BFD packets received from the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the transmit interval of the other router. If BFD echo mode is enabled on this router and the peer router, this value is used to negotiate the interval between BFD echo packets transmitted by the peer router. Otherwise, it will be used to determine the interval between BFD control packets. If set, this value must be between 100 and 30000. The default is 300. 1147 "multiplier": 42, # The number of consecutive BFD packets that must be missed before BFD declares that a peer is unavailable. If set, the value must be a value between 2 and 16. The default is 3. 1148 "slowTimerInterval": 42, # The minimum interval, in milliseconds, between BFD control packets transmitted to and received from the peer router when BFD echo mode is enabled on both routers. The actual transmit and receive intervals are negotiated between the two routers and are equal to the greater of this value and the corresponding interval on the other router. If set, this value must be between 1000 and 30000. The default is 5000. 1149 }, 1150 "peerIpAddress": "A String", # IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported. 1151 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: 1152 # - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. 1153 # - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. 1154 # - ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router's VPC network. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These groups are advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 1155 "A String", 1156 ], 1157 "managementType": "A String", # [Output Only] The resource that configures and manages this BGP peer. 1158 # - MANAGED_BY_USER is the default value and can be managed by you or other users 1159 # - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted. 1160 "advertisedIpRanges": [ # User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. 1161 { # Description-tagged IP ranges for the router to advertise. 1162 "range": "A String", # The IP range to advertise. The value must be a CIDR-formatted string. 1163 "description": "A String", # User-specified description for the IP range. 1164 }, 1165 ], 1166 "advertisedRoutePriority": 42, # The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win. 1167 "ipAddress": "A String", # IP address of the interface inside Google Cloud Platform. Only IPv4 is supported. 1168 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 1169 }, 1170 ], 1171 "region": "A String", # [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. 1172 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 1173 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 1174 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 1175 "name": "A String", # Name 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. 1176 }, 1177 ], 1178 "warning": { # [Output Only] Informational warning message. 1179 "message": "A String", # [Output Only] A human-readable description of the warning code. 1180 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 1181 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 1182 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 1183 { 1184 "value": "A String", # [Output Only] A warning data value corresponding to the key. 1185 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 1186 }, 1187 ], 1188 }, 1189 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 1190 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 1191 }</pre> 1192</div> 1193 1194<div class="method"> 1195 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 1196 <pre>Retrieves the next page of results. 1197 1198Args: 1199 previous_request: The request for the previous page. (required) 1200 previous_response: The response from the request for the previous page. (required) 1201 1202Returns: 1203 A request object that you can call 'execute()' on to request the next 1204 page. Returns None if there are no more items in the collection. 1205 </pre> 1206</div> 1207 1208<div class="method"> 1209 <code class="details" id="patch">patch(project, region, router, body, requestId=None)</code> 1210 <pre>Patches 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. 1211 1212Args: 1213 project: string, Project ID for this request. (required) 1214 region: string, Name of the region for this request. (required) 1215 router: string, Name of the Router resource to patch. (required) 1216 body: object, The request body. (required) 1217 The object takes the form of: 1218 1219{ # Represents a Cloud Router resource. 1220 # 1221 # For more information about Cloud Router, read the the Cloud Router overview. 1222 "kind": "compute#router", # [Output Only] Type of resource. Always compute#router for routers. 1223 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 1224 "nats": [ # A list of NAT services created in this router. 1225 { # Represents a Nat resource. It enables the VMs within the specified subnetworks to access Internet without external IP addresses. It specifies a list of subnetworks (and the ranges within) that want to use NAT. Customers can also provide the external IPs that would be used for NAT. GCP would auto-allocate ephemeral IPs if no external IPs are provided. 1226 "drainNatIps": [ # A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only. 1227 "A String", 1228 ], 1229 "udpIdleTimeoutSec": 42, # Timeout (in seconds) for UDP connections. Defaults to 30s if not set. 1230 "natIps": [ # A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project. 1231 "A String", 1232 ], 1233 "name": "A String", # Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035. 1234 "tcpTransitoryIdleTimeoutSec": 42, # Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set. 1235 "subnetworks": [ # A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above. 1236 { # Defines the IP ranges that want to use NAT for a subnetwork. 1237 "sourceIpRangesToNat": [ # Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] 1238 "A String", 1239 ], 1240 "name": "A String", # URL for the subnetwork resource that will use NAT. 1241 "secondaryIpRangeNames": [ # A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat. 1242 "A String", 1243 ], 1244 }, 1245 ], 1246 "tcpEstablishedIdleTimeoutSec": 42, # Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set. 1247 "natIpAllocateOption": "A String", # Specify the NatIpAllocateOption, which can take one of the following values: 1248 # - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. 1249 # - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. 1250 "sourceSubnetworkIpRangesToNat": "A String", # Specify the Nat option, which can take one of the following values: 1251 # - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. 1252 # - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. 1253 # - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. 1254 "icmpIdleTimeoutSec": 42, # Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. 1255 "logConfig": { # Configuration of logging on a NAT. # Configure logging on this NAT. 1256 "filter": "A String", # Specifies the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. 1257 "enable": True or False, # Indicates whether or not to export logs. This is false by default. 1258 }, 1259 "minPortsPerVm": 42, # Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the value of this field is 50, at least 64 ports are allocated to a VM. 1260 }, 1261 ], 1262 "interfaces": [ # Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both. 1263 { 1264 "linkedInterconnectAttachment": "A String", # URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be either be a VPN tunnel or an Interconnect attachment. 1265 "linkedVpnTunnel": "A String", # URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be either a VPN tunnel or an Interconnect attachment. 1266 "ipRange": "A String", # IP address and range of the interface. The IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface. 1267 "name": "A String", # Name of this interface entry. The name must be 1-63 characters long and comply with RFC1035. 1268 "managementType": "A String", # [Output Only] The resource that configures and manages this interface. 1269 # - MANAGED_BY_USER is the default value and can be managed directly by users. 1270 # - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted. 1271 }, 1272 ], 1273 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 1274 "bgp": { # BGP information specific to this router. 1275 "asn": 42, # Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. 1276 "advertisedIpRanges": [ # User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. 1277 { # Description-tagged IP ranges for the router to advertise. 1278 "range": "A String", # The IP range to advertise. The value must be a CIDR-formatted string. 1279 "description": "A String", # User-specified description for the IP range. 1280 }, 1281 ], 1282 "keepaliveInterval": 42, # The interval in seconds between BGP keepalive messages that are sent to the peer. Hold time is three times the interval at which keepalive messages are sent, and the hold time is the maximum number of seconds allowed to elapse between successive keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local hold time value or the peer?s hold time value as the hold time for the BGP connection between the two peers. If set, this value must be between 1 and 120. The default is 20. 1283 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 1284 "A String", 1285 ], 1286 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. 1287 }, 1288 "network": "A String", # URI of the network to which this router belongs. 1289 "bgpPeers": [ # BGP 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. 1290 { 1291 "enable": "A String", # The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing information. The default is TRUE. 1292 "peerAsn": 42, # Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value. 1293 "interfaceName": "A String", # Name of the interface the BGP peer is associated with. 1294 "name": "A String", # Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. 1295 "bfd": { # BFD configuration for the BGP peering. 1296 "sessionInitializationMode": "A String", # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE. 1297 "minTransmitInterval": 42, # The minimum interval, in milliseconds, between BFD packets transmitted to the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the corresponding receive interval of the other router. If BFD echo mode is enabled on this router and the peer router, this value is used to negotiate the interval between BFD echo packets transmitted by this router. Otherwise, it will be used to determine the interval between BFD control packets. If set, this value must be between 100 and 30000. The default is 300. 1298 "packetMode": "A String", # The BFD packet mode for this BGP peer. If set to CONTROL_AND_ECHO, BFD echo mode is enabled for this BGP peer. In this mode, if the peer router also has BFD echo mode enabled, BFD echo packets will be sent to the other router. If the peer router does not have BFD echo mode enabled, only control packets will be sent. If set to CONTROL_ONLY, BFD echo mode is disabled for this BGP peer. If this router and the peer router have a multihop connection, this should be set to CONTROL_ONLY as BFD echo mode is only supported on singlehop connections. The default is CONTROL_AND_ECHO. 1299 "mode": "A String", # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE. 1300 "minReceiveInterval": 42, # The minimum interval, in milliseconds, between BFD packets received from the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the transmit interval of the other router. If BFD echo mode is enabled on this router and the peer router, this value is used to negotiate the interval between BFD echo packets transmitted by the peer router. Otherwise, it will be used to determine the interval between BFD control packets. If set, this value must be between 100 and 30000. The default is 300. 1301 "multiplier": 42, # The number of consecutive BFD packets that must be missed before BFD declares that a peer is unavailable. If set, the value must be a value between 2 and 16. The default is 3. 1302 "slowTimerInterval": 42, # The minimum interval, in milliseconds, between BFD control packets transmitted to and received from the peer router when BFD echo mode is enabled on both routers. The actual transmit and receive intervals are negotiated between the two routers and are equal to the greater of this value and the corresponding interval on the other router. If set, this value must be between 1000 and 30000. The default is 5000. 1303 }, 1304 "peerIpAddress": "A String", # IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported. 1305 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: 1306 # - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. 1307 # - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. 1308 # - ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router's VPC network. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These groups are advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 1309 "A String", 1310 ], 1311 "managementType": "A String", # [Output Only] The resource that configures and manages this BGP peer. 1312 # - MANAGED_BY_USER is the default value and can be managed by you or other users 1313 # - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted. 1314 "advertisedIpRanges": [ # User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. 1315 { # Description-tagged IP ranges for the router to advertise. 1316 "range": "A String", # The IP range to advertise. The value must be a CIDR-formatted string. 1317 "description": "A String", # User-specified description for the IP range. 1318 }, 1319 ], 1320 "advertisedRoutePriority": 42, # The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win. 1321 "ipAddress": "A String", # IP address of the interface inside Google Cloud Platform. Only IPv4 is supported. 1322 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 1323 }, 1324 ], 1325 "region": "A String", # [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. 1326 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 1327 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 1328 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 1329 "name": "A String", # Name 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. 1330 } 1331 1332 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 1333 1334For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. 1335 1336The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 1337 1338Returns: 1339 An object of the form: 1340 1341 { # Represents an Operation resource. 1342 # 1343 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 1344 # 1345 # Operations can be global, regional or zonal. 1346 # - For global operations, use the globalOperations resource. 1347 # - For regional operations, use the regionOperations resource. 1348 # - For zonal operations, use the zonalOperations resource. 1349 # 1350 # For more information, read Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) 1351 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 1352 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 1353 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 1354 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 1355 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 1356 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 1357 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 1358 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 1359 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 1360 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 1361 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 1362 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 1363 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 1364 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 1365 { 1366 "message": "A String", # [Output Only] A human-readable description of the warning code. 1367 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 1368 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 1369 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 1370 { 1371 "value": "A String", # [Output Only] A warning data value corresponding to the key. 1372 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 1373 }, 1374 ], 1375 }, 1376 ], 1377 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 1378 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 1379 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 1380 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 1381 "name": "A String", # [Output Only] Name of the resource. 1382 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 1383 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 1384 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 1385 { 1386 "message": "A String", # [Output Only] An optional, human-readable error message. 1387 "code": "A String", # [Output Only] The error type identifier for this error. 1388 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 1389 }, 1390 ], 1391 }, 1392 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 1393 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 1394 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 1395 }</pre> 1396</div> 1397 1398<div class="method"> 1399 <code class="details" id="preview">preview(project, region, router, body)</code> 1400 <pre>Preview fields auto-generated during router create and update operations. Calling this method does NOT create or update the router. 1401 1402Args: 1403 project: string, Project ID for this request. (required) 1404 region: string, Name of the region for this request. (required) 1405 router: string, Name of the Router resource to query. (required) 1406 body: object, The request body. (required) 1407 The object takes the form of: 1408 1409{ # Represents a Cloud Router resource. 1410 # 1411 # For more information about Cloud Router, read the the Cloud Router overview. 1412 "kind": "compute#router", # [Output Only] Type of resource. Always compute#router for routers. 1413 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 1414 "nats": [ # A list of NAT services created in this router. 1415 { # Represents a Nat resource. It enables the VMs within the specified subnetworks to access Internet without external IP addresses. It specifies a list of subnetworks (and the ranges within) that want to use NAT. Customers can also provide the external IPs that would be used for NAT. GCP would auto-allocate ephemeral IPs if no external IPs are provided. 1416 "drainNatIps": [ # A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only. 1417 "A String", 1418 ], 1419 "udpIdleTimeoutSec": 42, # Timeout (in seconds) for UDP connections. Defaults to 30s if not set. 1420 "natIps": [ # A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project. 1421 "A String", 1422 ], 1423 "name": "A String", # Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035. 1424 "tcpTransitoryIdleTimeoutSec": 42, # Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set. 1425 "subnetworks": [ # A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above. 1426 { # Defines the IP ranges that want to use NAT for a subnetwork. 1427 "sourceIpRangesToNat": [ # Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] 1428 "A String", 1429 ], 1430 "name": "A String", # URL for the subnetwork resource that will use NAT. 1431 "secondaryIpRangeNames": [ # A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat. 1432 "A String", 1433 ], 1434 }, 1435 ], 1436 "tcpEstablishedIdleTimeoutSec": 42, # Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set. 1437 "natIpAllocateOption": "A String", # Specify the NatIpAllocateOption, which can take one of the following values: 1438 # - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. 1439 # - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. 1440 "sourceSubnetworkIpRangesToNat": "A String", # Specify the Nat option, which can take one of the following values: 1441 # - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. 1442 # - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. 1443 # - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. 1444 "icmpIdleTimeoutSec": 42, # Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. 1445 "logConfig": { # Configuration of logging on a NAT. # Configure logging on this NAT. 1446 "filter": "A String", # Specifies the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. 1447 "enable": True or False, # Indicates whether or not to export logs. This is false by default. 1448 }, 1449 "minPortsPerVm": 42, # Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the value of this field is 50, at least 64 ports are allocated to a VM. 1450 }, 1451 ], 1452 "interfaces": [ # Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both. 1453 { 1454 "linkedInterconnectAttachment": "A String", # URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be either be a VPN tunnel or an Interconnect attachment. 1455 "linkedVpnTunnel": "A String", # URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be either a VPN tunnel or an Interconnect attachment. 1456 "ipRange": "A String", # IP address and range of the interface. The IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface. 1457 "name": "A String", # Name of this interface entry. The name must be 1-63 characters long and comply with RFC1035. 1458 "managementType": "A String", # [Output Only] The resource that configures and manages this interface. 1459 # - MANAGED_BY_USER is the default value and can be managed directly by users. 1460 # - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted. 1461 }, 1462 ], 1463 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 1464 "bgp": { # BGP information specific to this router. 1465 "asn": 42, # Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. 1466 "advertisedIpRanges": [ # User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. 1467 { # Description-tagged IP ranges for the router to advertise. 1468 "range": "A String", # The IP range to advertise. The value must be a CIDR-formatted string. 1469 "description": "A String", # User-specified description for the IP range. 1470 }, 1471 ], 1472 "keepaliveInterval": 42, # The interval in seconds between BGP keepalive messages that are sent to the peer. Hold time is three times the interval at which keepalive messages are sent, and the hold time is the maximum number of seconds allowed to elapse between successive keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local hold time value or the peer?s hold time value as the hold time for the BGP connection between the two peers. If set, this value must be between 1 and 120. The default is 20. 1473 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 1474 "A String", 1475 ], 1476 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. 1477 }, 1478 "network": "A String", # URI of the network to which this router belongs. 1479 "bgpPeers": [ # BGP 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. 1480 { 1481 "enable": "A String", # The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing information. The default is TRUE. 1482 "peerAsn": 42, # Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value. 1483 "interfaceName": "A String", # Name of the interface the BGP peer is associated with. 1484 "name": "A String", # Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. 1485 "bfd": { # BFD configuration for the BGP peering. 1486 "sessionInitializationMode": "A String", # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE. 1487 "minTransmitInterval": 42, # The minimum interval, in milliseconds, between BFD packets transmitted to the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the corresponding receive interval of the other router. If BFD echo mode is enabled on this router and the peer router, this value is used to negotiate the interval between BFD echo packets transmitted by this router. Otherwise, it will be used to determine the interval between BFD control packets. If set, this value must be between 100 and 30000. The default is 300. 1488 "packetMode": "A String", # The BFD packet mode for this BGP peer. If set to CONTROL_AND_ECHO, BFD echo mode is enabled for this BGP peer. In this mode, if the peer router also has BFD echo mode enabled, BFD echo packets will be sent to the other router. If the peer router does not have BFD echo mode enabled, only control packets will be sent. If set to CONTROL_ONLY, BFD echo mode is disabled for this BGP peer. If this router and the peer router have a multihop connection, this should be set to CONTROL_ONLY as BFD echo mode is only supported on singlehop connections. The default is CONTROL_AND_ECHO. 1489 "mode": "A String", # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE. 1490 "minReceiveInterval": 42, # The minimum interval, in milliseconds, between BFD packets received from the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the transmit interval of the other router. If BFD echo mode is enabled on this router and the peer router, this value is used to negotiate the interval between BFD echo packets transmitted by the peer router. Otherwise, it will be used to determine the interval between BFD control packets. If set, this value must be between 100 and 30000. The default is 300. 1491 "multiplier": 42, # The number of consecutive BFD packets that must be missed before BFD declares that a peer is unavailable. If set, the value must be a value between 2 and 16. The default is 3. 1492 "slowTimerInterval": 42, # The minimum interval, in milliseconds, between BFD control packets transmitted to and received from the peer router when BFD echo mode is enabled on both routers. The actual transmit and receive intervals are negotiated between the two routers and are equal to the greater of this value and the corresponding interval on the other router. If set, this value must be between 1000 and 30000. The default is 5000. 1493 }, 1494 "peerIpAddress": "A String", # IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported. 1495 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: 1496 # - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. 1497 # - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. 1498 # - ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router's VPC network. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These groups are advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 1499 "A String", 1500 ], 1501 "managementType": "A String", # [Output Only] The resource that configures and manages this BGP peer. 1502 # - MANAGED_BY_USER is the default value and can be managed by you or other users 1503 # - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted. 1504 "advertisedIpRanges": [ # User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. 1505 { # Description-tagged IP ranges for the router to advertise. 1506 "range": "A String", # The IP range to advertise. The value must be a CIDR-formatted string. 1507 "description": "A String", # User-specified description for the IP range. 1508 }, 1509 ], 1510 "advertisedRoutePriority": 42, # The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win. 1511 "ipAddress": "A String", # IP address of the interface inside Google Cloud Platform. Only IPv4 is supported. 1512 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 1513 }, 1514 ], 1515 "region": "A String", # [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. 1516 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 1517 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 1518 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 1519 "name": "A String", # Name 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. 1520 } 1521 1522 1523Returns: 1524 An object of the form: 1525 1526 { 1527 "resource": { # Represents a Cloud Router resource. # Preview of given router. 1528 # 1529 # For more information about Cloud Router, read the the Cloud Router overview. 1530 "kind": "compute#router", # [Output Only] Type of resource. Always compute#router for routers. 1531 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 1532 "nats": [ # A list of NAT services created in this router. 1533 { # Represents a Nat resource. It enables the VMs within the specified subnetworks to access Internet without external IP addresses. It specifies a list of subnetworks (and the ranges within) that want to use NAT. Customers can also provide the external IPs that would be used for NAT. GCP would auto-allocate ephemeral IPs if no external IPs are provided. 1534 "drainNatIps": [ # A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only. 1535 "A String", 1536 ], 1537 "udpIdleTimeoutSec": 42, # Timeout (in seconds) for UDP connections. Defaults to 30s if not set. 1538 "natIps": [ # A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project. 1539 "A String", 1540 ], 1541 "name": "A String", # Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035. 1542 "tcpTransitoryIdleTimeoutSec": 42, # Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set. 1543 "subnetworks": [ # A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above. 1544 { # Defines the IP ranges that want to use NAT for a subnetwork. 1545 "sourceIpRangesToNat": [ # Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] 1546 "A String", 1547 ], 1548 "name": "A String", # URL for the subnetwork resource that will use NAT. 1549 "secondaryIpRangeNames": [ # A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat. 1550 "A String", 1551 ], 1552 }, 1553 ], 1554 "tcpEstablishedIdleTimeoutSec": 42, # Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set. 1555 "natIpAllocateOption": "A String", # Specify the NatIpAllocateOption, which can take one of the following values: 1556 # - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. 1557 # - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. 1558 "sourceSubnetworkIpRangesToNat": "A String", # Specify the Nat option, which can take one of the following values: 1559 # - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. 1560 # - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. 1561 # - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. 1562 "icmpIdleTimeoutSec": 42, # Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. 1563 "logConfig": { # Configuration of logging on a NAT. # Configure logging on this NAT. 1564 "filter": "A String", # Specifies the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. 1565 "enable": True or False, # Indicates whether or not to export logs. This is false by default. 1566 }, 1567 "minPortsPerVm": 42, # Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the value of this field is 50, at least 64 ports are allocated to a VM. 1568 }, 1569 ], 1570 "interfaces": [ # Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both. 1571 { 1572 "linkedInterconnectAttachment": "A String", # URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be either be a VPN tunnel or an Interconnect attachment. 1573 "linkedVpnTunnel": "A String", # URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be either a VPN tunnel or an Interconnect attachment. 1574 "ipRange": "A String", # IP address and range of the interface. The IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface. 1575 "name": "A String", # Name of this interface entry. The name must be 1-63 characters long and comply with RFC1035. 1576 "managementType": "A String", # [Output Only] The resource that configures and manages this interface. 1577 # - MANAGED_BY_USER is the default value and can be managed directly by users. 1578 # - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted. 1579 }, 1580 ], 1581 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 1582 "bgp": { # BGP information specific to this router. 1583 "asn": 42, # Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. 1584 "advertisedIpRanges": [ # User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. 1585 { # Description-tagged IP ranges for the router to advertise. 1586 "range": "A String", # The IP range to advertise. The value must be a CIDR-formatted string. 1587 "description": "A String", # User-specified description for the IP range. 1588 }, 1589 ], 1590 "keepaliveInterval": 42, # The interval in seconds between BGP keepalive messages that are sent to the peer. Hold time is three times the interval at which keepalive messages are sent, and the hold time is the maximum number of seconds allowed to elapse between successive keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local hold time value or the peer?s hold time value as the hold time for the BGP connection between the two peers. If set, this value must be between 1 and 120. The default is 20. 1591 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 1592 "A String", 1593 ], 1594 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. 1595 }, 1596 "network": "A String", # URI of the network to which this router belongs. 1597 "bgpPeers": [ # BGP 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. 1598 { 1599 "enable": "A String", # The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing information. The default is TRUE. 1600 "peerAsn": 42, # Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value. 1601 "interfaceName": "A String", # Name of the interface the BGP peer is associated with. 1602 "name": "A String", # Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. 1603 "bfd": { # BFD configuration for the BGP peering. 1604 "sessionInitializationMode": "A String", # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE. 1605 "minTransmitInterval": 42, # The minimum interval, in milliseconds, between BFD packets transmitted to the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the corresponding receive interval of the other router. If BFD echo mode is enabled on this router and the peer router, this value is used to negotiate the interval between BFD echo packets transmitted by this router. Otherwise, it will be used to determine the interval between BFD control packets. If set, this value must be between 100 and 30000. The default is 300. 1606 "packetMode": "A String", # The BFD packet mode for this BGP peer. If set to CONTROL_AND_ECHO, BFD echo mode is enabled for this BGP peer. In this mode, if the peer router also has BFD echo mode enabled, BFD echo packets will be sent to the other router. If the peer router does not have BFD echo mode enabled, only control packets will be sent. If set to CONTROL_ONLY, BFD echo mode is disabled for this BGP peer. If this router and the peer router have a multihop connection, this should be set to CONTROL_ONLY as BFD echo mode is only supported on singlehop connections. The default is CONTROL_AND_ECHO. 1607 "mode": "A String", # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE. 1608 "minReceiveInterval": 42, # The minimum interval, in milliseconds, between BFD packets received from the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the transmit interval of the other router. If BFD echo mode is enabled on this router and the peer router, this value is used to negotiate the interval between BFD echo packets transmitted by the peer router. Otherwise, it will be used to determine the interval between BFD control packets. If set, this value must be between 100 and 30000. The default is 300. 1609 "multiplier": 42, # The number of consecutive BFD packets that must be missed before BFD declares that a peer is unavailable. If set, the value must be a value between 2 and 16. The default is 3. 1610 "slowTimerInterval": 42, # The minimum interval, in milliseconds, between BFD control packets transmitted to and received from the peer router when BFD echo mode is enabled on both routers. The actual transmit and receive intervals are negotiated between the two routers and are equal to the greater of this value and the corresponding interval on the other router. If set, this value must be between 1000 and 30000. The default is 5000. 1611 }, 1612 "peerIpAddress": "A String", # IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported. 1613 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: 1614 # - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. 1615 # - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. 1616 # - ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router's VPC network. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These groups are advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 1617 "A String", 1618 ], 1619 "managementType": "A String", # [Output Only] The resource that configures and manages this BGP peer. 1620 # - MANAGED_BY_USER is the default value and can be managed by you or other users 1621 # - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted. 1622 "advertisedIpRanges": [ # User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. 1623 { # Description-tagged IP ranges for the router to advertise. 1624 "range": "A String", # The IP range to advertise. The value must be a CIDR-formatted string. 1625 "description": "A String", # User-specified description for the IP range. 1626 }, 1627 ], 1628 "advertisedRoutePriority": 42, # The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win. 1629 "ipAddress": "A String", # IP address of the interface inside Google Cloud Platform. Only IPv4 is supported. 1630 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 1631 }, 1632 ], 1633 "region": "A String", # [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. 1634 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 1635 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 1636 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 1637 "name": "A String", # Name 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. 1638 }, 1639 }</pre> 1640</div> 1641 1642<div class="method"> 1643 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body)</code> 1644 <pre>Returns permissions that a caller has on the specified resource. 1645 1646Args: 1647 project: string, Project ID for this request. (required) 1648 region: string, The name of the region for this request. (required) 1649 resource: string, Name or id of the resource for this request. (required) 1650 body: object, The request body. (required) 1651 The object takes the form of: 1652 1653{ 1654 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. 1655 "A String", 1656 ], 1657 } 1658 1659 1660Returns: 1661 An object of the form: 1662 1663 { 1664 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. 1665 "A String", 1666 ], 1667 }</pre> 1668</div> 1669 1670<div class="method"> 1671 <code class="details" id="update">update(project, region, router, body, requestId=None)</code> 1672 <pre>Updates the specified Router resource with the data included in the request. 1673 1674Args: 1675 project: string, Project ID for this request. (required) 1676 region: string, Name of the region for this request. (required) 1677 router: string, Name of the Router resource to update. (required) 1678 body: object, The request body. (required) 1679 The object takes the form of: 1680 1681{ # Represents a Cloud Router resource. 1682 # 1683 # For more information about Cloud Router, read the the Cloud Router overview. 1684 "kind": "compute#router", # [Output Only] Type of resource. Always compute#router for routers. 1685 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 1686 "nats": [ # A list of NAT services created in this router. 1687 { # Represents a Nat resource. It enables the VMs within the specified subnetworks to access Internet without external IP addresses. It specifies a list of subnetworks (and the ranges within) that want to use NAT. Customers can also provide the external IPs that would be used for NAT. GCP would auto-allocate ephemeral IPs if no external IPs are provided. 1688 "drainNatIps": [ # A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only. 1689 "A String", 1690 ], 1691 "udpIdleTimeoutSec": 42, # Timeout (in seconds) for UDP connections. Defaults to 30s if not set. 1692 "natIps": [ # A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project. 1693 "A String", 1694 ], 1695 "name": "A String", # Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035. 1696 "tcpTransitoryIdleTimeoutSec": 42, # Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set. 1697 "subnetworks": [ # A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above. 1698 { # Defines the IP ranges that want to use NAT for a subnetwork. 1699 "sourceIpRangesToNat": [ # Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] 1700 "A String", 1701 ], 1702 "name": "A String", # URL for the subnetwork resource that will use NAT. 1703 "secondaryIpRangeNames": [ # A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat. 1704 "A String", 1705 ], 1706 }, 1707 ], 1708 "tcpEstablishedIdleTimeoutSec": 42, # Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set. 1709 "natIpAllocateOption": "A String", # Specify the NatIpAllocateOption, which can take one of the following values: 1710 # - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. 1711 # - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. 1712 "sourceSubnetworkIpRangesToNat": "A String", # Specify the Nat option, which can take one of the following values: 1713 # - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. 1714 # - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. 1715 # - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. 1716 "icmpIdleTimeoutSec": 42, # Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. 1717 "logConfig": { # Configuration of logging on a NAT. # Configure logging on this NAT. 1718 "filter": "A String", # Specifies the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. 1719 "enable": True or False, # Indicates whether or not to export logs. This is false by default. 1720 }, 1721 "minPortsPerVm": 42, # Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the value of this field is 50, at least 64 ports are allocated to a VM. 1722 }, 1723 ], 1724 "interfaces": [ # Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both. 1725 { 1726 "linkedInterconnectAttachment": "A String", # URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be either be a VPN tunnel or an Interconnect attachment. 1727 "linkedVpnTunnel": "A String", # URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be either a VPN tunnel or an Interconnect attachment. 1728 "ipRange": "A String", # IP address and range of the interface. The IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface. 1729 "name": "A String", # Name of this interface entry. The name must be 1-63 characters long and comply with RFC1035. 1730 "managementType": "A String", # [Output Only] The resource that configures and manages this interface. 1731 # - MANAGED_BY_USER is the default value and can be managed directly by users. 1732 # - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted. 1733 }, 1734 ], 1735 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 1736 "bgp": { # BGP information specific to this router. 1737 "asn": 42, # Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. 1738 "advertisedIpRanges": [ # User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. 1739 { # Description-tagged IP ranges for the router to advertise. 1740 "range": "A String", # The IP range to advertise. The value must be a CIDR-formatted string. 1741 "description": "A String", # User-specified description for the IP range. 1742 }, 1743 ], 1744 "keepaliveInterval": 42, # The interval in seconds between BGP keepalive messages that are sent to the peer. Hold time is three times the interval at which keepalive messages are sent, and the hold time is the maximum number of seconds allowed to elapse between successive keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local hold time value or the peer?s hold time value as the hold time for the BGP connection between the two peers. If set, this value must be between 1 and 120. The default is 20. 1745 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 1746 "A String", 1747 ], 1748 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. 1749 }, 1750 "network": "A String", # URI of the network to which this router belongs. 1751 "bgpPeers": [ # BGP 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. 1752 { 1753 "enable": "A String", # The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing information. The default is TRUE. 1754 "peerAsn": 42, # Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value. 1755 "interfaceName": "A String", # Name of the interface the BGP peer is associated with. 1756 "name": "A String", # Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. 1757 "bfd": { # BFD configuration for the BGP peering. 1758 "sessionInitializationMode": "A String", # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE. 1759 "minTransmitInterval": 42, # The minimum interval, in milliseconds, between BFD packets transmitted to the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the corresponding receive interval of the other router. If BFD echo mode is enabled on this router and the peer router, this value is used to negotiate the interval between BFD echo packets transmitted by this router. Otherwise, it will be used to determine the interval between BFD control packets. If set, this value must be between 100 and 30000. The default is 300. 1760 "packetMode": "A String", # The BFD packet mode for this BGP peer. If set to CONTROL_AND_ECHO, BFD echo mode is enabled for this BGP peer. In this mode, if the peer router also has BFD echo mode enabled, BFD echo packets will be sent to the other router. If the peer router does not have BFD echo mode enabled, only control packets will be sent. If set to CONTROL_ONLY, BFD echo mode is disabled for this BGP peer. If this router and the peer router have a multihop connection, this should be set to CONTROL_ONLY as BFD echo mode is only supported on singlehop connections. The default is CONTROL_AND_ECHO. 1761 "mode": "A String", # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE. 1762 "minReceiveInterval": 42, # The minimum interval, in milliseconds, between BFD packets received from the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the transmit interval of the other router. If BFD echo mode is enabled on this router and the peer router, this value is used to negotiate the interval between BFD echo packets transmitted by the peer router. Otherwise, it will be used to determine the interval between BFD control packets. If set, this value must be between 100 and 30000. The default is 300. 1763 "multiplier": 42, # The number of consecutive BFD packets that must be missed before BFD declares that a peer is unavailable. If set, the value must be a value between 2 and 16. The default is 3. 1764 "slowTimerInterval": 42, # The minimum interval, in milliseconds, between BFD control packets transmitted to and received from the peer router when BFD echo mode is enabled on both routers. The actual transmit and receive intervals are negotiated between the two routers and are equal to the greater of this value and the corresponding interval on the other router. If set, this value must be between 1000 and 30000. The default is 5000. 1765 }, 1766 "peerIpAddress": "A String", # IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported. 1767 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: 1768 # - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. 1769 # - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. 1770 # - ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router's VPC network. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These groups are advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 1771 "A String", 1772 ], 1773 "managementType": "A String", # [Output Only] The resource that configures and manages this BGP peer. 1774 # - MANAGED_BY_USER is the default value and can be managed by you or other users 1775 # - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted. 1776 "advertisedIpRanges": [ # User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. 1777 { # Description-tagged IP ranges for the router to advertise. 1778 "range": "A String", # The IP range to advertise. The value must be a CIDR-formatted string. 1779 "description": "A String", # User-specified description for the IP range. 1780 }, 1781 ], 1782 "advertisedRoutePriority": 42, # The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win. 1783 "ipAddress": "A String", # IP address of the interface inside Google Cloud Platform. Only IPv4 is supported. 1784 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 1785 }, 1786 ], 1787 "region": "A String", # [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. 1788 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 1789 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 1790 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 1791 "name": "A String", # Name 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. 1792 } 1793 1794 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 1795 1796For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. 1797 1798The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 1799 1800Returns: 1801 An object of the form: 1802 1803 { # Represents an Operation resource. 1804 # 1805 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 1806 # 1807 # Operations can be global, regional or zonal. 1808 # - For global operations, use the globalOperations resource. 1809 # - For regional operations, use the regionOperations resource. 1810 # - For zonal operations, use the zonalOperations resource. 1811 # 1812 # For more information, read Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) 1813 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 1814 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 1815 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 1816 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 1817 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 1818 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 1819 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 1820 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 1821 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 1822 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 1823 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 1824 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 1825 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 1826 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 1827 { 1828 "message": "A String", # [Output Only] A human-readable description of the warning code. 1829 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 1830 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 1831 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 1832 { 1833 "value": "A String", # [Output Only] A warning data value corresponding to the key. 1834 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 1835 }, 1836 ], 1837 }, 1838 ], 1839 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 1840 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 1841 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 1842 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 1843 "name": "A String", # [Output Only] Name of the resource. 1844 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 1845 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 1846 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 1847 { 1848 "message": "A String", # [Output Only] An optional, human-readable error message. 1849 "code": "A String", # [Output Only] The error type identifier for this error. 1850 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 1851 }, 1852 ], 1853 }, 1854 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 1855 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 1856 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 1857 }</pre> 1858</div> 1859 1860</body></html>