blob: 3065a1664f130fe196964de0e127292d88615370 [file] [log] [blame]
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="compute_alpha.html">Compute Engine API</a> . <a href="compute_alpha.backendServices.html">backendServices</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040078 <code><a href="#addSignedUrlKey">addSignedUrlKey(project, backendService, body, requestId=None)</a></code></p>
79<p class="firstline">Adds the given Signed URL Key to the specified backend service.</p>
80<p class="toc_element">
Sai Cheemalapatidf613972016-10-21 13:59:49 -070081 <code><a href="#aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
82<p class="firstline">Retrieves the list of all BackendService resources, regional and global, available to the specified project.</p>
83<p class="toc_element">
84 <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p>
85<p class="firstline">Retrieves the next page of results.</p>
86<p class="toc_element">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040087 <code><a href="#delete">delete(project, backendService, requestId=None)</a></code></p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070088<p class="firstline">Deletes the specified BackendService resource.</p>
89<p class="toc_element">
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040090 <code><a href="#deleteSignedUrlKey">deleteSignedUrlKey(project, backendService, keyName, requestId=None)</a></code></p>
91<p class="firstline">Deletes the given Signed URL Key from the specified backend service.</p>
92<p class="toc_element">
Sai Cheemalapatidf613972016-10-21 13:59:49 -070093 <code><a href="#get">get(project, backendService)</a></code></p>
94<p class="firstline">Returns the specified BackendService resource. Get a list of available backend services by making a list() request.</p>
95<p class="toc_element">
96 <code><a href="#getHealth">getHealth(project, backendService, body)</a></code></p>
97<p class="firstline">Gets the most recent health check results for this BackendService.</p>
98<p class="toc_element">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040099 <code><a href="#insert">insert(project, body, requestId=None)</a></code></p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700100<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>
101<p class="toc_element">
102 <code><a href="#list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
103<p class="firstline">Retrieves the list of BackendService resources available to the specified project.</p>
104<p class="toc_element">
105 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
106<p class="firstline">Retrieves the next page of results.</p>
107<p class="toc_element">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400108 <code><a href="#patch">patch(project, backendService, body, requestId=None)</a></code></p>
109<p class="firstline">Patches 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>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700110<p class="toc_element">
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400111 <code><a href="#setSecurityPolicy">setSecurityPolicy(project, backendService, body, requestId=None)</a></code></p>
112<p class="firstline">Sets the security policy for the specified backend service.</p>
113<p class="toc_element">
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700114 <code><a href="#testIamPermissions">testIamPermissions(project, resource, body)</a></code></p>
115<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
116<p class="toc_element">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400117 <code><a href="#update">update(project, backendService, body, requestId=None)</a></code></p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700118<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>
119<h3>Method Details</h3>
120<div class="method">
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400121 <code class="details" id="addSignedUrlKey">addSignedUrlKey(project, backendService, body, requestId=None)</code>
122 <pre>Adds the given Signed URL Key to the specified backend service.
123
124Args:
125 project: string, Project ID for this request. (required)
126 backendService: string, Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. (required)
127 body: object, The request body. (required)
128 The object takes the form of:
129
130{ # Represents a customer-supplied Signing Key used by Cloud CDN Signed URLs
131 "keyName": "A String", # Name of the key. 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.
132 "keyValue": "A String", # 128-bit key value used for signing the URL. The key value must be a valid RFC 4648 Section 5 base64url encoded string.
133 }
134
135 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
136
137Returns:
138 An object of the form:
139
140 { # An Operation resource, used to manage asynchronous API requests.
141 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
142 "clientOperationId": "A String", # [Output Only] Reserved for future use.
143 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
144 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
145 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
146 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
147 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
148 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
149 "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.
150 "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.
151 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
152 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
153 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
154 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
155 {
156 "message": "A String", # [Output Only] A human-readable description of the warning code.
157 "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.
158 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
159 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
160 {
161 "value": "A String", # [Output Only] A warning data value corresponding to the key.
162 "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).
163 },
164 ],
165 },
166 ],
167 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
168 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
169 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
170 "name": "A String", # [Output Only] Name of the resource.
171 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
172 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
173 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
174 {
175 "message": "A String", # [Output Only] An optional, human-readable error message.
176 "code": "A String", # [Output Only] The error type identifier for this error.
177 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
178 },
179 ],
180 },
181 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
182 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
183 "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.
184 }</pre>
185</div>
186
187<div class="method">
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700188 <code class="details" id="aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
189 <pre>Retrieves the list of all BackendService resources, regional and global, available to the specified project.
190
191Args:
192 project: string, Name of the project scoping this request. (required)
193 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
194
195You 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.
196
197Currently, only sorting by name or creationTimestamp desc is supported.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400198 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)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700199 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.
200 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.
201
202The 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.
203
204For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
205
206You 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.
207
208To 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.
209
210Returns:
211 An object of the form:
212
213 { # Contains a list of BackendServicesScopedList.
214 "nextPageToken": "A String", # [Output Only] A token used to continue a truncated list request.
215 "items": { # A map of scoped BackendService lists.
216 "a_key": { # Name of the scope containing this set of BackendServices.
217 "warning": { # Informational warning which replaces the list of backend services when the list is empty.
218 "message": "A String", # [Output Only] A human-readable description of the warning code.
219 "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.
220 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
221 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
222 {
223 "value": "A String", # [Output Only] A warning data value corresponding to the key.
224 "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).
225 },
226 ],
227 },
228 "backendServices": [ # List of BackendServices contained in this scope.
229 { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700230 "connectionDraining": { # Message containing connection draining configuration.
231 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
232 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400233 "failoverRatio": 3.14, # The value of the field must be in [0, 1]. If set, 'backends[].failover' must be set. They together define the fallback behavior of the primary backend: if the ratio of the healthy VMs in the primary backend is at or below this number, traffic arriving at the load-balanced IP will be directed to the failover backend.
234 #
235 # In case where 'failoverRatio' is not set or all the VMs in the backup backend are unhealthy, the traffic will be directed back to the primary backend in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy.
236 #
237 # This field is only used with l4 load balancing.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700238 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
239 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400240 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700241 #
242 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
243 "loadBalancingScheme": "A String",
244 "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.
245 #
246 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
247 "A String",
248 ],
249 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
250 #
251 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
252 #
253 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
254 #
255 # When the protocol is UDP, this field is not used.
256 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
257 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800258 "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400259 "signedUrlKeyNames": [ # [Output Only] Names of the keys currently configured for Cloud CDN Signed URL on this backend service.
260 "A String",
261 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400262 "signedUrlCacheMaxAgeSec": "A String", # Number of seconds up to which the response to a signed URL request will be cached in the CDN. After this time period, the Signed URL will be revalidated before being served. Defaults to 1hr (3600s). If this field is set, Cloud CDN will internally act as though all responses from this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800263 "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy.
264 "includeQueryString": True or False, # If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
265 "includeHost": True or False, # If true, requests to different hosts will be cached separately.
266 "queryStringBlacklist": [ # Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
267 "A String",
268 ],
269 "queryStringWhitelist": [ # Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
270 "A String",
271 ],
272 "includeProtocol": True or False, # If true, http and https requests will be cached separately.
273 },
274 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700275 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
276 #
277 # When the load balancing scheme is INTERNAL, this field is not used.
278 "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.
279 #
280 # When the load balancing scheme is INTERNAL, this field is not used.
281 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
282 #
283 # This cannot be used for internal load balancing.
284 "backends": [ # The list of backends that serve this BackendService.
285 { # Message containing information of one individual backend.
286 "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.
287 #
288 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
289 #
290 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
291 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
292 "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].
293 #
294 # This cannot be used for internal load balancing.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800295 "failover": True or False, # This field designates whether this is a failover backend. More than one failover backend can be configured for a given BackendService.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400296 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700297 #
298 # This cannot be used for internal load balancing.
299 "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.
300 #
301 # This cannot be used for internal load balancing.
302 "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].
303 #
304 # This cannot be used for internal load balancing.
305 "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.
306 #
307 # This cannot be used for internal load balancing.
308 "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.
309 #
310 # This cannot be used for internal load balancing.
311 "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).
312 #
313 # This cannot be used for internal load balancing.
314 },
315 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400316 "iap": { # Identity-Aware Proxy
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700317 "oauth2ClientId": "A String",
318 "enabled": True or False,
319 "oauth2ClientSecret": "A String",
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400320 "oauth2ClientSecretSha256": "A String", # [Output Only] SHA256 hash value for the field oauth2_client_secret above.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700321 },
322 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800323 "customRequestHeaders": [ # Headers that the HTTP/S load balancer should add to proxied requests.
324 "A String",
325 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400326 "securityPolicy": "A String", # [Output Only] The resource URL for the security policy associated with this backend service.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700327 "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.
328 "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.
329 #
330 # When the load balancing scheme is INTERNAL, this field is not used.
331 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
332 "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.
333 "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 -0800334 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700335 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
336 },
337 ],
338 },
339 },
340 "kind": "compute#backendServiceAggregatedList", # Type of resource.
341 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
342 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
343 }</pre>
344</div>
345
346<div class="method">
347 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
348 <pre>Retrieves the next page of results.
349
350Args:
351 previous_request: The request for the previous page. (required)
352 previous_response: The response from the request for the previous page. (required)
353
354Returns:
355 A request object that you can call 'execute()' on to request the next
356 page. Returns None if there are no more items in the collection.
357 </pre>
358</div>
359
360<div class="method">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400361 <code class="details" id="delete">delete(project, backendService, requestId=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700362 <pre>Deletes the specified BackendService resource.
363
364Args:
365 project: string, Project ID for this request. (required)
366 backendService: string, Name of the BackendService resource to delete. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400367 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700368
369Returns:
370 An object of the form:
371
372 { # An Operation resource, used to manage asynchronous API requests.
373 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
374 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400375 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700376 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
377 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
378 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
379 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
380 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
381 "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.
382 "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.
383 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
384 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
385 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
386 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
387 {
388 "message": "A String", # [Output Only] A human-readable description of the warning code.
389 "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.
390 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
391 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
392 {
393 "value": "A String", # [Output Only] A warning data value corresponding to the key.
394 "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).
395 },
396 ],
397 },
398 ],
399 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
400 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
401 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
402 "name": "A String", # [Output Only] Name of the resource.
403 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
404 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
405 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
406 {
407 "message": "A String", # [Output Only] An optional, human-readable error message.
408 "code": "A String", # [Output Only] The error type identifier for this error.
409 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
410 },
411 ],
412 },
413 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
414 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800415 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700416 }</pre>
417</div>
418
419<div class="method">
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400420 <code class="details" id="deleteSignedUrlKey">deleteSignedUrlKey(project, backendService, keyName, requestId=None)</code>
421 <pre>Deletes the given Signed URL Key from the specified backend service.
422
423Args:
424 project: string, Project ID for this request. (required)
425 backendService: string, Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. (required)
426 keyName: string, The name of the Signed URL Key to delete. (required)
427 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
428
429Returns:
430 An object of the form:
431
432 { # An Operation resource, used to manage asynchronous API requests.
433 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
434 "clientOperationId": "A String", # [Output Only] Reserved for future use.
435 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
436 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
437 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
438 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
439 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
440 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
441 "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.
442 "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.
443 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
444 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
445 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
446 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
447 {
448 "message": "A String", # [Output Only] A human-readable description of the warning code.
449 "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.
450 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
451 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
452 {
453 "value": "A String", # [Output Only] A warning data value corresponding to the key.
454 "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).
455 },
456 ],
457 },
458 ],
459 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
460 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
461 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
462 "name": "A String", # [Output Only] Name of the resource.
463 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
464 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
465 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
466 {
467 "message": "A String", # [Output Only] An optional, human-readable error message.
468 "code": "A String", # [Output Only] The error type identifier for this error.
469 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
470 },
471 ],
472 },
473 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
474 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
475 "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.
476 }</pre>
477</div>
478
479<div class="method">
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700480 <code class="details" id="get">get(project, backendService)</code>
481 <pre>Returns the specified BackendService resource. Get a list of available backend services by making a list() request.
482
483Args:
484 project: string, Project ID for this request. (required)
485 backendService: string, Name of the BackendService resource to return. (required)
486
487Returns:
488 An object of the form:
489
490 { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700491 "connectionDraining": { # Message containing connection draining configuration.
492 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
493 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400494 "failoverRatio": 3.14, # The value of the field must be in [0, 1]. If set, 'backends[].failover' must be set. They together define the fallback behavior of the primary backend: if the ratio of the healthy VMs in the primary backend is at or below this number, traffic arriving at the load-balanced IP will be directed to the failover backend.
495 #
496 # In case where 'failoverRatio' is not set or all the VMs in the backup backend are unhealthy, the traffic will be directed back to the primary backend in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy.
497 #
498 # This field is only used with l4 load balancing.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700499 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
500 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400501 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700502 #
503 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
504 "loadBalancingScheme": "A String",
505 "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.
506 #
507 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
508 "A String",
509 ],
510 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
511 #
512 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
513 #
514 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
515 #
516 # When the protocol is UDP, this field is not used.
517 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
518 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800519 "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400520 "signedUrlKeyNames": [ # [Output Only] Names of the keys currently configured for Cloud CDN Signed URL on this backend service.
521 "A String",
522 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400523 "signedUrlCacheMaxAgeSec": "A String", # Number of seconds up to which the response to a signed URL request will be cached in the CDN. After this time period, the Signed URL will be revalidated before being served. Defaults to 1hr (3600s). If this field is set, Cloud CDN will internally act as though all responses from this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800524 "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy.
525 "includeQueryString": True or False, # If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
526 "includeHost": True or False, # If true, requests to different hosts will be cached separately.
527 "queryStringBlacklist": [ # Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
528 "A String",
529 ],
530 "queryStringWhitelist": [ # Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
531 "A String",
532 ],
533 "includeProtocol": True or False, # If true, http and https requests will be cached separately.
534 },
535 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700536 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
537 #
538 # When the load balancing scheme is INTERNAL, this field is not used.
539 "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.
540 #
541 # When the load balancing scheme is INTERNAL, this field is not used.
542 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
543 #
544 # This cannot be used for internal load balancing.
545 "backends": [ # The list of backends that serve this BackendService.
546 { # Message containing information of one individual backend.
547 "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.
548 #
549 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
550 #
551 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
552 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
553 "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].
554 #
555 # This cannot be used for internal load balancing.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800556 "failover": True or False, # This field designates whether this is a failover backend. More than one failover backend can be configured for a given BackendService.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400557 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700558 #
559 # This cannot be used for internal load balancing.
560 "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.
561 #
562 # This cannot be used for internal load balancing.
563 "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].
564 #
565 # This cannot be used for internal load balancing.
566 "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.
567 #
568 # This cannot be used for internal load balancing.
569 "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.
570 #
571 # This cannot be used for internal load balancing.
572 "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).
573 #
574 # This cannot be used for internal load balancing.
575 },
576 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400577 "iap": { # Identity-Aware Proxy
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700578 "oauth2ClientId": "A String",
579 "enabled": True or False,
580 "oauth2ClientSecret": "A String",
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400581 "oauth2ClientSecretSha256": "A String", # [Output Only] SHA256 hash value for the field oauth2_client_secret above.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700582 },
583 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800584 "customRequestHeaders": [ # Headers that the HTTP/S load balancer should add to proxied requests.
585 "A String",
586 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400587 "securityPolicy": "A String", # [Output Only] The resource URL for the security policy associated with this backend service.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700588 "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.
589 "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.
590 #
591 # When the load balancing scheme is INTERNAL, this field is not used.
592 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
593 "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.
594 "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 -0800595 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700596 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
597 }</pre>
598</div>
599
600<div class="method">
601 <code class="details" id="getHealth">getHealth(project, backendService, body)</code>
602 <pre>Gets the most recent health check results for this BackendService.
603
604Args:
605 project: string, A parameter (required)
606 backendService: string, Name of the BackendService resource to which the queried instance belongs. (required)
607 body: object, The request body. (required)
608 The object takes the form of:
609
610{
611 "group": "A String", # A URI referencing one of the instance groups listed in the backend service.
612 }
613
614
615Returns:
616 An object of the form:
617
618 {
619 "kind": "compute#backendServiceGroupHealth", # [Output Only] Type of resource. Always compute#backendServiceGroupHealth for the health of backend services.
620 "healthStatus": [
621 {
622 "instance": "A String", # URL of the instance resource.
623 "healthState": "A String", # Health state of the instance.
624 "ipAddress": "A String", # The IP address represented by this resource.
625 "port": 42, # The port on the instance.
626 },
627 ],
628 }</pre>
629</div>
630
631<div class="method">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400632 <code class="details" id="insert">insert(project, body, requestId=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700633 <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.
634
635Args:
636 project: string, Project ID for this request. (required)
637 body: object, The request body. (required)
638 The object takes the form of:
639
640{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700641 "connectionDraining": { # Message containing connection draining configuration.
642 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
643 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400644 "failoverRatio": 3.14, # The value of the field must be in [0, 1]. If set, 'backends[].failover' must be set. They together define the fallback behavior of the primary backend: if the ratio of the healthy VMs in the primary backend is at or below this number, traffic arriving at the load-balanced IP will be directed to the failover backend.
645 #
646 # In case where 'failoverRatio' is not set or all the VMs in the backup backend are unhealthy, the traffic will be directed back to the primary backend in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy.
647 #
648 # This field is only used with l4 load balancing.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700649 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
650 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400651 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700652 #
653 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
654 "loadBalancingScheme": "A String",
655 "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.
656 #
657 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
658 "A String",
659 ],
660 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
661 #
662 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
663 #
664 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
665 #
666 # When the protocol is UDP, this field is not used.
667 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
668 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800669 "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400670 "signedUrlKeyNames": [ # [Output Only] Names of the keys currently configured for Cloud CDN Signed URL on this backend service.
671 "A String",
672 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400673 "signedUrlCacheMaxAgeSec": "A String", # Number of seconds up to which the response to a signed URL request will be cached in the CDN. After this time period, the Signed URL will be revalidated before being served. Defaults to 1hr (3600s). If this field is set, Cloud CDN will internally act as though all responses from this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800674 "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy.
675 "includeQueryString": True or False, # If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
676 "includeHost": True or False, # If true, requests to different hosts will be cached separately.
677 "queryStringBlacklist": [ # Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
678 "A String",
679 ],
680 "queryStringWhitelist": [ # Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
681 "A String",
682 ],
683 "includeProtocol": True or False, # If true, http and https requests will be cached separately.
684 },
685 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700686 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
687 #
688 # When the load balancing scheme is INTERNAL, this field is not used.
689 "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.
690 #
691 # When the load balancing scheme is INTERNAL, this field is not used.
692 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
693 #
694 # This cannot be used for internal load balancing.
695 "backends": [ # The list of backends that serve this BackendService.
696 { # Message containing information of one individual backend.
697 "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.
698 #
699 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
700 #
701 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
702 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
703 "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].
704 #
705 # This cannot be used for internal load balancing.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800706 "failover": True or False, # This field designates whether this is a failover backend. More than one failover backend can be configured for a given BackendService.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400707 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700708 #
709 # This cannot be used for internal load balancing.
710 "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.
711 #
712 # This cannot be used for internal load balancing.
713 "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].
714 #
715 # This cannot be used for internal load balancing.
716 "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.
717 #
718 # This cannot be used for internal load balancing.
719 "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.
720 #
721 # This cannot be used for internal load balancing.
722 "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).
723 #
724 # This cannot be used for internal load balancing.
725 },
726 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400727 "iap": { # Identity-Aware Proxy
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700728 "oauth2ClientId": "A String",
729 "enabled": True or False,
730 "oauth2ClientSecret": "A String",
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400731 "oauth2ClientSecretSha256": "A String", # [Output Only] SHA256 hash value for the field oauth2_client_secret above.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700732 },
733 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800734 "customRequestHeaders": [ # Headers that the HTTP/S load balancer should add to proxied requests.
735 "A String",
736 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400737 "securityPolicy": "A String", # [Output Only] The resource URL for the security policy associated with this backend service.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700738 "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.
739 "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.
740 #
741 # When the load balancing scheme is INTERNAL, this field is not used.
742 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
743 "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.
744 "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 -0800745 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700746 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
747 }
748
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400749 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700750
751Returns:
752 An object of the form:
753
754 { # An Operation resource, used to manage asynchronous API requests.
755 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
756 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400757 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700758 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
759 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
760 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
761 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
762 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
763 "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.
764 "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.
765 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
766 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
767 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
768 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
769 {
770 "message": "A String", # [Output Only] A human-readable description of the warning code.
771 "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.
772 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
773 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
774 {
775 "value": "A String", # [Output Only] A warning data value corresponding to the key.
776 "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).
777 },
778 ],
779 },
780 ],
781 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
782 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
783 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
784 "name": "A String", # [Output Only] Name of the resource.
785 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
786 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
787 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
788 {
789 "message": "A String", # [Output Only] An optional, human-readable error message.
790 "code": "A String", # [Output Only] The error type identifier for this error.
791 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
792 },
793 ],
794 },
795 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
796 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800797 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700798 }</pre>
799</div>
800
801<div class="method">
802 <code class="details" id="list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
803 <pre>Retrieves the list of BackendService resources available to the specified project.
804
805Args:
806 project: string, Project ID for this request. (required)
807 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
808
809You 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.
810
811Currently, only sorting by name or creationTimestamp desc is supported.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400812 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)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700813 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.
814 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.
815
816The 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.
817
818For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
819
820You 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.
821
822To 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.
823
824Returns:
825 An object of the form:
826
827 { # Contains a list of BackendService resources.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400828 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700829 "items": [ # A list of BackendService resources.
830 { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700831 "connectionDraining": { # Message containing connection draining configuration.
832 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
833 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400834 "failoverRatio": 3.14, # The value of the field must be in [0, 1]. If set, 'backends[].failover' must be set. They together define the fallback behavior of the primary backend: if the ratio of the healthy VMs in the primary backend is at or below this number, traffic arriving at the load-balanced IP will be directed to the failover backend.
835 #
836 # In case where 'failoverRatio' is not set or all the VMs in the backup backend are unhealthy, the traffic will be directed back to the primary backend in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy.
837 #
838 # This field is only used with l4 load balancing.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700839 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
840 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400841 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700842 #
843 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
844 "loadBalancingScheme": "A String",
845 "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.
846 #
847 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
848 "A String",
849 ],
850 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
851 #
852 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
853 #
854 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
855 #
856 # When the protocol is UDP, this field is not used.
857 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
858 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800859 "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400860 "signedUrlKeyNames": [ # [Output Only] Names of the keys currently configured for Cloud CDN Signed URL on this backend service.
861 "A String",
862 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400863 "signedUrlCacheMaxAgeSec": "A String", # Number of seconds up to which the response to a signed URL request will be cached in the CDN. After this time period, the Signed URL will be revalidated before being served. Defaults to 1hr (3600s). If this field is set, Cloud CDN will internally act as though all responses from this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800864 "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy.
865 "includeQueryString": True or False, # If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
866 "includeHost": True or False, # If true, requests to different hosts will be cached separately.
867 "queryStringBlacklist": [ # Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
868 "A String",
869 ],
870 "queryStringWhitelist": [ # Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
871 "A String",
872 ],
873 "includeProtocol": True or False, # If true, http and https requests will be cached separately.
874 },
875 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700876 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
877 #
878 # When the load balancing scheme is INTERNAL, this field is not used.
879 "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.
880 #
881 # When the load balancing scheme is INTERNAL, this field is not used.
882 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
883 #
884 # This cannot be used for internal load balancing.
885 "backends": [ # The list of backends that serve this BackendService.
886 { # Message containing information of one individual backend.
887 "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.
888 #
889 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
890 #
891 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
892 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
893 "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].
894 #
895 # This cannot be used for internal load balancing.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800896 "failover": True or False, # This field designates whether this is a failover backend. More than one failover backend can be configured for a given BackendService.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400897 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700898 #
899 # This cannot be used for internal load balancing.
900 "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.
901 #
902 # This cannot be used for internal load balancing.
903 "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].
904 #
905 # This cannot be used for internal load balancing.
906 "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.
907 #
908 # This cannot be used for internal load balancing.
909 "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.
910 #
911 # This cannot be used for internal load balancing.
912 "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).
913 #
914 # This cannot be used for internal load balancing.
915 },
916 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400917 "iap": { # Identity-Aware Proxy
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700918 "oauth2ClientId": "A String",
919 "enabled": True or False,
920 "oauth2ClientSecret": "A String",
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400921 "oauth2ClientSecretSha256": "A String", # [Output Only] SHA256 hash value for the field oauth2_client_secret above.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700922 },
923 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800924 "customRequestHeaders": [ # Headers that the HTTP/S load balancer should add to proxied requests.
925 "A String",
926 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400927 "securityPolicy": "A String", # [Output Only] The resource URL for the security policy associated with this backend service.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700928 "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.
929 "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.
930 #
931 # When the load balancing scheme is INTERNAL, this field is not used.
932 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
933 "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.
934 "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 -0800935 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700936 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
937 },
938 ],
939 "kind": "compute#backendServiceList", # [Output Only] Type of resource. Always compute#backendServiceList for lists of backend services.
940 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
941 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
942 }</pre>
943</div>
944
945<div class="method">
946 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
947 <pre>Retrieves the next page of results.
948
949Args:
950 previous_request: The request for the previous page. (required)
951 previous_response: The response from the request for the previous page. (required)
952
953Returns:
954 A request object that you can call 'execute()' on to request the next
955 page. Returns None if there are no more items in the collection.
956 </pre>
957</div>
958
959<div class="method">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400960 <code class="details" id="patch">patch(project, backendService, body, requestId=None)</code>
961 <pre>Patches 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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700962
963Args:
964 project: string, Project ID for this request. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400965 backendService: string, Name of the BackendService resource to patch. (required)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700966 body: object, The request body. (required)
967 The object takes the form of:
968
969{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700970 "connectionDraining": { # Message containing connection draining configuration.
971 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
972 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400973 "failoverRatio": 3.14, # The value of the field must be in [0, 1]. If set, 'backends[].failover' must be set. They together define the fallback behavior of the primary backend: if the ratio of the healthy VMs in the primary backend is at or below this number, traffic arriving at the load-balanced IP will be directed to the failover backend.
974 #
975 # In case where 'failoverRatio' is not set or all the VMs in the backup backend are unhealthy, the traffic will be directed back to the primary backend in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy.
976 #
977 # This field is only used with l4 load balancing.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700978 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
979 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400980 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700981 #
982 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
983 "loadBalancingScheme": "A String",
984 "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.
985 #
986 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
987 "A String",
988 ],
989 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
990 #
991 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
992 #
993 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
994 #
995 # When the protocol is UDP, this field is not used.
996 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
997 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800998 "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400999 "signedUrlKeyNames": [ # [Output Only] Names of the keys currently configured for Cloud CDN Signed URL on this backend service.
1000 "A String",
1001 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001002 "signedUrlCacheMaxAgeSec": "A String", # Number of seconds up to which the response to a signed URL request will be cached in the CDN. After this time period, the Signed URL will be revalidated before being served. Defaults to 1hr (3600s). If this field is set, Cloud CDN will internally act as though all responses from this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001003 "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy.
1004 "includeQueryString": True or False, # If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
1005 "includeHost": True or False, # If true, requests to different hosts will be cached separately.
1006 "queryStringBlacklist": [ # Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
1007 "A String",
1008 ],
1009 "queryStringWhitelist": [ # Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
1010 "A String",
1011 ],
1012 "includeProtocol": True or False, # If true, http and https requests will be cached separately.
1013 },
1014 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001015 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
1016 #
1017 # When the load balancing scheme is INTERNAL, this field is not used.
1018 "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.
1019 #
1020 # When the load balancing scheme is INTERNAL, this field is not used.
1021 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
1022 #
1023 # This cannot be used for internal load balancing.
1024 "backends": [ # The list of backends that serve this BackendService.
1025 { # Message containing information of one individual backend.
1026 "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.
1027 #
1028 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
1029 #
1030 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
1031 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
1032 "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].
1033 #
1034 # This cannot be used for internal load balancing.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001035 "failover": True or False, # This field designates whether this is a failover backend. More than one failover backend can be configured for a given BackendService.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001036 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001037 #
1038 # This cannot be used for internal load balancing.
1039 "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.
1040 #
1041 # This cannot be used for internal load balancing.
1042 "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].
1043 #
1044 # This cannot be used for internal load balancing.
1045 "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.
1046 #
1047 # This cannot be used for internal load balancing.
1048 "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.
1049 #
1050 # This cannot be used for internal load balancing.
1051 "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).
1052 #
1053 # This cannot be used for internal load balancing.
1054 },
1055 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001056 "iap": { # Identity-Aware Proxy
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001057 "oauth2ClientId": "A String",
1058 "enabled": True or False,
1059 "oauth2ClientSecret": "A String",
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001060 "oauth2ClientSecretSha256": "A String", # [Output Only] SHA256 hash value for the field oauth2_client_secret above.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001061 },
1062 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001063 "customRequestHeaders": [ # Headers that the HTTP/S load balancer should add to proxied requests.
1064 "A String",
1065 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001066 "securityPolicy": "A String", # [Output Only] The resource URL for the security policy associated with this backend service.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001067 "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.
1068 "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.
1069 #
1070 # When the load balancing scheme is INTERNAL, this field is not used.
1071 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
1072 "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.
1073 "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 -08001074 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001075 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
1076 }
1077
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001078 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001079
1080Returns:
1081 An object of the form:
1082
1083 { # An Operation resource, used to manage asynchronous API requests.
1084 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1085 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001086 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001087 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1088 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
1089 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1090 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
1091 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
1092 "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.
1093 "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.
1094 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
1095 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1096 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
1097 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1098 {
1099 "message": "A String", # [Output Only] A human-readable description of the warning code.
1100 "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.
1101 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1102 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
1103 {
1104 "value": "A String", # [Output Only] A warning data value corresponding to the key.
1105 "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).
1106 },
1107 ],
1108 },
1109 ],
1110 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
1111 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1112 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
1113 "name": "A String", # [Output Only] Name of the resource.
1114 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
1115 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1116 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
1117 {
1118 "message": "A String", # [Output Only] An optional, human-readable error message.
1119 "code": "A String", # [Output Only] The error type identifier for this error.
1120 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
1121 },
1122 ],
1123 },
1124 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1125 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001126 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001127 }</pre>
1128</div>
1129
1130<div class="method">
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001131 <code class="details" id="setSecurityPolicy">setSecurityPolicy(project, backendService, body, requestId=None)</code>
1132 <pre>Sets the security policy for the specified backend service.
1133
1134Args:
1135 project: string, Project ID for this request. (required)
1136 backendService: string, Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035. (required)
1137 body: object, The request body. (required)
1138 The object takes the form of:
1139
1140{
1141 "securityPolicy": "A String",
1142 }
1143
1144 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
1145
1146Returns:
1147 An object of the form:
1148
1149 { # An Operation resource, used to manage asynchronous API requests.
1150 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1151 "clientOperationId": "A String", # [Output Only] Reserved for future use.
1152 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
1153 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1154 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
1155 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1156 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
1157 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
1158 "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.
1159 "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.
1160 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
1161 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1162 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
1163 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1164 {
1165 "message": "A String", # [Output Only] A human-readable description of the warning code.
1166 "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.
1167 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1168 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
1169 {
1170 "value": "A String", # [Output Only] A warning data value corresponding to the key.
1171 "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).
1172 },
1173 ],
1174 },
1175 ],
1176 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
1177 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1178 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
1179 "name": "A String", # [Output Only] Name of the resource.
1180 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
1181 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1182 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
1183 {
1184 "message": "A String", # [Output Only] An optional, human-readable error message.
1185 "code": "A String", # [Output Only] The error type identifier for this error.
1186 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
1187 },
1188 ],
1189 },
1190 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1191 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
1192 "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.
1193 }</pre>
1194</div>
1195
1196<div class="method">
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001197 <code class="details" id="testIamPermissions">testIamPermissions(project, resource, body)</code>
1198 <pre>Returns permissions that a caller has on the specified resource.
1199
1200Args:
1201 project: string, Project ID for this request. (required)
1202 resource: string, Name of the resource for this request. (required)
1203 body: object, The request body. (required)
1204 The object takes the form of:
1205
1206{
1207 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed.
1208 "A String",
1209 ],
1210 }
1211
1212
1213Returns:
1214 An object of the form:
1215
1216 {
1217 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1218 "A String",
1219 ],
1220 }</pre>
1221</div>
1222
1223<div class="method">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001224 <code class="details" id="update">update(project, backendService, body, requestId=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001225 <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.
1226
1227Args:
1228 project: string, Project ID for this request. (required)
1229 backendService: string, Name of the BackendService resource to update. (required)
1230 body: object, The request body. (required)
1231 The object takes the form of:
1232
1233{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001234 "connectionDraining": { # Message containing connection draining configuration.
1235 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
1236 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001237 "failoverRatio": 3.14, # The value of the field must be in [0, 1]. If set, 'backends[].failover' must be set. They together define the fallback behavior of the primary backend: if the ratio of the healthy VMs in the primary backend is at or below this number, traffic arriving at the load-balanced IP will be directed to the failover backend.
1238 #
1239 # In case where 'failoverRatio' is not set or all the VMs in the backup backend are unhealthy, the traffic will be directed back to the primary backend in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy.
1240 #
1241 # This field is only used with l4 load balancing.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001242 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
1243 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001244 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001245 #
1246 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
1247 "loadBalancingScheme": "A String",
1248 "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.
1249 #
1250 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
1251 "A String",
1252 ],
1253 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
1254 #
1255 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
1256 #
1257 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
1258 #
1259 # When the protocol is UDP, this field is not used.
1260 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
1261 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001262 "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001263 "signedUrlKeyNames": [ # [Output Only] Names of the keys currently configured for Cloud CDN Signed URL on this backend service.
1264 "A String",
1265 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001266 "signedUrlCacheMaxAgeSec": "A String", # Number of seconds up to which the response to a signed URL request will be cached in the CDN. After this time period, the Signed URL will be revalidated before being served. Defaults to 1hr (3600s). If this field is set, Cloud CDN will internally act as though all responses from this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001267 "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy.
1268 "includeQueryString": True or False, # If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
1269 "includeHost": True or False, # If true, requests to different hosts will be cached separately.
1270 "queryStringBlacklist": [ # Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
1271 "A String",
1272 ],
1273 "queryStringWhitelist": [ # Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
1274 "A String",
1275 ],
1276 "includeProtocol": True or False, # If true, http and https requests will be cached separately.
1277 },
1278 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001279 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
1280 #
1281 # When the load balancing scheme is INTERNAL, this field is not used.
1282 "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.
1283 #
1284 # When the load balancing scheme is INTERNAL, this field is not used.
1285 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
1286 #
1287 # This cannot be used for internal load balancing.
1288 "backends": [ # The list of backends that serve this BackendService.
1289 { # Message containing information of one individual backend.
1290 "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.
1291 #
1292 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
1293 #
1294 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
1295 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
1296 "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].
1297 #
1298 # This cannot be used for internal load balancing.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001299 "failover": True or False, # This field designates whether this is a failover backend. More than one failover backend can be configured for a given BackendService.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001300 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001301 #
1302 # This cannot be used for internal load balancing.
1303 "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.
1304 #
1305 # This cannot be used for internal load balancing.
1306 "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].
1307 #
1308 # This cannot be used for internal load balancing.
1309 "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.
1310 #
1311 # This cannot be used for internal load balancing.
1312 "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.
1313 #
1314 # This cannot be used for internal load balancing.
1315 "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).
1316 #
1317 # This cannot be used for internal load balancing.
1318 },
1319 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001320 "iap": { # Identity-Aware Proxy
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001321 "oauth2ClientId": "A String",
1322 "enabled": True or False,
1323 "oauth2ClientSecret": "A String",
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001324 "oauth2ClientSecretSha256": "A String", # [Output Only] SHA256 hash value for the field oauth2_client_secret above.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001325 },
1326 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001327 "customRequestHeaders": [ # Headers that the HTTP/S load balancer should add to proxied requests.
1328 "A String",
1329 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001330 "securityPolicy": "A String", # [Output Only] The resource URL for the security policy associated with this backend service.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001331 "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.
1332 "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.
1333 #
1334 # When the load balancing scheme is INTERNAL, this field is not used.
1335 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
1336 "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.
1337 "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 -08001338 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001339 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
1340 }
1341
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001342 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001343
1344Returns:
1345 An object of the form:
1346
1347 { # An Operation resource, used to manage asynchronous API requests.
1348 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1349 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001350 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001351 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1352 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
1353 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1354 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
1355 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
1356 "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.
1357 "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.
1358 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
1359 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1360 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
1361 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1362 {
1363 "message": "A String", # [Output Only] A human-readable description of the warning code.
1364 "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.
1365 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1366 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
1367 {
1368 "value": "A String", # [Output Only] A warning data value corresponding to the key.
1369 "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).
1370 },
1371 ],
1372 },
1373 ],
1374 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
1375 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1376 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
1377 "name": "A String", # [Output Only] Name of the resource.
1378 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
1379 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1380 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
1381 {
1382 "message": "A String", # [Output Only] An optional, human-readable error message.
1383 "code": "A String", # [Output Only] The error type identifier for this error.
1384 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
1385 },
1386 ],
1387 },
1388 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1389 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001390 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001391 }</pre>
1392</div>
1393
1394</body></html>