blob: c3ad5ee08b798ab5c3a569575a3fc0a26066f420 [file] [log] [blame]
Sai Cheemalapatidf613972016-10-21 13:59:49 -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_beta.html">Compute Engine API</a> . <a href="compute_beta.regionBackendServices.html">regionBackendServices</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#delete">delete(project, region, backendService)</a></code></p>
79<p class="firstline">Deletes the specified regional BackendService resource.</p>
80<p class="toc_element">
81 <code><a href="#get">get(project, region, backendService)</a></code></p>
82<p class="firstline">Returns the specified regional BackendService resource.</p>
83<p class="toc_element">
84 <code><a href="#getHealth">getHealth(project, region, backendService, body)</a></code></p>
85<p class="firstline">Gets the most recent health check results for this regional BackendService.</p>
86<p class="toc_element">
87 <code><a href="#insert">insert(project, region, body)</a></code></p>
88<p class="firstline">Creates a regional BackendService resource in the specified project using the data included in the request. There are several restrictions and guidelines to keep in mind when creating a regional backend service. Read Restrictions and Guidelines for more information.</p>
89<p class="toc_element">
90 <code><a href="#list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
91<p class="firstline">Retrieves the list of regional BackendService resources available to the specified project in the given region.</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, backendService, body)</a></code></p>
97<p class="firstline">Updates the specified regional BackendService resource with the data included in the request. There are several restrictions and guidelines to keep in mind when updating a backend service. Read Restrictions and Guidelines for more information. This method supports patch semantics.</p>
98<p class="toc_element">
99 <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body)</a></code></p>
100<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
101<p class="toc_element">
102 <code><a href="#update">update(project, region, backendService, body)</a></code></p>
103<p class="firstline">Updates the specified regional BackendService resource with the data included in the request. There are several restrictions and guidelines to keep in mind when updating a backend service. Read Restrictions and Guidelines for more information.</p>
104<h3>Method Details</h3>
105<div class="method">
106 <code class="details" id="delete">delete(project, region, backendService)</code>
107 <pre>Deletes the specified regional BackendService resource.
108
109Args:
110 project: string, Project ID for this request. (required)
111 region: string, Name of the region scoping this request. (required)
112 backendService: string, Name of the BackendService resource to delete. (required)
113
114Returns:
115 An object of the form:
116
117 { # An Operation resource, used to manage asynchronous API requests.
118 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
119 "clientOperationId": "A String", # [Output Only] Reserved for future use.
120 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
121 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
122 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
123 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
124 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
125 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
126 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
127 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
128 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
129 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
130 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
131 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
132 {
133 "message": "A String", # [Output Only] A human-readable description of the warning code.
134 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
135 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
136 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
137 {
138 "value": "A String", # [Output Only] A warning data value corresponding to the key.
139 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
140 },
141 ],
142 },
143 ],
144 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
145 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
146 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
147 "name": "A String", # [Output Only] Name of the resource.
148 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
149 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
150 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
151 {
152 "message": "A String", # [Output Only] An optional, human-readable error message.
153 "code": "A String", # [Output Only] The error type identifier for this error.
154 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
155 },
156 ],
157 },
158 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
159 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800160 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700161 }</pre>
162</div>
163
164<div class="method">
165 <code class="details" id="get">get(project, region, backendService)</code>
166 <pre>Returns the specified regional BackendService resource.
167
168Args:
169 project: string, Project ID for this request. (required)
170 region: string, Name of the region scoping this request. (required)
171 backendService: string, Name of the BackendService resource to return. (required)
172
173Returns:
174 An object of the form:
175
176 { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
177 "connectionDraining": { # Message containing connection draining configuration.
178 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
179 },
180 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
181 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
182 #
183 # Possible values are HTTP, HTTPS, HTTP2, TCP and SSL. The default is HTTP.
184 #
185 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
186 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
187 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
188 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
189 #
190 # When the load balancing scheme is INTERNAL, this field is not used.
191 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
192 "loadBalancingScheme": "A String",
193 "affinityCookieTtlSec": 42, # Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value for TTL is one day.
194 #
195 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800196 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700197 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
198 #
199 # This cannot be used for internal load balancing.
200 "backends": [ # The list of backends that serve this BackendService.
201 { # Message containing information of one individual backend.
202 "group": "A String", # The fully-qualified URL of a zonal Instance Group resource. This instance group defines the list of instances that serve traffic. Member virtual machine instances from each instance group must live in the same zone as the instance group itself. No two backends in a backend service are allowed to use same Instance Group resource.
203 #
204 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
205 #
206 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
207 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
208 "maxUtilization": 3.14, # Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0.0, 1.0].
209 #
210 # This cannot be used for internal load balancing.
211 "maxRatePerInstance": 3.14, # The max requests per second (RPS) that a single backend instance can handle.This is used to calculate the capacity of the group. Can be used in either balancing mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
212 #
213 # This cannot be used for internal load balancing.
214 "maxConnectionsPerInstance": 42, # The max number of simultaneous connections that a single backend instance can handle. This is used to calculate the capacity of the group. Can be used in either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
215 #
216 # This cannot be used for internal load balancing.
217 "capacityScaler": 3.14, # A multiplier applied to the group's maximum servicing capacity (based on UTILIZATION, RATE or CONNECTION). Default value is 1, which means the group will serve up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available Capacity. Valid range is [0.0,1.0].
218 #
219 # This cannot be used for internal load balancing.
220 "maxRate": 42, # The max requests per second (RPS) of the group. Can be used with either RATE or UTILIZATION balancing modes, but required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
221 #
222 # This cannot be used for internal load balancing.
223 "maxConnections": 42, # The max number of simultaneous connections for the group. Can be used with either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
224 #
225 # This cannot be used for internal load balancing.
226 "balancingMode": "A String", # Specifies the balancing mode for this backend. For global HTTP(S) or TCP/SSL load balancing, the default is UTILIZATION. Valid values are UTILIZATION, RATE (for HTTP(S)) and CONNECTION (for TCP/SSL).
227 #
228 # This cannot be used for internal load balancing.
229 },
230 ],
231 "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a BackendService. An up-to-date fingerprint must be provided in order to update the BackendService.
232 "portName": "A String", # Name of backend port. The same name should appear in the instance groups referenced by this service. Required when the load balancing scheme is EXTERNAL.
233 #
234 # When the load balancing scheme is INTERNAL, this field is not used.
235 "healthChecks": [ # The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this BackendService. Currently at most one health check can be specified, and a health check is required.
236 #
237 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
238 "A String",
239 ],
240 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
241 #
242 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
243 #
244 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
245 #
246 # When the protocol is UDP, this field is not used.
247 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800248 "iap": { # Identity-Aware Proxy (Cloud Gatekeeper)
249 "oauth2ClientId": "A String",
250 "enabled": True or False,
251 "oauth2ClientSecret": "A String",
252 "oauth2ClientSecretSha256": "A String",
253 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700254 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
255 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
256 }</pre>
257</div>
258
259<div class="method">
260 <code class="details" id="getHealth">getHealth(project, region, backendService, body)</code>
261 <pre>Gets the most recent health check results for this regional BackendService.
262
263Args:
264 project: string, A parameter (required)
265 region: string, Name of the region scoping this request. (required)
266 backendService: string, Name of the BackendService resource to which the queried instance belongs. (required)
267 body: object, The request body. (required)
268 The object takes the form of:
269
270{
271 "group": "A String", # A URI referencing one of the instance groups listed in the backend service.
272 }
273
274
275Returns:
276 An object of the form:
277
278 {
279 "kind": "compute#backendServiceGroupHealth", # [Output Only] Type of resource. Always compute#backendServiceGroupHealth for the health of backend services.
280 "healthStatus": [
281 {
282 "instance": "A String", # URL of the instance resource.
283 "healthState": "A String", # Health state of the instance.
284 "ipAddress": "A String", # The IP address represented by this resource.
285 "port": 42, # The port on the instance.
286 },
287 ],
288 }</pre>
289</div>
290
291<div class="method">
292 <code class="details" id="insert">insert(project, region, body)</code>
293 <pre>Creates a regional BackendService resource in the specified project using the data included in the request. There are several restrictions and guidelines to keep in mind when creating a regional backend service. Read Restrictions and Guidelines for more information.
294
295Args:
296 project: string, Project ID for this request. (required)
297 region: string, Name of the region scoping this request. (required)
298 body: object, The request body. (required)
299 The object takes the form of:
300
301{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
302 "connectionDraining": { # Message containing connection draining configuration.
303 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
304 },
305 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
306 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
307 #
308 # Possible values are HTTP, HTTPS, HTTP2, TCP and SSL. The default is HTTP.
309 #
310 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
311 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
312 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
313 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
314 #
315 # When the load balancing scheme is INTERNAL, this field is not used.
316 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
317 "loadBalancingScheme": "A String",
318 "affinityCookieTtlSec": 42, # Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value for TTL is one day.
319 #
320 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800321 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700322 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
323 #
324 # This cannot be used for internal load balancing.
325 "backends": [ # The list of backends that serve this BackendService.
326 { # Message containing information of one individual backend.
327 "group": "A String", # The fully-qualified URL of a zonal Instance Group resource. This instance group defines the list of instances that serve traffic. Member virtual machine instances from each instance group must live in the same zone as the instance group itself. No two backends in a backend service are allowed to use same Instance Group resource.
328 #
329 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
330 #
331 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
332 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
333 "maxUtilization": 3.14, # Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0.0, 1.0].
334 #
335 # This cannot be used for internal load balancing.
336 "maxRatePerInstance": 3.14, # The max requests per second (RPS) that a single backend instance can handle.This is used to calculate the capacity of the group. Can be used in either balancing mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
337 #
338 # This cannot be used for internal load balancing.
339 "maxConnectionsPerInstance": 42, # The max number of simultaneous connections that a single backend instance can handle. This is used to calculate the capacity of the group. Can be used in either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
340 #
341 # This cannot be used for internal load balancing.
342 "capacityScaler": 3.14, # A multiplier applied to the group's maximum servicing capacity (based on UTILIZATION, RATE or CONNECTION). Default value is 1, which means the group will serve up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available Capacity. Valid range is [0.0,1.0].
343 #
344 # This cannot be used for internal load balancing.
345 "maxRate": 42, # The max requests per second (RPS) of the group. Can be used with either RATE or UTILIZATION balancing modes, but required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
346 #
347 # This cannot be used for internal load balancing.
348 "maxConnections": 42, # The max number of simultaneous connections for the group. Can be used with either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
349 #
350 # This cannot be used for internal load balancing.
351 "balancingMode": "A String", # Specifies the balancing mode for this backend. For global HTTP(S) or TCP/SSL load balancing, the default is UTILIZATION. Valid values are UTILIZATION, RATE (for HTTP(S)) and CONNECTION (for TCP/SSL).
352 #
353 # This cannot be used for internal load balancing.
354 },
355 ],
356 "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a BackendService. An up-to-date fingerprint must be provided in order to update the BackendService.
357 "portName": "A String", # Name of backend port. The same name should appear in the instance groups referenced by this service. Required when the load balancing scheme is EXTERNAL.
358 #
359 # When the load balancing scheme is INTERNAL, this field is not used.
360 "healthChecks": [ # The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this BackendService. Currently at most one health check can be specified, and a health check is required.
361 #
362 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
363 "A String",
364 ],
365 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
366 #
367 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
368 #
369 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
370 #
371 # When the protocol is UDP, this field is not used.
372 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800373 "iap": { # Identity-Aware Proxy (Cloud Gatekeeper)
374 "oauth2ClientId": "A String",
375 "enabled": True or False,
376 "oauth2ClientSecret": "A String",
377 "oauth2ClientSecretSha256": "A String",
378 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700379 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
380 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
381 }
382
383
384Returns:
385 An object of the form:
386
387 { # An Operation resource, used to manage asynchronous API requests.
388 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
389 "clientOperationId": "A String", # [Output Only] Reserved for future use.
390 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
391 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
392 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
393 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
394 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
395 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
396 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
397 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
398 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
399 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
400 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
401 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
402 {
403 "message": "A String", # [Output Only] A human-readable description of the warning code.
404 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
405 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
406 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
407 {
408 "value": "A String", # [Output Only] A warning data value corresponding to the key.
409 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
410 },
411 ],
412 },
413 ],
414 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
415 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
416 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
417 "name": "A String", # [Output Only] Name of the resource.
418 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
419 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
420 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
421 {
422 "message": "A String", # [Output Only] An optional, human-readable error message.
423 "code": "A String", # [Output Only] The error type identifier for this error.
424 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
425 },
426 ],
427 },
428 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
429 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800430 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700431 }</pre>
432</div>
433
434<div class="method">
435 <code class="details" id="list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
436 <pre>Retrieves the list of regional BackendService resources available to the specified project in the given region.
437
438Args:
439 project: string, Project ID for this request. (required)
440 region: string, Name of the region scoping this request. (required)
441 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
442
443You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
444
445Currently, only sorting by name or creationTimestamp desc is supported.
446 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.
447 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.
448 filter: string, Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
449
450The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
451
452For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
453
454You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values.
455
456To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
457
458Returns:
459 An object of the form:
460
461 { # Contains a list of BackendService resources.
462 "nextPageToken": "A String", # [Output Only] A token used to continue a truncated list request.
463 "items": [ # A list of BackendService resources.
464 { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
465 "connectionDraining": { # Message containing connection draining configuration.
466 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
467 },
468 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
469 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
470 #
471 # Possible values are HTTP, HTTPS, HTTP2, TCP and SSL. The default is HTTP.
472 #
473 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
474 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
475 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
476 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
477 #
478 # When the load balancing scheme is INTERNAL, this field is not used.
479 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
480 "loadBalancingScheme": "A String",
481 "affinityCookieTtlSec": 42, # Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value for TTL is one day.
482 #
483 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800484 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700485 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
486 #
487 # This cannot be used for internal load balancing.
488 "backends": [ # The list of backends that serve this BackendService.
489 { # Message containing information of one individual backend.
490 "group": "A String", # The fully-qualified URL of a zonal Instance Group resource. This instance group defines the list of instances that serve traffic. Member virtual machine instances from each instance group must live in the same zone as the instance group itself. No two backends in a backend service are allowed to use same Instance Group resource.
491 #
492 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
493 #
494 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
495 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
496 "maxUtilization": 3.14, # Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0.0, 1.0].
497 #
498 # This cannot be used for internal load balancing.
499 "maxRatePerInstance": 3.14, # The max requests per second (RPS) that a single backend instance can handle.This is used to calculate the capacity of the group. Can be used in either balancing mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
500 #
501 # This cannot be used for internal load balancing.
502 "maxConnectionsPerInstance": 42, # The max number of simultaneous connections that a single backend instance can handle. This is used to calculate the capacity of the group. Can be used in either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
503 #
504 # This cannot be used for internal load balancing.
505 "capacityScaler": 3.14, # A multiplier applied to the group's maximum servicing capacity (based on UTILIZATION, RATE or CONNECTION). Default value is 1, which means the group will serve up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available Capacity. Valid range is [0.0,1.0].
506 #
507 # This cannot be used for internal load balancing.
508 "maxRate": 42, # The max requests per second (RPS) of the group. Can be used with either RATE or UTILIZATION balancing modes, but required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
509 #
510 # This cannot be used for internal load balancing.
511 "maxConnections": 42, # The max number of simultaneous connections for the group. Can be used with either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
512 #
513 # This cannot be used for internal load balancing.
514 "balancingMode": "A String", # Specifies the balancing mode for this backend. For global HTTP(S) or TCP/SSL load balancing, the default is UTILIZATION. Valid values are UTILIZATION, RATE (for HTTP(S)) and CONNECTION (for TCP/SSL).
515 #
516 # This cannot be used for internal load balancing.
517 },
518 ],
519 "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a BackendService. An up-to-date fingerprint must be provided in order to update the BackendService.
520 "portName": "A String", # Name of backend port. The same name should appear in the instance groups referenced by this service. Required when the load balancing scheme is EXTERNAL.
521 #
522 # When the load balancing scheme is INTERNAL, this field is not used.
523 "healthChecks": [ # The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this BackendService. Currently at most one health check can be specified, and a health check is required.
524 #
525 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
526 "A String",
527 ],
528 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
529 #
530 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
531 #
532 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
533 #
534 # When the protocol is UDP, this field is not used.
535 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800536 "iap": { # Identity-Aware Proxy (Cloud Gatekeeper)
537 "oauth2ClientId": "A String",
538 "enabled": True or False,
539 "oauth2ClientSecret": "A String",
540 "oauth2ClientSecretSha256": "A String",
541 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700542 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
543 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
544 },
545 ],
546 "kind": "compute#backendServiceList", # [Output Only] Type of resource. Always compute#backendServiceList for lists of backend services.
547 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
548 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
549 }</pre>
550</div>
551
552<div class="method">
553 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
554 <pre>Retrieves the next page of results.
555
556Args:
557 previous_request: The request for the previous page. (required)
558 previous_response: The response from the request for the previous page. (required)
559
560Returns:
561 A request object that you can call 'execute()' on to request the next
562 page. Returns None if there are no more items in the collection.
563 </pre>
564</div>
565
566<div class="method">
567 <code class="details" id="patch">patch(project, region, backendService, body)</code>
568 <pre>Updates the specified regional BackendService resource with the data included in the request. There are several restrictions and guidelines to keep in mind when updating a backend service. Read Restrictions and Guidelines for more information. This method supports patch semantics.
569
570Args:
571 project: string, Project ID for this request. (required)
572 region: string, Name of the region scoping this request. (required)
573 backendService: string, Name of the BackendService resource to update. (required)
574 body: object, The request body. (required)
575 The object takes the form of:
576
577{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
578 "connectionDraining": { # Message containing connection draining configuration.
579 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
580 },
581 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
582 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
583 #
584 # Possible values are HTTP, HTTPS, HTTP2, TCP and SSL. The default is HTTP.
585 #
586 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
587 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
588 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
589 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
590 #
591 # When the load balancing scheme is INTERNAL, this field is not used.
592 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
593 "loadBalancingScheme": "A String",
594 "affinityCookieTtlSec": 42, # Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value for TTL is one day.
595 #
596 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800597 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700598 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
599 #
600 # This cannot be used for internal load balancing.
601 "backends": [ # The list of backends that serve this BackendService.
602 { # Message containing information of one individual backend.
603 "group": "A String", # The fully-qualified URL of a zonal Instance Group resource. This instance group defines the list of instances that serve traffic. Member virtual machine instances from each instance group must live in the same zone as the instance group itself. No two backends in a backend service are allowed to use same Instance Group resource.
604 #
605 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
606 #
607 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
608 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
609 "maxUtilization": 3.14, # Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0.0, 1.0].
610 #
611 # This cannot be used for internal load balancing.
612 "maxRatePerInstance": 3.14, # The max requests per second (RPS) that a single backend instance can handle.This is used to calculate the capacity of the group. Can be used in either balancing mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
613 #
614 # This cannot be used for internal load balancing.
615 "maxConnectionsPerInstance": 42, # The max number of simultaneous connections that a single backend instance can handle. This is used to calculate the capacity of the group. Can be used in either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
616 #
617 # This cannot be used for internal load balancing.
618 "capacityScaler": 3.14, # A multiplier applied to the group's maximum servicing capacity (based on UTILIZATION, RATE or CONNECTION). Default value is 1, which means the group will serve up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available Capacity. Valid range is [0.0,1.0].
619 #
620 # This cannot be used for internal load balancing.
621 "maxRate": 42, # The max requests per second (RPS) of the group. Can be used with either RATE or UTILIZATION balancing modes, but required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
622 #
623 # This cannot be used for internal load balancing.
624 "maxConnections": 42, # The max number of simultaneous connections for the group. Can be used with either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
625 #
626 # This cannot be used for internal load balancing.
627 "balancingMode": "A String", # Specifies the balancing mode for this backend. For global HTTP(S) or TCP/SSL load balancing, the default is UTILIZATION. Valid values are UTILIZATION, RATE (for HTTP(S)) and CONNECTION (for TCP/SSL).
628 #
629 # This cannot be used for internal load balancing.
630 },
631 ],
632 "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a BackendService. An up-to-date fingerprint must be provided in order to update the BackendService.
633 "portName": "A String", # Name of backend port. The same name should appear in the instance groups referenced by this service. Required when the load balancing scheme is EXTERNAL.
634 #
635 # When the load balancing scheme is INTERNAL, this field is not used.
636 "healthChecks": [ # The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this BackendService. Currently at most one health check can be specified, and a health check is required.
637 #
638 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
639 "A String",
640 ],
641 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
642 #
643 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
644 #
645 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
646 #
647 # When the protocol is UDP, this field is not used.
648 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800649 "iap": { # Identity-Aware Proxy (Cloud Gatekeeper)
650 "oauth2ClientId": "A String",
651 "enabled": True or False,
652 "oauth2ClientSecret": "A String",
653 "oauth2ClientSecretSha256": "A String",
654 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700655 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
656 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
657 }
658
659
660Returns:
661 An object of the form:
662
663 { # An Operation resource, used to manage asynchronous API requests.
664 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
665 "clientOperationId": "A String", # [Output Only] Reserved for future use.
666 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
667 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
668 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
669 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
670 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
671 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
672 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
673 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
674 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
675 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
676 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
677 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
678 {
679 "message": "A String", # [Output Only] A human-readable description of the warning code.
680 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
681 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
682 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
683 {
684 "value": "A String", # [Output Only] A warning data value corresponding to the key.
685 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
686 },
687 ],
688 },
689 ],
690 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
691 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
692 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
693 "name": "A String", # [Output Only] Name of the resource.
694 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
695 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
696 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
697 {
698 "message": "A String", # [Output Only] An optional, human-readable error message.
699 "code": "A String", # [Output Only] The error type identifier for this error.
700 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
701 },
702 ],
703 },
704 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
705 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800706 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700707 }</pre>
708</div>
709
710<div class="method">
711 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body)</code>
712 <pre>Returns permissions that a caller has on the specified resource.
713
714Args:
715 project: string, Project ID for this request. (required)
716 region: string, The name of the region for this request. (required)
717 resource: string, Name of the resource for this request. (required)
718 body: object, The request body. (required)
719 The object takes the form of:
720
721{
722 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed.
723 "A String",
724 ],
725 }
726
727
728Returns:
729 An object of the form:
730
731 {
732 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
733 "A String",
734 ],
735 }</pre>
736</div>
737
738<div class="method">
739 <code class="details" id="update">update(project, region, backendService, body)</code>
740 <pre>Updates the specified regional BackendService resource with the data included in the request. There are several restrictions and guidelines to keep in mind when updating a backend service. Read Restrictions and Guidelines for more information.
741
742Args:
743 project: string, Project ID for this request. (required)
744 region: string, Name of the region scoping this request. (required)
745 backendService: string, Name of the BackendService resource to update. (required)
746 body: object, The request body. (required)
747 The object takes the form of:
748
749{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
750 "connectionDraining": { # Message containing connection draining configuration.
751 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
752 },
753 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
754 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
755 #
756 # Possible values are HTTP, HTTPS, HTTP2, TCP and SSL. The default is HTTP.
757 #
758 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
759 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
760 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
761 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
762 #
763 # When the load balancing scheme is INTERNAL, this field is not used.
764 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
765 "loadBalancingScheme": "A String",
766 "affinityCookieTtlSec": 42, # Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value for TTL is one day.
767 #
768 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800769 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700770 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
771 #
772 # This cannot be used for internal load balancing.
773 "backends": [ # The list of backends that serve this BackendService.
774 { # Message containing information of one individual backend.
775 "group": "A String", # The fully-qualified URL of a zonal Instance Group resource. This instance group defines the list of instances that serve traffic. Member virtual machine instances from each instance group must live in the same zone as the instance group itself. No two backends in a backend service are allowed to use same Instance Group resource.
776 #
777 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
778 #
779 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
780 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
781 "maxUtilization": 3.14, # Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0.0, 1.0].
782 #
783 # This cannot be used for internal load balancing.
784 "maxRatePerInstance": 3.14, # The max requests per second (RPS) that a single backend instance can handle.This is used to calculate the capacity of the group. Can be used in either balancing mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
785 #
786 # This cannot be used for internal load balancing.
787 "maxConnectionsPerInstance": 42, # The max number of simultaneous connections that a single backend instance can handle. This is used to calculate the capacity of the group. Can be used in either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
788 #
789 # This cannot be used for internal load balancing.
790 "capacityScaler": 3.14, # A multiplier applied to the group's maximum servicing capacity (based on UTILIZATION, RATE or CONNECTION). Default value is 1, which means the group will serve up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available Capacity. Valid range is [0.0,1.0].
791 #
792 # This cannot be used for internal load balancing.
793 "maxRate": 42, # The max requests per second (RPS) of the group. Can be used with either RATE or UTILIZATION balancing modes, but required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
794 #
795 # This cannot be used for internal load balancing.
796 "maxConnections": 42, # The max number of simultaneous connections for the group. Can be used with either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
797 #
798 # This cannot be used for internal load balancing.
799 "balancingMode": "A String", # Specifies the balancing mode for this backend. For global HTTP(S) or TCP/SSL load balancing, the default is UTILIZATION. Valid values are UTILIZATION, RATE (for HTTP(S)) and CONNECTION (for TCP/SSL).
800 #
801 # This cannot be used for internal load balancing.
802 },
803 ],
804 "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a BackendService. An up-to-date fingerprint must be provided in order to update the BackendService.
805 "portName": "A String", # Name of backend port. The same name should appear in the instance groups referenced by this service. Required when the load balancing scheme is EXTERNAL.
806 #
807 # When the load balancing scheme is INTERNAL, this field is not used.
808 "healthChecks": [ # The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this BackendService. Currently at most one health check can be specified, and a health check is required.
809 #
810 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
811 "A String",
812 ],
813 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
814 #
815 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
816 #
817 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
818 #
819 # When the protocol is UDP, this field is not used.
820 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800821 "iap": { # Identity-Aware Proxy (Cloud Gatekeeper)
822 "oauth2ClientId": "A String",
823 "enabled": True or False,
824 "oauth2ClientSecret": "A String",
825 "oauth2ClientSecretSha256": "A String",
826 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700827 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
828 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
829 }
830
831
832Returns:
833 An object of the form:
834
835 { # An Operation resource, used to manage asynchronous API requests.
836 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
837 "clientOperationId": "A String", # [Output Only] Reserved for future use.
838 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
839 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
840 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
841 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
842 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
843 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
844 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
845 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
846 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
847 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
848 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
849 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
850 {
851 "message": "A String", # [Output Only] A human-readable description of the warning code.
852 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
853 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
854 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
855 {
856 "value": "A String", # [Output Only] A warning data value corresponding to the key.
857 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
858 },
859 ],
860 },
861 ],
862 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
863 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
864 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
865 "name": "A String", # [Output Only] Name of the resource.
866 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
867 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
868 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
869 {
870 "message": "A String", # [Output Only] An optional, human-readable error message.
871 "code": "A String", # [Output Only] The error type identifier for this error.
872 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
873 },
874 ],
875 },
876 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
877 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800878 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700879 }</pre>
880</div>
881
882</body></html>