blob: c5bd19767bd27b3ab54eeca9b4095690ab108a6a [file] [log] [blame]
Craig Citro065b5302014-08-14 00:47:23 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="compute_v1.html">Compute Engine API</a> . <a href="compute_v1.backendServices.html">backendServices</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080078 <code><a href="#aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
79<p class="firstline">Retrieves the list of all BackendService resources, regional and global, available to the specified project.</p>
80<p class="toc_element">
81 <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p>
82<p class="firstline">Retrieves the next page of results.</p>
83<p class="toc_element">
Craig Citro065b5302014-08-14 00:47:23 -070084 <code><a href="#delete">delete(project, backendService)</a></code></p>
85<p class="firstline">Deletes the specified BackendService resource.</p>
86<p class="toc_element">
87 <code><a href="#get">get(project, backendService)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070088<p class="firstline">Returns the specified BackendService resource. Get a list of available backend services by making a list() request.</p>
Craig Citro065b5302014-08-14 00:47:23 -070089<p class="toc_element">
90 <code><a href="#getHealth">getHealth(project, backendService, body)</a></code></p>
91<p class="firstline">Gets the most recent health check results for this BackendService.</p>
92<p class="toc_element">
93 <code><a href="#insert">insert(project, body)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080094<p class="firstline">Creates a 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 backend service. Read Restrictions and Guidelines for more information.</p>
Craig Citro065b5302014-08-14 00:47:23 -070095<p class="toc_element">
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -070096 <code><a href="#list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
Craig Citro065b5302014-08-14 00:47:23 -070097<p class="firstline">Retrieves the list of BackendService resources available to the specified project.</p>
98<p class="toc_element">
99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
102 <code><a href="#patch">patch(project, backendService, body)</a></code></p>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700103<p class="firstline">Updates the specified 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>
Craig Citro065b5302014-08-14 00:47:23 -0700104<p class="toc_element">
105 <code><a href="#update">update(project, backendService, body)</a></code></p>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700106<p class="firstline">Updates the specified 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>
Craig Citro065b5302014-08-14 00:47:23 -0700107<h3>Method Details</h3>
108<div class="method">
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800109 <code class="details" id="aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
110 <pre>Retrieves the list of all BackendService resources, regional and global, available to the specified project.
111
112Args:
113 project: string, Name of the project scoping this request. (required)
114 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
115
116You can also sort results in descending order based on the creation timestamp using orderBy="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.
117
118Currently, only sorting by name or creationTimestamp desc is supported.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400119 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800120 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.
121 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.
122
123The 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.
124
125For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
126
127You 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.
128
129To 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.
130
131Returns:
132 An object of the form:
133
134 { # Contains a list of BackendServicesScopedList.
135 "nextPageToken": "A String", # [Output Only] A token used to continue a truncated list request.
136 "items": { # A map of scoped BackendService lists.
137 "a_key": { # Name of the scope containing this set of BackendServices.
138 "warning": { # Informational warning which replaces the list of backend services when the list is empty.
139 "message": "A String", # [Output Only] A human-readable description of the warning code.
140 "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.
141 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
142 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
143 {
144 "value": "A String", # [Output Only] A warning data value corresponding to the key.
145 "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).
146 },
147 ],
148 },
149 "backendServices": [ # List of BackendServices contained in this scope.
150 { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
151 "connectionDraining": { # Message containing connection draining configuration.
152 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
153 },
154 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
155 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
156 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400157 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800158 #
159 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
160 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
161 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
162 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
163 #
164 # When the load balancing scheme is INTERNAL, this field is not used.
165 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
166 "loadBalancingScheme": "A String",
167 "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.
168 #
169 # When the load balancing scheme is INTERNAL, this field is not used.
170 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
171 #
172 # This cannot be used for internal load balancing.
173 "backends": [ # The list of backends that serve this BackendService.
174 { # Message containing information of one individual backend.
175 "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.
176 #
177 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
178 #
179 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
180 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
181 "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].
182 #
183 # This cannot be used for internal load balancing.
184 "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.
185 #
186 # This cannot be used for internal load balancing.
187 "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.
188 #
189 # This cannot be used for internal load balancing.
190 "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].
191 #
192 # This cannot be used for internal load balancing.
193 "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.
194 #
195 # This cannot be used for internal load balancing.
196 "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.
197 #
198 # This cannot be used for internal load balancing.
199 "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).
200 #
201 # This cannot be used for internal load balancing.
202 },
203 ],
204 "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.
205 "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.
206 #
207 # When the load balancing scheme is INTERNAL, this field is not used.
208 "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.
209 #
210 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
211 "A String",
212 ],
213 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
214 #
215 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
216 #
217 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
218 #
219 # When the protocol is UDP, this field is not used.
220 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
221 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
222 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
223 "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.
224 },
225 ],
226 },
227 },
228 "kind": "compute#backendServiceAggregatedList", # Type of resource.
229 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
230 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
231 }</pre>
232</div>
233
234<div class="method">
235 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
236 <pre>Retrieves the next page of results.
237
238Args:
239 previous_request: The request for the previous page. (required)
240 previous_response: The response from the request for the previous page. (required)
241
242Returns:
243 A request object that you can call 'execute()' on to request the next
244 page. Returns None if there are no more items in the collection.
245 </pre>
246</div>
247
248<div class="method">
Craig Citro065b5302014-08-14 00:47:23 -0700249 <code class="details" id="delete">delete(project, backendService)</code>
250 <pre>Deletes the specified BackendService resource.
251
252Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800253 project: string, Project ID for this request. (required)
Craig Citro065b5302014-08-14 00:47:23 -0700254 backendService: string, Name of the BackendService resource to delete. (required)
255
256Returns:
257 An object of the form:
258
Takashi Matsuo06694102015-09-11 13:55:40 -0700259 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800260 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
261 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400262 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800263 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
264 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
265 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
266 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000267 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800268 "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.
269 "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.
Craig Citroe633be12015-03-02 13:40:36 -0800270 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800271 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
272 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000273 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
Craig Citro065b5302014-08-14 00:47:23 -0700274 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800275 "message": "A String", # [Output Only] A human-readable description of the warning code.
276 "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.
277 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
278 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
Craig Citro065b5302014-08-14 00:47:23 -0700279 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000280 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700281 "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).
Craig Citro065b5302014-08-14 00:47:23 -0700282 },
283 ],
284 },
285 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000286 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800287 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
288 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000289 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800290 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000291 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800292 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
Craig Citro065b5302014-08-14 00:47:23 -0700293 {
Craig Citroe633be12015-03-02 13:40:36 -0800294 "message": "A String", # [Output Only] An optional, human-readable error message.
295 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700296 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Craig Citro065b5302014-08-14 00:47:23 -0700297 },
298 ],
299 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800300 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700301 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800302 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700303 }</pre>
304</div>
305
306<div class="method">
307 <code class="details" id="get">get(project, backendService)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700308 <pre>Returns the specified BackendService resource. Get a list of available backend services by making a list() request.
Craig Citro065b5302014-08-14 00:47:23 -0700309
310Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800311 project: string, Project ID for this request. (required)
Craig Citro065b5302014-08-14 00:47:23 -0700312 backendService: string, Name of the BackendService resource to return. (required)
313
314Returns:
315 An object of the form:
316
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800317 { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700318 "connectionDraining": { # Message containing connection draining configuration.
319 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
320 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700321 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800322 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
323 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400324 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700325 #
326 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800327 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700328 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700329 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
330 #
331 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700332 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800333 "loadBalancingScheme": "A String",
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700334 "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.
335 #
336 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800337 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700338 #
339 # This cannot be used for internal load balancing.
Craig Citro065b5302014-08-14 00:47:23 -0700340 "backends": [ # The list of backends that serve this BackendService.
341 { # Message containing information of one individual backend.
Takashi Matsuo06694102015-09-11 13:55:40 -0700342 "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.
343 #
344 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700345 #
346 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800347 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700348 "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].
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700349 #
350 # This cannot be used for internal load balancing.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800351 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700352 #
353 # This cannot be used for internal load balancing.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700354 "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.
355 #
356 # This cannot be used for internal load balancing.
357 "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].
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700358 #
359 # This cannot be used for internal load balancing.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800360 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700361 #
362 # This cannot be used for internal load balancing.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700363 "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.
364 #
365 # This cannot be used for internal load balancing.
366 "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).
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700367 #
368 # This cannot be used for internal load balancing.
Craig Citro065b5302014-08-14 00:47:23 -0700369 },
370 ],
371 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700372 "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.
373 #
374 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800375 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700376 #
377 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
Craig Citro065b5302014-08-14 00:47:23 -0700378 "A String",
379 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700380 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
381 #
382 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
383 #
384 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
385 #
386 # When the protocol is UDP, this field is not used.
Takashi Matsuo06694102015-09-11 13:55:40 -0700387 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800388 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Takashi Matsuo06694102015-09-11 13:55:40 -0700389 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
390 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700391 }</pre>
392</div>
393
394<div class="method">
395 <code class="details" id="getHealth">getHealth(project, backendService, body)</code>
396 <pre>Gets the most recent health check results for this BackendService.
397
398Args:
399 project: string, A parameter (required)
400 backendService: string, Name of the BackendService resource to which the queried instance belongs. (required)
401 body: object, The request body. (required)
402 The object takes the form of:
403
404{
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700405 "group": "A String", # A URI referencing one of the instance groups listed in the backend service.
Craig Citro065b5302014-08-14 00:47:23 -0700406 }
407
408
409Returns:
410 An object of the form:
411
412 {
Takashi Matsuo06694102015-09-11 13:55:40 -0700413 "kind": "compute#backendServiceGroupHealth", # [Output Only] Type of resource. Always compute#backendServiceGroupHealth for the health of backend services.
Craig Citro065b5302014-08-14 00:47:23 -0700414 "healthStatus": [
415 {
416 "instance": "A String", # URL of the instance resource.
417 "healthState": "A String", # Health state of the instance.
418 "ipAddress": "A String", # The IP address represented by this resource.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700419 "port": 42, # The port on the instance.
Craig Citro065b5302014-08-14 00:47:23 -0700420 },
421 ],
422 }</pre>
423</div>
424
425<div class="method">
426 <code class="details" id="insert">insert(project, body)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800427 <pre>Creates a 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 backend service. Read Restrictions and Guidelines for more information.
Craig Citro065b5302014-08-14 00:47:23 -0700428
429Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800430 project: string, Project ID for this request. (required)
Craig Citro065b5302014-08-14 00:47:23 -0700431 body: object, The request body. (required)
432 The object takes the form of:
433
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800434{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700435 "connectionDraining": { # Message containing connection draining configuration.
436 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
437 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700438 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800439 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
440 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400441 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700442 #
443 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800444 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700445 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700446 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
447 #
448 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700449 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800450 "loadBalancingScheme": "A String",
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700451 "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.
452 #
453 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800454 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700455 #
456 # This cannot be used for internal load balancing.
Craig Citro065b5302014-08-14 00:47:23 -0700457 "backends": [ # The list of backends that serve this BackendService.
458 { # Message containing information of one individual backend.
Takashi Matsuo06694102015-09-11 13:55:40 -0700459 "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.
460 #
461 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700462 #
463 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800464 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700465 "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].
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700466 #
467 # This cannot be used for internal load balancing.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800468 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700469 #
470 # This cannot be used for internal load balancing.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700471 "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.
472 #
473 # This cannot be used for internal load balancing.
474 "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].
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700475 #
476 # This cannot be used for internal load balancing.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800477 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700478 #
479 # This cannot be used for internal load balancing.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700480 "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.
481 #
482 # This cannot be used for internal load balancing.
483 "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).
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700484 #
485 # This cannot be used for internal load balancing.
Craig Citro065b5302014-08-14 00:47:23 -0700486 },
487 ],
488 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700489 "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.
490 #
491 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800492 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700493 #
494 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
Craig Citro065b5302014-08-14 00:47:23 -0700495 "A String",
496 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700497 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
498 #
499 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
500 #
501 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
502 #
503 # When the protocol is UDP, this field is not used.
Takashi Matsuo06694102015-09-11 13:55:40 -0700504 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800505 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Takashi Matsuo06694102015-09-11 13:55:40 -0700506 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
507 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700508 }
509
510
511Returns:
512 An object of the form:
513
Takashi Matsuo06694102015-09-11 13:55:40 -0700514 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800515 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
516 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400517 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800518 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
519 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
520 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
521 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000522 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800523 "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.
524 "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.
Craig Citroe633be12015-03-02 13:40:36 -0800525 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800526 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
527 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000528 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
Craig Citro065b5302014-08-14 00:47:23 -0700529 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800530 "message": "A String", # [Output Only] A human-readable description of the warning code.
531 "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.
532 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
533 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
Craig Citro065b5302014-08-14 00:47:23 -0700534 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000535 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700536 "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).
Craig Citro065b5302014-08-14 00:47:23 -0700537 },
538 ],
539 },
540 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000541 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800542 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
543 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000544 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800545 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000546 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800547 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
Craig Citro065b5302014-08-14 00:47:23 -0700548 {
Craig Citroe633be12015-03-02 13:40:36 -0800549 "message": "A String", # [Output Only] An optional, human-readable error message.
550 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700551 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Craig Citro065b5302014-08-14 00:47:23 -0700552 },
553 ],
554 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800555 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700556 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800557 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700558 }</pre>
559</div>
560
561<div class="method">
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700562 <code class="details" id="list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
Craig Citro065b5302014-08-14 00:47:23 -0700563 <pre>Retrieves the list of BackendService resources available to the specified project.
564
565Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800566 project: string, Project ID for this request. (required)
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700567 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
568
569You 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.
570
571Currently, only sorting by name or creationTimestamp desc is supported.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400572 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800573 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.
574 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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700575
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800576The 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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700577
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700578For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800579
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700580You 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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800581
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700582To 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.
Craig Citro065b5302014-08-14 00:47:23 -0700583
584Returns:
585 An object of the form:
586
587 { # Contains a list of BackendService resources.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400588 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
Craig Citroe633be12015-03-02 13:40:36 -0800589 "items": [ # A list of BackendService resources.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800590 { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700591 "connectionDraining": { # Message containing connection draining configuration.
592 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
593 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700594 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800595 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
596 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400597 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700598 #
599 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800600 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700601 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700602 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
603 #
604 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700605 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800606 "loadBalancingScheme": "A String",
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700607 "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.
608 #
609 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800610 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700611 #
612 # This cannot be used for internal load balancing.
Craig Citro065b5302014-08-14 00:47:23 -0700613 "backends": [ # The list of backends that serve this BackendService.
614 { # Message containing information of one individual backend.
Takashi Matsuo06694102015-09-11 13:55:40 -0700615 "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.
616 #
617 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700618 #
619 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800620 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700621 "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].
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700622 #
623 # This cannot be used for internal load balancing.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800624 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700625 #
626 # This cannot be used for internal load balancing.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700627 "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.
628 #
629 # This cannot be used for internal load balancing.
630 "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].
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700631 #
632 # This cannot be used for internal load balancing.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800633 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700634 #
635 # This cannot be used for internal load balancing.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700636 "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.
637 #
638 # This cannot be used for internal load balancing.
639 "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).
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700640 #
641 # This cannot be used for internal load balancing.
Craig Citro065b5302014-08-14 00:47:23 -0700642 },
643 ],
644 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700645 "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.
646 #
647 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800648 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700649 #
650 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
Craig Citro065b5302014-08-14 00:47:23 -0700651 "A String",
652 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700653 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
654 #
655 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
656 #
657 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
658 #
659 # When the protocol is UDP, this field is not used.
Takashi Matsuo06694102015-09-11 13:55:40 -0700660 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800661 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Takashi Matsuo06694102015-09-11 13:55:40 -0700662 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
663 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700664 },
665 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700666 "kind": "compute#backendServiceList", # [Output Only] Type of resource. Always compute#backendServiceList for lists of backend services.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700667 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Takashi Matsuo06694102015-09-11 13:55:40 -0700668 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
Craig Citro065b5302014-08-14 00:47:23 -0700669 }</pre>
670</div>
671
672<div class="method">
673 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
674 <pre>Retrieves the next page of results.
675
676Args:
677 previous_request: The request for the previous page. (required)
678 previous_response: The response from the request for the previous page. (required)
679
680Returns:
681 A request object that you can call 'execute()' on to request the next
682 page. Returns None if there are no more items in the collection.
683 </pre>
684</div>
685
686<div class="method">
687 <code class="details" id="patch">patch(project, backendService, body)</code>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700688 <pre>Updates the specified 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.
Craig Citro065b5302014-08-14 00:47:23 -0700689
690Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800691 project: string, Project ID for this request. (required)
Craig Citro065b5302014-08-14 00:47:23 -0700692 backendService: string, Name of the BackendService resource to update. (required)
693 body: object, The request body. (required)
694 The object takes the form of:
695
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800696{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700697 "connectionDraining": { # Message containing connection draining configuration.
698 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
699 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700700 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800701 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
702 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400703 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700704 #
705 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800706 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700707 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700708 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
709 #
710 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700711 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800712 "loadBalancingScheme": "A String",
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700713 "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.
714 #
715 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800716 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700717 #
718 # This cannot be used for internal load balancing.
Craig Citro065b5302014-08-14 00:47:23 -0700719 "backends": [ # The list of backends that serve this BackendService.
720 { # Message containing information of one individual backend.
Takashi Matsuo06694102015-09-11 13:55:40 -0700721 "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.
722 #
723 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700724 #
725 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800726 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700727 "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].
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700728 #
729 # This cannot be used for internal load balancing.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800730 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700731 #
732 # This cannot be used for internal load balancing.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700733 "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.
734 #
735 # This cannot be used for internal load balancing.
736 "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].
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700737 #
738 # This cannot be used for internal load balancing.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800739 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700740 #
741 # This cannot be used for internal load balancing.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700742 "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.
743 #
744 # This cannot be used for internal load balancing.
745 "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).
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700746 #
747 # This cannot be used for internal load balancing.
Craig Citro065b5302014-08-14 00:47:23 -0700748 },
749 ],
750 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700751 "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.
752 #
753 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800754 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700755 #
756 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
Craig Citro065b5302014-08-14 00:47:23 -0700757 "A String",
758 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700759 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
760 #
761 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
762 #
763 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
764 #
765 # When the protocol is UDP, this field is not used.
Takashi Matsuo06694102015-09-11 13:55:40 -0700766 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800767 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Takashi Matsuo06694102015-09-11 13:55:40 -0700768 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
769 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700770 }
771
772
773Returns:
774 An object of the form:
775
Takashi Matsuo06694102015-09-11 13:55:40 -0700776 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800777 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
778 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400779 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800780 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
781 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
782 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
783 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000784 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800785 "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.
786 "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.
Craig Citroe633be12015-03-02 13:40:36 -0800787 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800788 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
789 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000790 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
Craig Citro065b5302014-08-14 00:47:23 -0700791 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800792 "message": "A String", # [Output Only] A human-readable description of the warning code.
793 "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.
794 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
795 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
Craig Citro065b5302014-08-14 00:47:23 -0700796 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000797 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700798 "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).
Craig Citro065b5302014-08-14 00:47:23 -0700799 },
800 ],
801 },
802 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000803 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800804 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
805 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000806 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800807 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000808 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800809 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
Craig Citro065b5302014-08-14 00:47:23 -0700810 {
Craig Citroe633be12015-03-02 13:40:36 -0800811 "message": "A String", # [Output Only] An optional, human-readable error message.
812 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700813 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Craig Citro065b5302014-08-14 00:47:23 -0700814 },
815 ],
816 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800817 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700818 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800819 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700820 }</pre>
821</div>
822
823<div class="method">
824 <code class="details" id="update">update(project, backendService, body)</code>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700825 <pre>Updates the specified 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.
Craig Citro065b5302014-08-14 00:47:23 -0700826
827Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800828 project: string, Project ID for this request. (required)
Craig Citro065b5302014-08-14 00:47:23 -0700829 backendService: string, Name of the BackendService resource to update. (required)
830 body: object, The request body. (required)
831 The object takes the form of:
832
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800833{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700834 "connectionDraining": { # Message containing connection draining configuration.
835 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
836 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700837 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800838 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
839 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400840 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700841 #
842 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800843 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700844 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700845 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
846 #
847 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700848 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800849 "loadBalancingScheme": "A String",
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700850 "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.
851 #
852 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800853 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700854 #
855 # This cannot be used for internal load balancing.
Craig Citro065b5302014-08-14 00:47:23 -0700856 "backends": [ # The list of backends that serve this BackendService.
857 { # Message containing information of one individual backend.
Takashi Matsuo06694102015-09-11 13:55:40 -0700858 "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.
859 #
860 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700861 #
862 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800863 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700864 "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].
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700865 #
866 # This cannot be used for internal load balancing.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800867 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700868 #
869 # This cannot be used for internal load balancing.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700870 "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.
871 #
872 # This cannot be used for internal load balancing.
873 "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].
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700874 #
875 # This cannot be used for internal load balancing.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800876 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700877 #
878 # This cannot be used for internal load balancing.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700879 "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.
880 #
881 # This cannot be used for internal load balancing.
882 "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).
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700883 #
884 # This cannot be used for internal load balancing.
Craig Citro065b5302014-08-14 00:47:23 -0700885 },
886 ],
887 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700888 "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.
889 #
890 # When the load balancing scheme is INTERNAL, this field is not used.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800891 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700892 #
893 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
Craig Citro065b5302014-08-14 00:47:23 -0700894 "A String",
895 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700896 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
897 #
898 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
899 #
900 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
901 #
902 # When the protocol is UDP, this field is not used.
Takashi Matsuo06694102015-09-11 13:55:40 -0700903 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800904 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Takashi Matsuo06694102015-09-11 13:55:40 -0700905 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
906 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700907 }
908
909
910Returns:
911 An object of the form:
912
Takashi Matsuo06694102015-09-11 13:55:40 -0700913 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800914 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
915 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400916 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800917 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
918 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
919 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
920 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000921 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800922 "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.
923 "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.
Craig Citroe633be12015-03-02 13:40:36 -0800924 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800925 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
926 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000927 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
Craig Citro065b5302014-08-14 00:47:23 -0700928 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800929 "message": "A String", # [Output Only] A human-readable description of the warning code.
930 "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.
931 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
932 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
Craig Citro065b5302014-08-14 00:47:23 -0700933 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000934 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700935 "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).
Craig Citro065b5302014-08-14 00:47:23 -0700936 },
937 ],
938 },
939 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000940 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800941 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
942 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000943 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800944 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000945 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800946 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
Craig Citro065b5302014-08-14 00:47:23 -0700947 {
Craig Citroe633be12015-03-02 13:40:36 -0800948 "message": "A String", # [Output Only] An optional, human-readable error message.
949 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700950 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Craig Citro065b5302014-08-14 00:47:23 -0700951 },
952 ],
953 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800954 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700955 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800956 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700957 }</pre>
958</div>
959
960</body></html>