blob: 93d4431580c9b23bcea5c0b4fc445f8df9afdc59 [file] [log] [blame]
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001<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_v1.html">Compute Engine API</a> . <a href="compute_v1.vpnTunnels.html">vpnTunnels</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070078 <code><a href="#aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080079<p class="firstline">Retrieves an aggregated list of VPN tunnels.</p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000080<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">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084 <code><a href="#delete">delete(project, region, vpnTunnel, requestId=None)</a></code></p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000085<p class="firstline">Deletes the specified VpnTunnel resource.</p>
86<p class="toc_element">
87 <code><a href="#get">get(project, region, vpnTunnel)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Returns the specified VpnTunnel resource. Gets a list of available VPN tunnels by making a list() request.</p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000089<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#insert">insert(project, region, body=None, requestId=None)</a></code></p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000091<p class="firstline">Creates a VpnTunnel resource in the specified project and region using the data included in the request.</p>
92<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070093 <code><a href="#list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080094<p class="firstline">Retrieves a list of VpnTunnel resources contained in the specified project and region.</p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000095<p class="toc_element">
96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<h3>Method Details</h3>
99<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700100 <code class="details" id="aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800101 <pre>Retrieves an aggregated list of VPN tunnels.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000102
103Args:
104 project: string, Project ID for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 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 `=`, `!=`, `&gt;`, or `&lt;`.
Takashi Matsuo06694102015-09-11 13:55:40 -0700106
Dan O'Mearadd494642020-05-01 07:42:23 -0700107For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
Takashi Matsuo06694102015-09-11 13:55:40 -0700108
Dan O'Mearadd494642020-05-01 07:42:23 -0700109You 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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800110
Bu Sun Kim65020912020-05-20 12:08:20 -0700111To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = &quot;Intel Skylake&quot;) ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = &quot;Intel Skylake&quot;) OR (cpuPlatform = &quot;Intel Broadwell&quot;) AND (scheduling.automaticRestart = true) ```
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 includeAllScopes: boolean, Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
Bu Sun Kim65020912020-05-20 12:08:20 -0700113 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`)
114 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
115
116You can also sort results in descending order based on the creation timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. 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.
117
118Currently, only sorting by `name` or `creationTimestamp desc` is supported.
119 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.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000120
121Returns:
122 An object of the form:
123
124 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700125 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
126 &quot;items&quot;: { # A list of VpnTunnelsScopedList resources.
127 &quot;a_key&quot;: { # Name of the scope containing this set of VPN tunnels.
128 &quot;vpnTunnels&quot;: [ # A list of VPN tunnels contained in this scope.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700129 { # Represents a Cloud VPN Tunnel resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 #
131 # For more information about VPN, read the the Cloud VPN Overview. (== resource_for {$api_version}.vpnTunnels ==)
132 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
133 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
134 &quot;detailedStatus&quot;: &quot;A String&quot;, # [Output Only] Detailed status message for the VPN tunnel.
135 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
136 &quot;ikeVersion&quot;: 42, # IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. Acceptable IKE versions are 1 or 2. The default version is 2.
137 &quot;kind&quot;: &quot;compute#vpnTunnel&quot;, # [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
138 &quot;localTrafficSelector&quot;: [ # Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported.
139 &quot;A String&quot;,
140 ],
141 &quot;name&quot;: &quot;A String&quot;, # 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.
142 &quot;peerExternalGateway&quot;: &quot;A String&quot;, # URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field is exclusive with the field peerGcpGateway.
143 &quot;peerExternalGatewayInterface&quot;: 42, # The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created.
144 &quot;peerGcpGateway&quot;: &quot;A String&quot;, # URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field can be used when creating highly available VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer GCP VPN gateway.
145 &quot;peerIp&quot;: &quot;A String&quot;, # IP address of the peer VPN gateway. Only IPv4 is supported.
146 &quot;region&quot;: &quot;A String&quot;, # [Output Only] URL of the region where the VPN tunnel resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
147 &quot;remoteTrafficSelector&quot;: [ # Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.
148 &quot;A String&quot;,
149 ],
150 &quot;router&quot;: &quot;A String&quot;, # URL of the router resource to be used for dynamic routing.
151 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
152 &quot;sharedSecret&quot;: &quot;A String&quot;, # Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
153 &quot;sharedSecretHash&quot;: &quot;A String&quot;, # Hash of the shared secret.
154 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the VPN tunnel, which can be one of the following:
155 # - PROVISIONING: Resource is being allocated for the VPN tunnel.
156 # - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel.
157 # - FIRST_HANDSHAKE: Successful first handshake with the peer VPN.
158 # - ESTABLISHED: Secure session is successfully established with the peer VPN.
159 # - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS
160 # - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret).
161 # - NEGOTIATION_FAILURE: Handshake failed.
162 # - DEPROVISIONING: Resources are being deallocated for the VPN tunnel.
163 # - FAILED: Tunnel creation has failed and the tunnel is not ready to be used.
164 # - NO_INCOMING_PACKETS: No incoming packets from peer.
165 # - REJECTED: Tunnel configuration was rejected, can be result of being blacklisted.
166 # - ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources.
167 # - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state.
168 # - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT.
169 # - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel.
170 &quot;targetVpnGateway&quot;: &quot;A String&quot;, # URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created.
171 &quot;vpnGateway&quot;: &quot;A String&quot;, # URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High Availability VPN gateway resource is created.
172 &quot;vpnGatewayInterface&quot;: 42, # The interface ID of the VPN gateway with which this VPN tunnel is associated.
173 },
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000174 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700175 &quot;warning&quot;: { # Informational warning which replaces the list of addresses when the list is empty.
176 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
177 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
178 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000179 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700180 &quot;key&quot;: &quot;A String&quot;, # [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).
181 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000182 },
183 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700184 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000185 },
186 },
187 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700188 &quot;kind&quot;: &quot;compute#vpnTunnelAggregatedList&quot;, # [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
189 &quot;nextPageToken&quot;: &quot;A String&quot;, # [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.
190 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource.
191 &quot;warning&quot;: { # [Output Only] Informational warning message.
192 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
193 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
194 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700195 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700196 &quot;key&quot;: &quot;A String&quot;, # [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).
197 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700198 },
199 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700200 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700201 },
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000202 }</pre>
203</div>
204
205<div class="method">
206 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
207 <pre>Retrieves the next page of results.
208
209Args:
210 previous_request: The request for the previous page. (required)
211 previous_response: The response from the request for the previous page. (required)
212
213Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700214 A request object that you can call &#x27;execute()&#x27; on to request the next
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000215 page. Returns None if there are no more items in the collection.
216 </pre>
217</div>
218
219<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700220 <code class="details" id="delete">delete(project, region, vpnTunnel, requestId=None)</code>
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000221 <pre>Deletes the specified VpnTunnel resource.
222
223Args:
224 project: string, Project ID for this request. (required)
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700225 region: string, Name of the region for this request. (required)
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000226 vpnTunnel: string, Name of the VpnTunnel resource to delete. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700227 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.
228
229For 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.
230
231The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000232
233Returns:
234 An object of the form:
235
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700236 { # Represents an Operation resource.
237 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700238 # Google Compute Engine has three Operation resources:
239 #
240 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
241 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700242 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
243 #
244 # Operations can be global, regional or zonal.
Dan O'Mearadd494642020-05-01 07:42:23 -0700245 # - For global operations, use the `globalOperations` resource.
246 # - For regional operations, use the `regionOperations` resource.
247 # - For zonal operations, use the `zonalOperations` resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700248 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700249 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
Bu Sun Kim65020912020-05-20 12:08:20 -0700250 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
251 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
252 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
253 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
254 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
255 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000256 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700257 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
258 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
259 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000260 },
261 ],
262 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700263 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.
264 &quot;httpErrorStatusCode&quot;: 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.
265 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
266 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
267 &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
268 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
269 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
270 &quot;progress&quot;: 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.
271 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
272 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
273 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
274 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
275 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
276 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
277 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
278 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
279 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
280 {
281 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
282 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
283 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
284 {
285 &quot;key&quot;: &quot;A String&quot;, # [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).
286 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
287 },
288 ],
289 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
290 },
291 ],
292 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000293 }</pre>
294</div>
295
296<div class="method">
297 <code class="details" id="get">get(project, region, vpnTunnel)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700298 <pre>Returns the specified VpnTunnel resource. Gets a list of available VPN tunnels by making a list() request.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000299
300Args:
301 project: string, Project ID for this request. (required)
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700302 region: string, Name of the region for this request. (required)
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000303 vpnTunnel: string, Name of the VpnTunnel resource to return. (required)
304
305Returns:
306 An object of the form:
307
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700308 { # Represents a Cloud VPN Tunnel resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700309 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700310 # For more information about VPN, read the the Cloud VPN Overview. (== resource_for {$api_version}.vpnTunnels ==)
Bu Sun Kim65020912020-05-20 12:08:20 -0700311 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
312 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
313 &quot;detailedStatus&quot;: &quot;A String&quot;, # [Output Only] Detailed status message for the VPN tunnel.
314 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
315 &quot;ikeVersion&quot;: 42, # IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. Acceptable IKE versions are 1 or 2. The default version is 2.
316 &quot;kind&quot;: &quot;compute#vpnTunnel&quot;, # [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
317 &quot;localTrafficSelector&quot;: [ # Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported.
318 &quot;A String&quot;,
319 ],
320 &quot;name&quot;: &quot;A String&quot;, # 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.
321 &quot;peerExternalGateway&quot;: &quot;A String&quot;, # URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field is exclusive with the field peerGcpGateway.
322 &quot;peerExternalGatewayInterface&quot;: 42, # The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created.
323 &quot;peerGcpGateway&quot;: &quot;A String&quot;, # URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field can be used when creating highly available VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer GCP VPN gateway.
324 &quot;peerIp&quot;: &quot;A String&quot;, # IP address of the peer VPN gateway. Only IPv4 is supported.
325 &quot;region&quot;: &quot;A String&quot;, # [Output Only] URL of the region where the VPN tunnel resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
326 &quot;remoteTrafficSelector&quot;: [ # Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.
327 &quot;A String&quot;,
328 ],
329 &quot;router&quot;: &quot;A String&quot;, # URL of the router resource to be used for dynamic routing.
330 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
331 &quot;sharedSecret&quot;: &quot;A String&quot;, # Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
332 &quot;sharedSecretHash&quot;: &quot;A String&quot;, # Hash of the shared secret.
333 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the VPN tunnel, which can be one of the following:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700334 # - PROVISIONING: Resource is being allocated for the VPN tunnel.
335 # - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel.
336 # - FIRST_HANDSHAKE: Successful first handshake with the peer VPN.
337 # - ESTABLISHED: Secure session is successfully established with the peer VPN.
338 # - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS
339 # - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret).
340 # - NEGOTIATION_FAILURE: Handshake failed.
341 # - DEPROVISIONING: Resources are being deallocated for the VPN tunnel.
342 # - FAILED: Tunnel creation has failed and the tunnel is not ready to be used.
Dan O'Mearadd494642020-05-01 07:42:23 -0700343 # - NO_INCOMING_PACKETS: No incoming packets from peer.
344 # - REJECTED: Tunnel configuration was rejected, can be result of being blacklisted.
345 # - ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources.
346 # - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state.
347 # - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT.
348 # - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel.
Bu Sun Kim65020912020-05-20 12:08:20 -0700349 &quot;targetVpnGateway&quot;: &quot;A String&quot;, # URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created.
350 &quot;vpnGateway&quot;: &quot;A String&quot;, # URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High Availability VPN gateway resource is created.
351 &quot;vpnGatewayInterface&quot;: 42, # The interface ID of the VPN gateway with which this VPN tunnel is associated.
352 }</pre>
353</div>
354
355<div class="method">
356 <code class="details" id="insert">insert(project, region, body=None, requestId=None)</code>
357 <pre>Creates a VpnTunnel resource in the specified project and region using the data included in the request.
358
359Args:
360 project: string, Project ID for this request. (required)
361 region: string, Name of the region for this request. (required)
362 body: object, The request body.
363 The object takes the form of:
364
365{ # Represents a Cloud VPN Tunnel resource.
366 #
367 # For more information about VPN, read the the Cloud VPN Overview. (== resource_for {$api_version}.vpnTunnels ==)
368 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
369 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
370 &quot;detailedStatus&quot;: &quot;A String&quot;, # [Output Only] Detailed status message for the VPN tunnel.
371 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
372 &quot;ikeVersion&quot;: 42, # IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. Acceptable IKE versions are 1 or 2. The default version is 2.
373 &quot;kind&quot;: &quot;compute#vpnTunnel&quot;, # [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
374 &quot;localTrafficSelector&quot;: [ # Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported.
375 &quot;A String&quot;,
376 ],
377 &quot;name&quot;: &quot;A String&quot;, # 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.
378 &quot;peerExternalGateway&quot;: &quot;A String&quot;, # URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field is exclusive with the field peerGcpGateway.
379 &quot;peerExternalGatewayInterface&quot;: 42, # The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created.
380 &quot;peerGcpGateway&quot;: &quot;A String&quot;, # URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field can be used when creating highly available VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer GCP VPN gateway.
381 &quot;peerIp&quot;: &quot;A String&quot;, # IP address of the peer VPN gateway. Only IPv4 is supported.
382 &quot;region&quot;: &quot;A String&quot;, # [Output Only] URL of the region where the VPN tunnel resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
383 &quot;remoteTrafficSelector&quot;: [ # Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.
384 &quot;A String&quot;,
385 ],
386 &quot;router&quot;: &quot;A String&quot;, # URL of the router resource to be used for dynamic routing.
387 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
388 &quot;sharedSecret&quot;: &quot;A String&quot;, # Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
389 &quot;sharedSecretHash&quot;: &quot;A String&quot;, # Hash of the shared secret.
390 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the VPN tunnel, which can be one of the following:
391 # - PROVISIONING: Resource is being allocated for the VPN tunnel.
392 # - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel.
393 # - FIRST_HANDSHAKE: Successful first handshake with the peer VPN.
394 # - ESTABLISHED: Secure session is successfully established with the peer VPN.
395 # - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS
396 # - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret).
397 # - NEGOTIATION_FAILURE: Handshake failed.
398 # - DEPROVISIONING: Resources are being deallocated for the VPN tunnel.
399 # - FAILED: Tunnel creation has failed and the tunnel is not ready to be used.
400 # - NO_INCOMING_PACKETS: No incoming packets from peer.
401 # - REJECTED: Tunnel configuration was rejected, can be result of being blacklisted.
402 # - ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources.
403 # - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state.
404 # - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT.
405 # - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel.
406 &quot;targetVpnGateway&quot;: &quot;A String&quot;, # URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created.
407 &quot;vpnGateway&quot;: &quot;A String&quot;, # URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High Availability VPN gateway resource is created.
408 &quot;vpnGatewayInterface&quot;: 42, # The interface ID of the VPN gateway with which this VPN tunnel is associated.
409}
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000410
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700411 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.
412
413For 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.
414
415The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000416
417Returns:
418 An object of the form:
419
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700420 { # Represents an Operation resource.
421 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700422 # Google Compute Engine has three Operation resources:
423 #
424 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
425 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700426 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
427 #
428 # Operations can be global, regional or zonal.
Dan O'Mearadd494642020-05-01 07:42:23 -0700429 # - For global operations, use the `globalOperations` resource.
430 # - For regional operations, use the `regionOperations` resource.
431 # - For zonal operations, use the `zonalOperations` resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700432 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700433 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
Bu Sun Kim65020912020-05-20 12:08:20 -0700434 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
435 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
436 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
437 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
438 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
439 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000440 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700441 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
442 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
443 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000444 },
445 ],
446 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700447 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.
448 &quot;httpErrorStatusCode&quot;: 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.
449 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
450 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
451 &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
452 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
453 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
454 &quot;progress&quot;: 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.
455 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
456 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
457 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
458 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
459 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
460 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
461 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
462 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
463 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
464 {
465 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
466 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
467 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
468 {
469 &quot;key&quot;: &quot;A String&quot;, # [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).
470 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
471 },
472 ],
473 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
474 },
475 ],
476 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000477 }</pre>
478</div>
479
480<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700481 <code class="details" id="list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800482 <pre>Retrieves a list of VpnTunnel resources contained in the specified project and region.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000483
484Args:
485 project: string, Project ID for this request. (required)
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700486 region: string, Name of the region for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700487 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 `=`, `!=`, `&gt;`, or `&lt;`.
Takashi Matsuo06694102015-09-11 13:55:40 -0700488
Dan O'Mearadd494642020-05-01 07:42:23 -0700489For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
Takashi Matsuo06694102015-09-11 13:55:40 -0700490
Dan O'Mearadd494642020-05-01 07:42:23 -0700491You 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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800492
Bu Sun Kim65020912020-05-20 12:08:20 -0700493To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = &quot;Intel Skylake&quot;) ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = &quot;Intel Skylake&quot;) OR (cpuPlatform = &quot;Intel Broadwell&quot;) AND (scheduling.automaticRestart = true) ```
494 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`)
495 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
496
497You can also sort results in descending order based on the creation timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. 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.
498
499Currently, only sorting by `name` or `creationTimestamp desc` is supported.
500 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.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000501
502Returns:
503 An object of the form:
504
505 { # Contains a list of VpnTunnel resources.
Bu Sun Kim65020912020-05-20 12:08:20 -0700506 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
507 &quot;items&quot;: [ # A list of VpnTunnel resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700508 { # Represents a Cloud VPN Tunnel resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700509 #
510 # For more information about VPN, read the the Cloud VPN Overview. (== resource_for {$api_version}.vpnTunnels ==)
511 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
512 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
513 &quot;detailedStatus&quot;: &quot;A String&quot;, # [Output Only] Detailed status message for the VPN tunnel.
514 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
515 &quot;ikeVersion&quot;: 42, # IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. Acceptable IKE versions are 1 or 2. The default version is 2.
516 &quot;kind&quot;: &quot;compute#vpnTunnel&quot;, # [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
517 &quot;localTrafficSelector&quot;: [ # Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported.
518 &quot;A String&quot;,
519 ],
520 &quot;name&quot;: &quot;A String&quot;, # 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.
521 &quot;peerExternalGateway&quot;: &quot;A String&quot;, # URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field is exclusive with the field peerGcpGateway.
522 &quot;peerExternalGatewayInterface&quot;: 42, # The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created.
523 &quot;peerGcpGateway&quot;: &quot;A String&quot;, # URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field can be used when creating highly available VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer GCP VPN gateway.
524 &quot;peerIp&quot;: &quot;A String&quot;, # IP address of the peer VPN gateway. Only IPv4 is supported.
525 &quot;region&quot;: &quot;A String&quot;, # [Output Only] URL of the region where the VPN tunnel resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
526 &quot;remoteTrafficSelector&quot;: [ # Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.
527 &quot;A String&quot;,
528 ],
529 &quot;router&quot;: &quot;A String&quot;, # URL of the router resource to be used for dynamic routing.
530 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
531 &quot;sharedSecret&quot;: &quot;A String&quot;, # Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
532 &quot;sharedSecretHash&quot;: &quot;A String&quot;, # Hash of the shared secret.
533 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the VPN tunnel, which can be one of the following:
534 # - PROVISIONING: Resource is being allocated for the VPN tunnel.
535 # - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel.
536 # - FIRST_HANDSHAKE: Successful first handshake with the peer VPN.
537 # - ESTABLISHED: Secure session is successfully established with the peer VPN.
538 # - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS
539 # - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret).
540 # - NEGOTIATION_FAILURE: Handshake failed.
541 # - DEPROVISIONING: Resources are being deallocated for the VPN tunnel.
542 # - FAILED: Tunnel creation has failed and the tunnel is not ready to be used.
543 # - NO_INCOMING_PACKETS: No incoming packets from peer.
544 # - REJECTED: Tunnel configuration was rejected, can be result of being blacklisted.
545 # - ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources.
546 # - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state.
547 # - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT.
548 # - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel.
549 &quot;targetVpnGateway&quot;: &quot;A String&quot;, # URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created.
550 &quot;vpnGateway&quot;: &quot;A String&quot;, # URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High Availability VPN gateway resource is created.
551 &quot;vpnGatewayInterface&quot;: 42, # The interface ID of the VPN gateway with which this VPN tunnel is associated.
552 },
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000553 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700554 &quot;kind&quot;: &quot;compute#vpnTunnelList&quot;, # [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
555 &quot;nextPageToken&quot;: &quot;A String&quot;, # [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.
556 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource.
557 &quot;warning&quot;: { # [Output Only] Informational warning message.
558 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
559 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
560 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700561 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700562 &quot;key&quot;: &quot;A String&quot;, # [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).
563 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700564 },
565 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700566 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700567 },
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000568 }</pre>
569</div>
570
571<div class="method">
572 <code class="details" id="list_next">list_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:
Bu Sun Kim65020912020-05-20 12:08:20 -0700580 A request object that you can call &#x27;execute()&#x27; on to request the next
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000581 page. Returns None if there are no more items in the collection.
582 </pre>
583</div>
584
585</body></html>