blob: 042048957cf434c6ba1081520a8c2b689599d717 [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.
160 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
161 }</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.
196 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
197 #
198 # This cannot be used for internal load balancing.
199 "backends": [ # The list of backends that serve this BackendService.
200 { # Message containing information of one individual backend.
201 "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.
202 #
203 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
204 #
205 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
206 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
207 "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].
208 #
209 # This cannot be used for internal load balancing.
210 "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.
211 #
212 # This cannot be used for internal load balancing.
213 "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.
214 #
215 # This cannot be used for internal load balancing.
216 "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].
217 #
218 # This cannot be used for internal load balancing.
219 "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.
220 #
221 # This cannot be used for internal load balancing.
222 "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.
223 #
224 # This cannot be used for internal load balancing.
225 "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).
226 #
227 # This cannot be used for internal load balancing.
228 },
229 ],
230 "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.
231 "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.
232 #
233 # When the load balancing scheme is INTERNAL, this field is not used.
234 "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.
235 #
236 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
237 "A String",
238 ],
239 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
240 #
241 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
242 #
243 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
244 #
245 # When the protocol is UDP, this field is not used.
246 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
247 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
248 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
249 "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.
250 }</pre>
251</div>
252
253<div class="method">
254 <code class="details" id="getHealth">getHealth(project, region, backendService, body)</code>
255 <pre>Gets the most recent health check results for this regional BackendService.
256
257Args:
258 project: string, A parameter (required)
259 region: string, Name of the region scoping this request. (required)
260 backendService: string, Name of the BackendService resource to which the queried instance belongs. (required)
261 body: object, The request body. (required)
262 The object takes the form of:
263
264{
265 "group": "A String", # A URI referencing one of the instance groups listed in the backend service.
266 }
267
268
269Returns:
270 An object of the form:
271
272 {
273 "kind": "compute#backendServiceGroupHealth", # [Output Only] Type of resource. Always compute#backendServiceGroupHealth for the health of backend services.
274 "healthStatus": [
275 {
276 "instance": "A String", # URL of the instance resource.
277 "healthState": "A String", # Health state of the instance.
278 "ipAddress": "A String", # The IP address represented by this resource.
279 "port": 42, # The port on the instance.
280 },
281 ],
282 }</pre>
283</div>
284
285<div class="method">
286 <code class="details" id="insert">insert(project, region, body)</code>
287 <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.
288
289Args:
290 project: string, Project ID for this request. (required)
291 region: string, Name of the region scoping this request. (required)
292 body: object, The request body. (required)
293 The object takes the form of:
294
295{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
296 "connectionDraining": { # Message containing connection draining configuration.
297 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
298 },
299 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
300 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
301 #
302 # Possible values are HTTP, HTTPS, HTTP2, TCP and SSL. The default is HTTP.
303 #
304 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
305 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
306 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
307 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
308 #
309 # When the load balancing scheme is INTERNAL, this field is not used.
310 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
311 "loadBalancingScheme": "A String",
312 "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.
313 #
314 # When the load balancing scheme is INTERNAL, this field is not used.
315 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
316 #
317 # This cannot be used for internal load balancing.
318 "backends": [ # The list of backends that serve this BackendService.
319 { # Message containing information of one individual backend.
320 "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.
321 #
322 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
323 #
324 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
325 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
326 "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].
327 #
328 # This cannot be used for internal load balancing.
329 "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.
330 #
331 # This cannot be used for internal load balancing.
332 "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.
333 #
334 # This cannot be used for internal load balancing.
335 "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].
336 #
337 # This cannot be used for internal load balancing.
338 "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.
339 #
340 # This cannot be used for internal load balancing.
341 "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.
342 #
343 # This cannot be used for internal load balancing.
344 "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).
345 #
346 # This cannot be used for internal load balancing.
347 },
348 ],
349 "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.
350 "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.
351 #
352 # When the load balancing scheme is INTERNAL, this field is not used.
353 "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.
354 #
355 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
356 "A String",
357 ],
358 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
359 #
360 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
361 #
362 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
363 #
364 # When the protocol is UDP, this field is not used.
365 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
366 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
367 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
368 "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.
369 }
370
371
372Returns:
373 An object of the form:
374
375 { # An Operation resource, used to manage asynchronous API requests.
376 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
377 "clientOperationId": "A String", # [Output Only] Reserved for future use.
378 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
379 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
380 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
381 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
382 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
383 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
384 "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.
385 "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.
386 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
387 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
388 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
389 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
390 {
391 "message": "A String", # [Output Only] A human-readable description of the warning code.
392 "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.
393 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
394 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
395 {
396 "value": "A String", # [Output Only] A warning data value corresponding to the key.
397 "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).
398 },
399 ],
400 },
401 ],
402 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
403 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
404 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
405 "name": "A String", # [Output Only] Name of the resource.
406 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
407 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
408 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
409 {
410 "message": "A String", # [Output Only] An optional, human-readable error message.
411 "code": "A String", # [Output Only] The error type identifier for this error.
412 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
413 },
414 ],
415 },
416 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
417 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
418 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
419 }</pre>
420</div>
421
422<div class="method">
423 <code class="details" id="list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
424 <pre>Retrieves the list of regional BackendService resources available to the specified project in the given region.
425
426Args:
427 project: string, Project ID for this request. (required)
428 region: string, Name of the region scoping this request. (required)
429 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
430
431You 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.
432
433Currently, only sorting by name or creationTimestamp desc is supported.
434 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.
435 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.
436 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.
437
438The 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.
439
440For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
441
442You 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.
443
444To 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.
445
446Returns:
447 An object of the form:
448
449 { # Contains a list of BackendService resources.
450 "nextPageToken": "A String", # [Output Only] A token used to continue a truncated list request.
451 "items": [ # A list of BackendService resources.
452 { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
453 "connectionDraining": { # Message containing connection draining configuration.
454 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
455 },
456 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
457 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
458 #
459 # Possible values are HTTP, HTTPS, HTTP2, TCP and SSL. The default is HTTP.
460 #
461 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
462 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
463 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
464 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
465 #
466 # When the load balancing scheme is INTERNAL, this field is not used.
467 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
468 "loadBalancingScheme": "A String",
469 "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.
470 #
471 # When the load balancing scheme is INTERNAL, this field is not used.
472 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
473 #
474 # This cannot be used for internal load balancing.
475 "backends": [ # The list of backends that serve this BackendService.
476 { # Message containing information of one individual backend.
477 "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.
478 #
479 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
480 #
481 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
482 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
483 "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].
484 #
485 # This cannot be used for internal load balancing.
486 "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.
487 #
488 # This cannot be used for internal load balancing.
489 "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.
490 #
491 # This cannot be used for internal load balancing.
492 "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].
493 #
494 # This cannot be used for internal load balancing.
495 "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.
496 #
497 # This cannot be used for internal load balancing.
498 "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.
499 #
500 # This cannot be used for internal load balancing.
501 "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).
502 #
503 # This cannot be used for internal load balancing.
504 },
505 ],
506 "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.
507 "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.
508 #
509 # When the load balancing scheme is INTERNAL, this field is not used.
510 "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.
511 #
512 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
513 "A String",
514 ],
515 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
516 #
517 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
518 #
519 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
520 #
521 # When the protocol is UDP, this field is not used.
522 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
523 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
524 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
525 "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.
526 },
527 ],
528 "kind": "compute#backendServiceList", # [Output Only] Type of resource. Always compute#backendServiceList for lists of backend services.
529 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
530 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
531 }</pre>
532</div>
533
534<div class="method">
535 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
536 <pre>Retrieves the next page of results.
537
538Args:
539 previous_request: The request for the previous page. (required)
540 previous_response: The response from the request for the previous page. (required)
541
542Returns:
543 A request object that you can call 'execute()' on to request the next
544 page. Returns None if there are no more items in the collection.
545 </pre>
546</div>
547
548<div class="method">
549 <code class="details" id="patch">patch(project, region, backendService, body)</code>
550 <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.
551
552Args:
553 project: string, Project ID for this request. (required)
554 region: string, Name of the region scoping this request. (required)
555 backendService: string, Name of the BackendService resource to update. (required)
556 body: object, The request body. (required)
557 The object takes the form of:
558
559{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
560 "connectionDraining": { # Message containing connection draining configuration.
561 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
562 },
563 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
564 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
565 #
566 # Possible values are HTTP, HTTPS, HTTP2, TCP and SSL. The default is HTTP.
567 #
568 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
569 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
570 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
571 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
572 #
573 # When the load balancing scheme is INTERNAL, this field is not used.
574 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
575 "loadBalancingScheme": "A String",
576 "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.
577 #
578 # When the load balancing scheme is INTERNAL, this field is not used.
579 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
580 #
581 # This cannot be used for internal load balancing.
582 "backends": [ # The list of backends that serve this BackendService.
583 { # Message containing information of one individual backend.
584 "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.
585 #
586 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
587 #
588 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
589 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
590 "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].
591 #
592 # This cannot be used for internal load balancing.
593 "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.
594 #
595 # This cannot be used for internal load balancing.
596 "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.
597 #
598 # This cannot be used for internal load balancing.
599 "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].
600 #
601 # This cannot be used for internal load balancing.
602 "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.
603 #
604 # This cannot be used for internal load balancing.
605 "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.
606 #
607 # This cannot be used for internal load balancing.
608 "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).
609 #
610 # This cannot be used for internal load balancing.
611 },
612 ],
613 "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.
614 "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.
615 #
616 # When the load balancing scheme is INTERNAL, this field is not used.
617 "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.
618 #
619 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
620 "A String",
621 ],
622 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
623 #
624 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
625 #
626 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
627 #
628 # When the protocol is UDP, this field is not used.
629 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
630 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
631 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
632 "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.
633 }
634
635
636Returns:
637 An object of the form:
638
639 { # An Operation resource, used to manage asynchronous API requests.
640 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
641 "clientOperationId": "A String", # [Output Only] Reserved for future use.
642 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
643 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
644 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
645 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
646 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
647 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
648 "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.
649 "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.
650 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
651 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
652 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
653 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
654 {
655 "message": "A String", # [Output Only] A human-readable description of the warning code.
656 "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.
657 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
658 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
659 {
660 "value": "A String", # [Output Only] A warning data value corresponding to the key.
661 "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).
662 },
663 ],
664 },
665 ],
666 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
667 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
668 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
669 "name": "A String", # [Output Only] Name of the resource.
670 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
671 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
672 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
673 {
674 "message": "A String", # [Output Only] An optional, human-readable error message.
675 "code": "A String", # [Output Only] The error type identifier for this error.
676 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
677 },
678 ],
679 },
680 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
681 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
682 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
683 }</pre>
684</div>
685
686<div class="method">
687 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body)</code>
688 <pre>Returns permissions that a caller has on the specified resource.
689
690Args:
691 project: string, Project ID for this request. (required)
692 region: string, The name of the region for this request. (required)
693 resource: string, Name of the resource for this request. (required)
694 body: object, The request body. (required)
695 The object takes the form of:
696
697{
698 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed.
699 "A String",
700 ],
701 }
702
703
704Returns:
705 An object of the form:
706
707 {
708 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
709 "A String",
710 ],
711 }</pre>
712</div>
713
714<div class="method">
715 <code class="details" id="update">update(project, region, backendService, body)</code>
716 <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.
717
718Args:
719 project: string, Project ID for this request. (required)
720 region: string, Name of the region scoping this request. (required)
721 backendService: string, Name of the BackendService resource to update. (required)
722 body: object, The request body. (required)
723 The object takes the form of:
724
725{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
726 "connectionDraining": { # Message containing connection draining configuration.
727 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
728 },
729 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
730 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
731 #
732 # Possible values are HTTP, HTTPS, HTTP2, TCP and SSL. The default is HTTP.
733 #
734 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
735 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
736 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
737 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
738 #
739 # When the load balancing scheme is INTERNAL, this field is not used.
740 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
741 "loadBalancingScheme": "A String",
742 "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.
743 #
744 # When the load balancing scheme is INTERNAL, this field is not used.
745 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
746 #
747 # This cannot be used for internal load balancing.
748 "backends": [ # The list of backends that serve this BackendService.
749 { # Message containing information of one individual backend.
750 "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.
751 #
752 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
753 #
754 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
755 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
756 "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].
757 #
758 # This cannot be used for internal load balancing.
759 "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.
760 #
761 # This cannot be used for internal load balancing.
762 "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.
763 #
764 # This cannot be used for internal load balancing.
765 "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].
766 #
767 # This cannot be used for internal load balancing.
768 "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.
769 #
770 # This cannot be used for internal load balancing.
771 "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.
772 #
773 # This cannot be used for internal load balancing.
774 "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).
775 #
776 # This cannot be used for internal load balancing.
777 },
778 ],
779 "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.
780 "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.
781 #
782 # When the load balancing scheme is INTERNAL, this field is not used.
783 "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.
784 #
785 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
786 "A String",
787 ],
788 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
789 #
790 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
791 #
792 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
793 #
794 # When the protocol is UDP, this field is not used.
795 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
796 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
797 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
798 "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.
799 }
800
801
802Returns:
803 An object of the form:
804
805 { # An Operation resource, used to manage asynchronous API requests.
806 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
807 "clientOperationId": "A String", # [Output Only] Reserved for future use.
808 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
809 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
810 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
811 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
812 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
813 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
814 "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.
815 "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.
816 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
817 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
818 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
819 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
820 {
821 "message": "A String", # [Output Only] A human-readable description of the warning code.
822 "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.
823 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
824 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
825 {
826 "value": "A String", # [Output Only] A warning data value corresponding to the key.
827 "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).
828 },
829 ],
830 },
831 ],
832 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
833 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
834 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
835 "name": "A String", # [Output Only] Name of the resource.
836 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
837 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
838 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
839 {
840 "message": "A String", # [Output Only] An optional, human-readable error message.
841 "code": "A String", # [Output Only] The error type identifier for this error.
842 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
843 },
844 ],
845 },
846 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
847 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
848 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
849 }</pre>
850</div>
851
852</body></html>