blob: b3bac583e5738260a16146190d0b0aff3c1a3d55 [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<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.regionHealthChecks.html">regionHealthChecks</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070081 <code><a href="#delete">delete(project, region, healthCheck, requestId=None)</a></code></p>
82<p class="firstline">Deletes the specified HealthCheck resource.</p>
83<p class="toc_element">
84 <code><a href="#get">get(project, region, healthCheck)</a></code></p>
85<p class="firstline">Returns the specified HealthCheck resource. Gets a list of available health checks by making a list() request.</p>
86<p class="toc_element">
87 <code><a href="#insert">insert(project, region, body=None, requestId=None)</a></code></p>
88<p class="firstline">Creates a HealthCheck resource in the specified project using the data included in the request.</p>
89<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070090 <code><a href="#list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None)</a></code></p>
Bu Sun Kim65020912020-05-20 12:08:20 -070091<p class="firstline">Retrieves the list of HealthCheck resources available to the specified project.</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_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="#patch">patch(project, region, healthCheck, body=None, requestId=None)</a></code></p>
97<p class="firstline">Updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.</p>
98<p class="toc_element">
99 <code><a href="#update">update(project, region, healthCheck, body=None, requestId=None)</a></code></p>
100<p class="firstline">Updates a HealthCheck resource in the specified project using the data included in the request.</p>
101<h3>Method Details</h3>
102<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105</div>
106
107<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700108 <code class="details" id="delete">delete(project, region, healthCheck, requestId=None)</code>
109 <pre>Deletes the specified HealthCheck resource.
110
111Args:
112 project: string, Project ID for this request. (required)
113 region: string, Name of the region scoping this request. (required)
114 healthCheck: string, Name of the HealthCheck resource to delete. (required)
115 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.
116
117For 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.
118
119The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
120
121Returns:
122 An object of the form:
123
124 { # Represents an Operation resource.
125 #
126 # Google Compute Engine has three Operation resources:
127 #
128 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
129 #
130 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
131 #
132 # Operations can be global, regional or zonal.
133 # - For global operations, use the `globalOperations` resource.
134 # - For regional operations, use the `regionOperations` resource.
135 # - For zonal operations, use the `zonalOperations` resource.
136 #
137 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
138 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
139 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
140 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
141 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
142 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
143 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
144 {
145 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
146 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
147 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
148 },
149 ],
150 },
151 &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`.
152 &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.
153 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
154 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
155 &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
156 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
157 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
158 &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.
159 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
160 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
161 &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.
162 &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`.
163 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
164 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
165 &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.
166 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
167 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
168 {
169 &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.
170 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
171 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
172 {
173 &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).
174 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
175 },
176 ],
177 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
178 },
179 ],
180 &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.
181 }</pre>
182</div>
183
184<div class="method">
185 <code class="details" id="get">get(project, region, healthCheck)</code>
186 <pre>Returns the specified HealthCheck resource. Gets a list of available health checks by making a list() request.
187
188Args:
189 project: string, Project ID for this request. (required)
190 region: string, Name of the region scoping this request. (required)
191 healthCheck: string, Name of the HealthCheck resource to return. (required)
192
193Returns:
194 An object of the form:
195
196 { # Represents a Health Check resource.
197 #
198 # Google Compute Engine has two Health Check resources:
199 #
200 # * [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
201 #
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700202 # Internal HTTP(S) load balancers must use regional health checks (`compute.v1.regionHealthChecks`).
Bu Sun Kim65020912020-05-20 12:08:20 -0700203 #
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700204 # Traffic Director must use global health checks (`compute.v1.HealthChecks`).
205 #
206 # Internal TCP/UDP load balancers can use either regional or global health checks (`compute.v1.regionHealthChecks` or `compute.v1.HealthChecks`).
207 #
208 # External HTTP(S), TCP proxy, and SSL proxy load balancers as well as managed instance group auto-healing must use global health checks (`compute.v1.HealthChecks`).
209 #
210 # Network load balancers must use legacy HTTP health checks (httpHealthChecks).
211 #
212 # For more information, see Health checks overview.
Bu Sun Kim65020912020-05-20 12:08:20 -0700213 &quot;checkIntervalSec&quot;: 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
214 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in 3339 text format.
215 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700216 &quot;grpcHealthCheck&quot;: {
217 &quot;grpcServiceName&quot;: &quot;A String&quot;, # The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention:
218 # - Empty service_name means the overall status of all services at the backend.
219 # - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service.
220 # The grpc_service_name can only be ASCII.
221 &quot;port&quot;: 42, # The port number for the health check request. Must be specified if port_name and port_specification are not set or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535.
222 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. The port_name should conform to RFC1035.
223 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
224 # USE_FIXED_PORT: The port number in port is used for health checking.
225 # USE_NAMED_PORT: The portName is used for health checking.
226 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
227 #
228 #
229 # If not specified, gRPC health check follows behavior specified in port and portName fields.
230 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700231 &quot;healthyThreshold&quot;: 42, # A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
232 &quot;http2HealthCheck&quot;: {
233 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTP/2 health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
234 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
235 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
236 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
237 # USE_FIXED_PORT: The port number in port is used for health checking.
238 # USE_NAMED_PORT: The portName is used for health checking.
239 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
240 #
241 #
242 # If not specified, HTTP2 health check follows behavior specified in port and portName fields.
243 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
244 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP/2 health check request. The default value is /.
245 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
246 },
247 &quot;httpHealthCheck&quot;: {
248 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTP health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
249 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
250 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
251 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
252 # USE_FIXED_PORT: The port number in port is used for health checking.
253 # USE_NAMED_PORT: The portName is used for health checking.
254 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
255 #
256 #
257 # If not specified, HTTP health check follows behavior specified in port and portName fields.
258 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
259 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP health check request. The default value is /.
260 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
261 },
262 &quot;httpsHealthCheck&quot;: {
263 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTPS health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
264 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
265 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
266 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
267 # USE_FIXED_PORT: The port number in port is used for health checking.
268 # USE_NAMED_PORT: The portName is used for health checking.
269 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
270 #
271 #
272 # If not specified, HTTPS health check follows behavior specified in port and portName fields.
273 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
274 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTPS health check request. The default value is /.
275 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
276 },
277 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
278 &quot;kind&quot;: &quot;compute#healthCheck&quot;, # Type of the resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700279 &quot;logConfig&quot;: { # Configuration of logging on a health check. If logging is enabled, logs will be exported to Stackdriver. # Configure logging on this health check.
280 &quot;enable&quot;: True or False, # Indicates whether or not to export logs. This is false by default, which means no health check logging will be done.
281 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700282 &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.
283 &quot;region&quot;: &quot;A String&quot;, # [Output Only] Region where the health check resides. Not applicable to global health checks.
284 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
285 &quot;sslHealthCheck&quot;: {
286 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
287 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
288 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
289 # USE_FIXED_PORT: The port number in port is used for health checking.
290 # USE_NAMED_PORT: The portName is used for health checking.
291 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
292 #
293 #
294 # If not specified, SSL health check follows behavior specified in port and portName fields.
295 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
296 &quot;request&quot;: &quot;A String&quot;, # The application data to send once the SSL connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
297 &quot;response&quot;: &quot;A String&quot;, # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
298 },
299 &quot;tcpHealthCheck&quot;: {
300 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
301 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
302 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
303 # USE_FIXED_PORT: The port number in port is used for health checking.
304 # USE_NAMED_PORT: The portName is used for health checking.
305 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
306 #
307 #
308 # If not specified, TCP health check follows behavior specified in port and portName fields.
309 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
310 &quot;request&quot;: &quot;A String&quot;, # The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
311 &quot;response&quot;: &quot;A String&quot;, # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
312 },
313 &quot;timeoutSec&quot;: 42, # How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
314 &quot;type&quot;: &quot;A String&quot;, # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
315 &quot;unhealthyThreshold&quot;: 42, # A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
316 }</pre>
317</div>
318
319<div class="method">
320 <code class="details" id="insert">insert(project, region, body=None, requestId=None)</code>
321 <pre>Creates a HealthCheck resource in the specified project using the data included in the request.
322
323Args:
324 project: string, Project ID for this request. (required)
325 region: string, Name of the region scoping this request. (required)
326 body: object, The request body.
327 The object takes the form of:
328
329{ # Represents a Health Check resource.
330 #
331 # Google Compute Engine has two Health Check resources:
332 #
333 # * [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
334 #
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700335 # Internal HTTP(S) load balancers must use regional health checks (`compute.v1.regionHealthChecks`).
Bu Sun Kim65020912020-05-20 12:08:20 -0700336 #
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700337 # Traffic Director must use global health checks (`compute.v1.HealthChecks`).
338 #
339 # Internal TCP/UDP load balancers can use either regional or global health checks (`compute.v1.regionHealthChecks` or `compute.v1.HealthChecks`).
340 #
341 # External HTTP(S), TCP proxy, and SSL proxy load balancers as well as managed instance group auto-healing must use global health checks (`compute.v1.HealthChecks`).
342 #
343 # Network load balancers must use legacy HTTP health checks (httpHealthChecks).
344 #
345 # For more information, see Health checks overview.
Bu Sun Kim65020912020-05-20 12:08:20 -0700346 &quot;checkIntervalSec&quot;: 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
347 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in 3339 text format.
348 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700349 &quot;grpcHealthCheck&quot;: {
350 &quot;grpcServiceName&quot;: &quot;A String&quot;, # The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention:
351 # - Empty service_name means the overall status of all services at the backend.
352 # - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service.
353 # The grpc_service_name can only be ASCII.
354 &quot;port&quot;: 42, # The port number for the health check request. Must be specified if port_name and port_specification are not set or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535.
355 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. The port_name should conform to RFC1035.
356 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
357 # USE_FIXED_PORT: The port number in port is used for health checking.
358 # USE_NAMED_PORT: The portName is used for health checking.
359 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
360 #
361 #
362 # If not specified, gRPC health check follows behavior specified in port and portName fields.
363 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700364 &quot;healthyThreshold&quot;: 42, # A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
365 &quot;http2HealthCheck&quot;: {
366 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTP/2 health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
367 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
368 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
369 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
370 # USE_FIXED_PORT: The port number in port is used for health checking.
371 # USE_NAMED_PORT: The portName is used for health checking.
372 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
373 #
374 #
375 # If not specified, HTTP2 health check follows behavior specified in port and portName fields.
376 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
377 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP/2 health check request. The default value is /.
378 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
379 },
380 &quot;httpHealthCheck&quot;: {
381 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTP health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
382 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
383 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
384 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
385 # USE_FIXED_PORT: The port number in port is used for health checking.
386 # USE_NAMED_PORT: The portName is used for health checking.
387 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
388 #
389 #
390 # If not specified, HTTP health check follows behavior specified in port and portName fields.
391 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
392 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP health check request. The default value is /.
393 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
394 },
395 &quot;httpsHealthCheck&quot;: {
396 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTPS health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
397 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
398 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
399 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
400 # USE_FIXED_PORT: The port number in port is used for health checking.
401 # USE_NAMED_PORT: The portName is used for health checking.
402 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
403 #
404 #
405 # If not specified, HTTPS health check follows behavior specified in port and portName fields.
406 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
407 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTPS health check request. The default value is /.
408 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
409 },
410 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
411 &quot;kind&quot;: &quot;compute#healthCheck&quot;, # Type of the resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700412 &quot;logConfig&quot;: { # Configuration of logging on a health check. If logging is enabled, logs will be exported to Stackdriver. # Configure logging on this health check.
413 &quot;enable&quot;: True or False, # Indicates whether or not to export logs. This is false by default, which means no health check logging will be done.
414 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700415 &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.
416 &quot;region&quot;: &quot;A String&quot;, # [Output Only] Region where the health check resides. Not applicable to global health checks.
417 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
418 &quot;sslHealthCheck&quot;: {
419 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
420 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
421 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
422 # USE_FIXED_PORT: The port number in port is used for health checking.
423 # USE_NAMED_PORT: The portName is used for health checking.
424 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
425 #
426 #
427 # If not specified, SSL health check follows behavior specified in port and portName fields.
428 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
429 &quot;request&quot;: &quot;A String&quot;, # The application data to send once the SSL connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
430 &quot;response&quot;: &quot;A String&quot;, # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
431 },
432 &quot;tcpHealthCheck&quot;: {
433 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
434 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
435 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
436 # USE_FIXED_PORT: The port number in port is used for health checking.
437 # USE_NAMED_PORT: The portName is used for health checking.
438 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
439 #
440 #
441 # If not specified, TCP health check follows behavior specified in port and portName fields.
442 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
443 &quot;request&quot;: &quot;A String&quot;, # The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
444 &quot;response&quot;: &quot;A String&quot;, # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
445 },
446 &quot;timeoutSec&quot;: 42, # How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
447 &quot;type&quot;: &quot;A String&quot;, # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
448 &quot;unhealthyThreshold&quot;: 42, # A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
449}
450
451 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.
452
453For 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.
454
455The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
456
457Returns:
458 An object of the form:
459
460 { # Represents an Operation resource.
461 #
462 # Google Compute Engine has three Operation resources:
463 #
464 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
465 #
466 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
467 #
468 # Operations can be global, regional or zonal.
469 # - For global operations, use the `globalOperations` resource.
470 # - For regional operations, use the `regionOperations` resource.
471 # - For zonal operations, use the `zonalOperations` resource.
472 #
473 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
474 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
475 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
476 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
477 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
478 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
479 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
480 {
481 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
482 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
483 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
484 },
485 ],
486 },
487 &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`.
488 &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.
489 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
490 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
491 &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
492 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
493 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
494 &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.
495 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
496 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
497 &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.
498 &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`.
499 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
500 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
501 &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.
502 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
503 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
504 {
505 &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.
506 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
507 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
508 {
509 &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).
510 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
511 },
512 ],
513 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
514 },
515 ],
516 &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.
517 }</pre>
518</div>
519
520<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700521 <code class="details" id="list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700522 <pre>Retrieves the list of HealthCheck resources available to the specified project.
523
524Args:
525 project: string, Project ID for this request. (required)
526 region: string, Name of the region scoping this request. (required)
527 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;`.
528
529For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
530
531You 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.
532
533To 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) ```
534 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`)
535 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
536
537You 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.
538
539Currently, only sorting by `name` or `creationTimestamp desc` is supported.
540 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700541 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.
Bu Sun Kim65020912020-05-20 12:08:20 -0700542
543Returns:
544 An object of the form:
545
546 { # Contains a list of HealthCheck resources.
547 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
548 &quot;items&quot;: [ # A list of HealthCheck resources.
549 { # Represents a Health Check resource.
550 #
551 # Google Compute Engine has two Health Check resources:
552 #
553 # * [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
554 #
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700555 # Internal HTTP(S) load balancers must use regional health checks (`compute.v1.regionHealthChecks`).
Bu Sun Kim65020912020-05-20 12:08:20 -0700556 #
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700557 # Traffic Director must use global health checks (`compute.v1.HealthChecks`).
558 #
559 # Internal TCP/UDP load balancers can use either regional or global health checks (`compute.v1.regionHealthChecks` or `compute.v1.HealthChecks`).
560 #
561 # External HTTP(S), TCP proxy, and SSL proxy load balancers as well as managed instance group auto-healing must use global health checks (`compute.v1.HealthChecks`).
562 #
563 # Network load balancers must use legacy HTTP health checks (httpHealthChecks).
564 #
565 # For more information, see Health checks overview.
Bu Sun Kim65020912020-05-20 12:08:20 -0700566 &quot;checkIntervalSec&quot;: 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
567 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in 3339 text format.
568 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700569 &quot;grpcHealthCheck&quot;: {
570 &quot;grpcServiceName&quot;: &quot;A String&quot;, # The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention:
571 # - Empty service_name means the overall status of all services at the backend.
572 # - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service.
573 # The grpc_service_name can only be ASCII.
574 &quot;port&quot;: 42, # The port number for the health check request. Must be specified if port_name and port_specification are not set or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535.
575 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. The port_name should conform to RFC1035.
576 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
577 # USE_FIXED_PORT: The port number in port is used for health checking.
578 # USE_NAMED_PORT: The portName is used for health checking.
579 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
580 #
581 #
582 # If not specified, gRPC health check follows behavior specified in port and portName fields.
583 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700584 &quot;healthyThreshold&quot;: 42, # A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
585 &quot;http2HealthCheck&quot;: {
586 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTP/2 health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
587 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
588 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
589 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
590 # USE_FIXED_PORT: The port number in port is used for health checking.
591 # USE_NAMED_PORT: The portName is used for health checking.
592 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
593 #
594 #
595 # If not specified, HTTP2 health check follows behavior specified in port and portName fields.
596 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
597 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP/2 health check request. The default value is /.
598 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
599 },
600 &quot;httpHealthCheck&quot;: {
601 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTP health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
602 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
603 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
604 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
605 # USE_FIXED_PORT: The port number in port is used for health checking.
606 # USE_NAMED_PORT: The portName is used for health checking.
607 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
608 #
609 #
610 # If not specified, HTTP health check follows behavior specified in port and portName fields.
611 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
612 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP health check request. The default value is /.
613 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
614 },
615 &quot;httpsHealthCheck&quot;: {
616 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTPS health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
617 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
618 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
619 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
620 # USE_FIXED_PORT: The port number in port is used for health checking.
621 # USE_NAMED_PORT: The portName is used for health checking.
622 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
623 #
624 #
625 # If not specified, HTTPS health check follows behavior specified in port and portName fields.
626 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
627 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTPS health check request. The default value is /.
628 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
629 },
630 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
631 &quot;kind&quot;: &quot;compute#healthCheck&quot;, # Type of the resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700632 &quot;logConfig&quot;: { # Configuration of logging on a health check. If logging is enabled, logs will be exported to Stackdriver. # Configure logging on this health check.
633 &quot;enable&quot;: True or False, # Indicates whether or not to export logs. This is false by default, which means no health check logging will be done.
634 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700635 &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.
636 &quot;region&quot;: &quot;A String&quot;, # [Output Only] Region where the health check resides. Not applicable to global health checks.
637 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
638 &quot;sslHealthCheck&quot;: {
639 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
640 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
641 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
642 # USE_FIXED_PORT: The port number in port is used for health checking.
643 # USE_NAMED_PORT: The portName is used for health checking.
644 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
645 #
646 #
647 # If not specified, SSL health check follows behavior specified in port and portName fields.
648 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
649 &quot;request&quot;: &quot;A String&quot;, # The application data to send once the SSL connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
650 &quot;response&quot;: &quot;A String&quot;, # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
651 },
652 &quot;tcpHealthCheck&quot;: {
653 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
654 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
655 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
656 # USE_FIXED_PORT: The port number in port is used for health checking.
657 # USE_NAMED_PORT: The portName is used for health checking.
658 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
659 #
660 #
661 # If not specified, TCP health check follows behavior specified in port and portName fields.
662 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
663 &quot;request&quot;: &quot;A String&quot;, # The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
664 &quot;response&quot;: &quot;A String&quot;, # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
665 },
666 &quot;timeoutSec&quot;: 42, # How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
667 &quot;type&quot;: &quot;A String&quot;, # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
668 &quot;unhealthyThreshold&quot;: 42, # A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
669 },
670 ],
671 &quot;kind&quot;: &quot;compute#healthCheckList&quot;, # Type of resource.
672 &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.
673 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource.
674 &quot;warning&quot;: { # [Output Only] Informational warning message.
675 &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.
676 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
677 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
678 {
679 &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).
680 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
681 },
682 ],
683 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
684 },
685 }</pre>
686</div>
687
688<div class="method">
689 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
690 <pre>Retrieves the next page of results.
691
692Args:
693 previous_request: The request for the previous page. (required)
694 previous_response: The response from the request for the previous page. (required)
695
696Returns:
697 A request object that you can call &#x27;execute()&#x27; on to request the next
698 page. Returns None if there are no more items in the collection.
699 </pre>
700</div>
701
702<div class="method">
703 <code class="details" id="patch">patch(project, region, healthCheck, body=None, requestId=None)</code>
704 <pre>Updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
705
706Args:
707 project: string, Project ID for this request. (required)
708 region: string, Name of the region scoping this request. (required)
709 healthCheck: string, Name of the HealthCheck resource to patch. (required)
710 body: object, The request body.
711 The object takes the form of:
712
713{ # Represents a Health Check resource.
714 #
715 # Google Compute Engine has two Health Check resources:
716 #
717 # * [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
718 #
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700719 # Internal HTTP(S) load balancers must use regional health checks (`compute.v1.regionHealthChecks`).
Bu Sun Kim65020912020-05-20 12:08:20 -0700720 #
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700721 # Traffic Director must use global health checks (`compute.v1.HealthChecks`).
722 #
723 # Internal TCP/UDP load balancers can use either regional or global health checks (`compute.v1.regionHealthChecks` or `compute.v1.HealthChecks`).
724 #
725 # External HTTP(S), TCP proxy, and SSL proxy load balancers as well as managed instance group auto-healing must use global health checks (`compute.v1.HealthChecks`).
726 #
727 # Network load balancers must use legacy HTTP health checks (httpHealthChecks).
728 #
729 # For more information, see Health checks overview.
Bu Sun Kim65020912020-05-20 12:08:20 -0700730 &quot;checkIntervalSec&quot;: 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
731 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in 3339 text format.
732 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700733 &quot;grpcHealthCheck&quot;: {
734 &quot;grpcServiceName&quot;: &quot;A String&quot;, # The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention:
735 # - Empty service_name means the overall status of all services at the backend.
736 # - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service.
737 # The grpc_service_name can only be ASCII.
738 &quot;port&quot;: 42, # The port number for the health check request. Must be specified if port_name and port_specification are not set or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535.
739 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. The port_name should conform to RFC1035.
740 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
741 # USE_FIXED_PORT: The port number in port is used for health checking.
742 # USE_NAMED_PORT: The portName is used for health checking.
743 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
744 #
745 #
746 # If not specified, gRPC health check follows behavior specified in port and portName fields.
747 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700748 &quot;healthyThreshold&quot;: 42, # A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
749 &quot;http2HealthCheck&quot;: {
750 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTP/2 health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
751 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
752 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
753 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
754 # USE_FIXED_PORT: The port number in port is used for health checking.
755 # USE_NAMED_PORT: The portName is used for health checking.
756 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
757 #
758 #
759 # If not specified, HTTP2 health check follows behavior specified in port and portName fields.
760 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
761 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP/2 health check request. The default value is /.
762 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
763 },
764 &quot;httpHealthCheck&quot;: {
765 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTP health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
766 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
767 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
768 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
769 # USE_FIXED_PORT: The port number in port is used for health checking.
770 # USE_NAMED_PORT: The portName is used for health checking.
771 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
772 #
773 #
774 # If not specified, HTTP health check follows behavior specified in port and portName fields.
775 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
776 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP health check request. The default value is /.
777 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
778 },
779 &quot;httpsHealthCheck&quot;: {
780 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTPS health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
781 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
782 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
783 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
784 # USE_FIXED_PORT: The port number in port is used for health checking.
785 # USE_NAMED_PORT: The portName is used for health checking.
786 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
787 #
788 #
789 # If not specified, HTTPS health check follows behavior specified in port and portName fields.
790 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
791 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTPS health check request. The default value is /.
792 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
793 },
794 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
795 &quot;kind&quot;: &quot;compute#healthCheck&quot;, # Type of the resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700796 &quot;logConfig&quot;: { # Configuration of logging on a health check. If logging is enabled, logs will be exported to Stackdriver. # Configure logging on this health check.
797 &quot;enable&quot;: True or False, # Indicates whether or not to export logs. This is false by default, which means no health check logging will be done.
798 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700799 &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.
800 &quot;region&quot;: &quot;A String&quot;, # [Output Only] Region where the health check resides. Not applicable to global health checks.
801 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
802 &quot;sslHealthCheck&quot;: {
803 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
804 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
805 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
806 # USE_FIXED_PORT: The port number in port is used for health checking.
807 # USE_NAMED_PORT: The portName is used for health checking.
808 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
809 #
810 #
811 # If not specified, SSL health check follows behavior specified in port and portName fields.
812 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
813 &quot;request&quot;: &quot;A String&quot;, # The application data to send once the SSL connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
814 &quot;response&quot;: &quot;A String&quot;, # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
815 },
816 &quot;tcpHealthCheck&quot;: {
817 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
818 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
819 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
820 # USE_FIXED_PORT: The port number in port is used for health checking.
821 # USE_NAMED_PORT: The portName is used for health checking.
822 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
823 #
824 #
825 # If not specified, TCP health check follows behavior specified in port and portName fields.
826 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
827 &quot;request&quot;: &quot;A String&quot;, # The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
828 &quot;response&quot;: &quot;A String&quot;, # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
829 },
830 &quot;timeoutSec&quot;: 42, # How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
831 &quot;type&quot;: &quot;A String&quot;, # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
832 &quot;unhealthyThreshold&quot;: 42, # A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
833}
834
835 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.
836
837For 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.
838
839The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
840
841Returns:
842 An object of the form:
843
844 { # Represents an Operation resource.
845 #
846 # Google Compute Engine has three Operation resources:
847 #
848 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
849 #
850 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
851 #
852 # Operations can be global, regional or zonal.
853 # - For global operations, use the `globalOperations` resource.
854 # - For regional operations, use the `regionOperations` resource.
855 # - For zonal operations, use the `zonalOperations` resource.
856 #
857 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
858 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
859 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
860 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
861 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
862 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
863 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
864 {
865 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
866 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
867 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
868 },
869 ],
870 },
871 &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`.
872 &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.
873 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
874 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
875 &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
876 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
877 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
878 &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.
879 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
880 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
881 &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.
882 &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`.
883 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
884 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
885 &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.
886 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
887 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
888 {
889 &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.
890 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
891 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
892 {
893 &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).
894 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
895 },
896 ],
897 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
898 },
899 ],
900 &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.
901 }</pre>
902</div>
903
904<div class="method">
905 <code class="details" id="update">update(project, region, healthCheck, body=None, requestId=None)</code>
906 <pre>Updates a HealthCheck resource in the specified project using the data included in the request.
907
908Args:
909 project: string, Project ID for this request. (required)
910 region: string, Name of the region scoping this request. (required)
911 healthCheck: string, Name of the HealthCheck resource to update. (required)
912 body: object, The request body.
913 The object takes the form of:
914
915{ # Represents a Health Check resource.
916 #
917 # Google Compute Engine has two Health Check resources:
918 #
919 # * [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
920 #
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700921 # Internal HTTP(S) load balancers must use regional health checks (`compute.v1.regionHealthChecks`).
Bu Sun Kim65020912020-05-20 12:08:20 -0700922 #
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700923 # Traffic Director must use global health checks (`compute.v1.HealthChecks`).
924 #
925 # Internal TCP/UDP load balancers can use either regional or global health checks (`compute.v1.regionHealthChecks` or `compute.v1.HealthChecks`).
926 #
927 # External HTTP(S), TCP proxy, and SSL proxy load balancers as well as managed instance group auto-healing must use global health checks (`compute.v1.HealthChecks`).
928 #
929 # Network load balancers must use legacy HTTP health checks (httpHealthChecks).
930 #
931 # For more information, see Health checks overview.
Bu Sun Kim65020912020-05-20 12:08:20 -0700932 &quot;checkIntervalSec&quot;: 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
933 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in 3339 text format.
934 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700935 &quot;grpcHealthCheck&quot;: {
936 &quot;grpcServiceName&quot;: &quot;A String&quot;, # The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention:
937 # - Empty service_name means the overall status of all services at the backend.
938 # - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service.
939 # The grpc_service_name can only be ASCII.
940 &quot;port&quot;: 42, # The port number for the health check request. Must be specified if port_name and port_specification are not set or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535.
941 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. The port_name should conform to RFC1035.
942 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
943 # USE_FIXED_PORT: The port number in port is used for health checking.
944 # USE_NAMED_PORT: The portName is used for health checking.
945 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
946 #
947 #
948 # If not specified, gRPC health check follows behavior specified in port and portName fields.
949 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700950 &quot;healthyThreshold&quot;: 42, # A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
951 &quot;http2HealthCheck&quot;: {
952 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTP/2 health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
953 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
954 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
955 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
956 # USE_FIXED_PORT: The port number in port is used for health checking.
957 # USE_NAMED_PORT: The portName is used for health checking.
958 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
959 #
960 #
961 # If not specified, HTTP2 health check follows behavior specified in port and portName fields.
962 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
963 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP/2 health check request. The default value is /.
964 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
965 },
966 &quot;httpHealthCheck&quot;: {
967 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTP health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
968 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
969 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
970 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
971 # USE_FIXED_PORT: The port number in port is used for health checking.
972 # USE_NAMED_PORT: The portName is used for health checking.
973 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
974 #
975 #
976 # If not specified, HTTP health check follows behavior specified in port and portName fields.
977 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
978 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP health check request. The default value is /.
979 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
980 },
981 &quot;httpsHealthCheck&quot;: {
982 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTPS health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
983 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
984 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
985 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
986 # USE_FIXED_PORT: The port number in port is used for health checking.
987 # USE_NAMED_PORT: The portName is used for health checking.
988 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
989 #
990 #
991 # If not specified, HTTPS health check follows behavior specified in port and portName fields.
992 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
993 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTPS health check request. The default value is /.
994 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
995 },
996 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
997 &quot;kind&quot;: &quot;compute#healthCheck&quot;, # Type of the resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700998 &quot;logConfig&quot;: { # Configuration of logging on a health check. If logging is enabled, logs will be exported to Stackdriver. # Configure logging on this health check.
999 &quot;enable&quot;: True or False, # Indicates whether or not to export logs. This is false by default, which means no health check logging will be done.
1000 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001001 &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.
1002 &quot;region&quot;: &quot;A String&quot;, # [Output Only] Region where the health check resides. Not applicable to global health checks.
1003 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1004 &quot;sslHealthCheck&quot;: {
1005 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
1006 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
1007 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
1008 # USE_FIXED_PORT: The port number in port is used for health checking.
1009 # USE_NAMED_PORT: The portName is used for health checking.
1010 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
1011 #
1012 #
1013 # If not specified, SSL health check follows behavior specified in port and portName fields.
1014 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
1015 &quot;request&quot;: &quot;A String&quot;, # The application data to send once the SSL connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
1016 &quot;response&quot;: &quot;A String&quot;, # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
1017 },
1018 &quot;tcpHealthCheck&quot;: {
1019 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
1020 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
1021 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
1022 # USE_FIXED_PORT: The port number in port is used for health checking.
1023 # USE_NAMED_PORT: The portName is used for health checking.
1024 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
1025 #
1026 #
1027 # If not specified, TCP health check follows behavior specified in port and portName fields.
1028 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
1029 &quot;request&quot;: &quot;A String&quot;, # The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
1030 &quot;response&quot;: &quot;A String&quot;, # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
1031 },
1032 &quot;timeoutSec&quot;: 42, # How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
1033 &quot;type&quot;: &quot;A String&quot;, # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
1034 &quot;unhealthyThreshold&quot;: 42, # A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
1035}
1036
1037 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.
1038
1039For 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.
1040
1041The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1042
1043Returns:
1044 An object of the form:
1045
1046 { # Represents an Operation resource.
1047 #
1048 # Google Compute Engine has three Operation resources:
1049 #
1050 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
1051 #
1052 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
1053 #
1054 # Operations can be global, regional or zonal.
1055 # - For global operations, use the `globalOperations` resource.
1056 # - For regional operations, use the `regionOperations` resource.
1057 # - For zonal operations, use the `zonalOperations` resource.
1058 #
1059 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
1060 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
1061 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1062 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
1063 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1064 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1065 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
1066 {
1067 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1068 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
1069 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1070 },
1071 ],
1072 },
1073 &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`.
1074 &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.
1075 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
1076 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1077 &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
1078 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1079 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
1080 &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.
1081 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
1082 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1083 &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.
1084 &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`.
1085 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
1086 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1087 &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.
1088 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
1089 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1090 {
1091 &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.
1092 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
1093 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
1094 {
1095 &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).
1096 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1097 },
1098 ],
1099 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1100 },
1101 ],
1102 &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.
1103 }</pre>
1104</div>
1105
1106</body></html>