blob: 00e02f516a1a724bc83b35d9d6c52a222f21f7bb [file] [log] [blame]
Craig Citro065b5302014-08-14 00:47:23 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="compute_v1.html">Compute Engine API</a> . <a href="compute_v1.backendServices.html">backendServices</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#delete">delete(project, backendService)</a></code></p>
79<p class="firstline">Deletes the specified BackendService resource.</p>
80<p class="toc_element">
81 <code><a href="#get">get(project, backendService)</a></code></p>
82<p class="firstline">Returns the specified BackendService resource.</p>
83<p class="toc_element">
84 <code><a href="#getHealth">getHealth(project, backendService, body)</a></code></p>
85<p class="firstline">Gets the most recent health check results for this BackendService.</p>
86<p class="toc_element">
87 <code><a href="#insert">insert(project, body)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080088<p class="firstline">Creates a BackendService resource in the specified project using the data included in the request. There are several restrictions and guidelines to keep in mind when creating a backend service. Read Restrictions and Guidelines for more information.</p>
Craig Citro065b5302014-08-14 00:47:23 -070089<p class="toc_element">
90 <code><a href="#list">list(project, maxResults=None, pageToken=None, filter=None)</a></code></p>
91<p class="firstline">Retrieves the list of BackendService resources available to the specified project.</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
96 <code><a href="#patch">patch(project, backendService, body)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080097<p class="firstline">Updates the entire content of the BackendService resource. There are several restrictions and guidelines to keep in mind when updating a backend service. Read Restrictions and Guidelines for more information. This method supports patch semantics.</p>
Craig Citro065b5302014-08-14 00:47:23 -070098<p class="toc_element">
99 <code><a href="#update">update(project, backendService, body)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800100<p class="firstline">Updates the entire content of the BackendService resource. There are several restrictions and guidelines to keep in mind when updating a backend service. Read Restrictions and Guidelines for more information.</p>
Craig Citro065b5302014-08-14 00:47:23 -0700101<h3>Method Details</h3>
102<div class="method">
103 <code class="details" id="delete">delete(project, backendService)</code>
104 <pre>Deletes the specified BackendService resource.
105
106Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800107 project: string, Project ID for this request. (required)
Craig Citro065b5302014-08-14 00:47:23 -0700108 backendService: string, Name of the BackendService resource to delete. (required)
109
110Returns:
111 An object of the form:
112
Takashi Matsuo06694102015-09-11 13:55:40 -0700113 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800114 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
115 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000116 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800117 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
118 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
119 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
120 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000121 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800122 "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.
123 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -0800124 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800125 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
126 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000127 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
Craig Citro065b5302014-08-14 00:47:23 -0700128 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800129 "message": "A String", # [Output Only] A human-readable description of the warning code.
130 "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.
131 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
132 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
Craig Citro065b5302014-08-14 00:47:23 -0700133 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000134 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800135 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource, and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
Craig Citro065b5302014-08-14 00:47:23 -0700136 },
137 ],
138 },
139 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000140 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800141 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
142 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000143 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800144 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000145 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800146 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
Craig Citro065b5302014-08-14 00:47:23 -0700147 {
Craig Citroe633be12015-03-02 13:40:36 -0800148 "message": "A String", # [Output Only] An optional, human-readable error message.
149 "code": "A String", # [Output Only] The error type identifier for this error.
150 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
Craig Citro065b5302014-08-14 00:47:23 -0700151 },
152 ],
153 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800154 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700155 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800156 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies.
Craig Citro065b5302014-08-14 00:47:23 -0700157 }</pre>
158</div>
159
160<div class="method">
161 <code class="details" id="get">get(project, backendService)</code>
162 <pre>Returns the specified BackendService resource.
163
164Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800165 project: string, Project ID for this request. (required)
Craig Citro065b5302014-08-14 00:47:23 -0700166 backendService: string, Name of the BackendService resource to return. (required)
167
168Returns:
169 An object of the form:
170
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800171 { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Takashi Matsuo06694102015-09-11 13:55:40 -0700172 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800173 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
174 #
175 # Possible values are HTTP, HTTPS, HTTP2, TCP and SSL.
176 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700177 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800178 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
Craig Citro065b5302014-08-14 00:47:23 -0700179 "backends": [ # The list of backends that serve this BackendService.
180 { # Message containing information of one individual backend.
Takashi Matsuo06694102015-09-11 13:55:40 -0700181 "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.
182 #
183 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800184 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700185 "maxUtilization": 3.14, # Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0.0, 1.0].
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800186 "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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700187 "capacityScaler": 3.14, # A multiplier applied to the group's maximum servicing capacity (either UTILIZATION or RATE). Default value is 1, which means the group will serve up to 100% of its configured CPU or RPS (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available CPU or RPS. Valid range is [0.0,1.0].
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800188 "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.
189 "balancingMode": "A String", # Specifies the balancing mode for this backend. For global HTTP(S) load balancing, the default is UTILIZATION. Valid values are UTILIZATION and RATE.
Craig Citro065b5302014-08-14 00:47:23 -0700190 },
191 ],
192 "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a BackendService. An up-to-date fingerprint must be provided in order to update the BackendService.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800193 "portName": "A String", # Name of backend port. The same name should appear in the instance groups referenced by this service. Required.
194 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700195 "A String",
196 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700197 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800198 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Takashi Matsuo06694102015-09-11 13:55:40 -0700199 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
200 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Craig Citro065b5302014-08-14 00:47:23 -0700201 }</pre>
202</div>
203
204<div class="method">
205 <code class="details" id="getHealth">getHealth(project, backendService, body)</code>
206 <pre>Gets the most recent health check results for this BackendService.
207
208Args:
209 project: string, A parameter (required)
210 backendService: string, Name of the BackendService resource to which the queried instance belongs. (required)
211 body: object, The request body. (required)
212 The object takes the form of:
213
214{
215 "group": "A String", # A URI referencing one of the resource views listed in the backend service.
216 }
217
218
219Returns:
220 An object of the form:
221
222 {
Takashi Matsuo06694102015-09-11 13:55:40 -0700223 "kind": "compute#backendServiceGroupHealth", # [Output Only] Type of resource. Always compute#backendServiceGroupHealth for the health of backend services.
Craig Citro065b5302014-08-14 00:47:23 -0700224 "healthStatus": [
225 {
226 "instance": "A String", # URL of the instance resource.
227 "healthState": "A String", # Health state of the instance.
228 "ipAddress": "A String", # The IP address represented by this resource.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700229 "port": 42, # The port on the instance.
Craig Citro065b5302014-08-14 00:47:23 -0700230 },
231 ],
232 }</pre>
233</div>
234
235<div class="method">
236 <code class="details" id="insert">insert(project, body)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800237 <pre>Creates a BackendService resource in the specified project using the data included in the request. There are several restrictions and guidelines to keep in mind when creating a backend service. Read Restrictions and Guidelines for more information.
Craig Citro065b5302014-08-14 00:47:23 -0700238
239Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800240 project: string, Project ID for this request. (required)
Craig Citro065b5302014-08-14 00:47:23 -0700241 body: object, The request body. (required)
242 The object takes the form of:
243
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800244{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Takashi Matsuo06694102015-09-11 13:55:40 -0700245 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800246 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
247 #
248 # Possible values are HTTP, HTTPS, HTTP2, TCP and SSL.
249 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700250 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800251 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
Craig Citro065b5302014-08-14 00:47:23 -0700252 "backends": [ # The list of backends that serve this BackendService.
253 { # Message containing information of one individual backend.
Takashi Matsuo06694102015-09-11 13:55:40 -0700254 "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.
255 #
256 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800257 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700258 "maxUtilization": 3.14, # Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0.0, 1.0].
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800259 "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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700260 "capacityScaler": 3.14, # A multiplier applied to the group's maximum servicing capacity (either UTILIZATION or RATE). Default value is 1, which means the group will serve up to 100% of its configured CPU or RPS (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available CPU or RPS. Valid range is [0.0,1.0].
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800261 "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.
262 "balancingMode": "A String", # Specifies the balancing mode for this backend. For global HTTP(S) load balancing, the default is UTILIZATION. Valid values are UTILIZATION and RATE.
Craig Citro065b5302014-08-14 00:47:23 -0700263 },
264 ],
265 "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a BackendService. An up-to-date fingerprint must be provided in order to update the BackendService.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800266 "portName": "A String", # Name of backend port. The same name should appear in the instance groups referenced by this service. Required.
267 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700268 "A String",
269 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700270 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800271 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Takashi Matsuo06694102015-09-11 13:55:40 -0700272 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
273 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Craig Citro065b5302014-08-14 00:47:23 -0700274 }
275
276
277Returns:
278 An object of the form:
279
Takashi Matsuo06694102015-09-11 13:55:40 -0700280 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800281 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
282 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000283 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800284 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
285 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
286 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
287 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000288 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800289 "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.
290 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -0800291 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800292 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
293 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000294 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
Craig Citro065b5302014-08-14 00:47:23 -0700295 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800296 "message": "A String", # [Output Only] A human-readable description of the warning code.
297 "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.
298 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
299 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
Craig Citro065b5302014-08-14 00:47:23 -0700300 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000301 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800302 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource, and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
Craig Citro065b5302014-08-14 00:47:23 -0700303 },
304 ],
305 },
306 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000307 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800308 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
309 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000310 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800311 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000312 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800313 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
Craig Citro065b5302014-08-14 00:47:23 -0700314 {
Craig Citroe633be12015-03-02 13:40:36 -0800315 "message": "A String", # [Output Only] An optional, human-readable error message.
316 "code": "A String", # [Output Only] The error type identifier for this error.
317 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
Craig Citro065b5302014-08-14 00:47:23 -0700318 },
319 ],
320 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800321 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700322 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800323 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies.
Craig Citro065b5302014-08-14 00:47:23 -0700324 }</pre>
325</div>
326
327<div class="method">
328 <code class="details" id="list">list(project, maxResults=None, pageToken=None, filter=None)</code>
329 <pre>Retrieves the list of BackendService resources available to the specified project.
330
331Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800332 project: string, Project ID for this request. (required)
333 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.
334 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.
335 filter: string, Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
Takashi Matsuo06694102015-09-11 13:55:40 -0700336
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800337The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
Takashi Matsuo06694102015-09-11 13:55:40 -0700338
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800339For example, to filter for instances whose name is not equal to example-instance, you would use filter=name ne example-instance.
340
341Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values.
342
343The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions meaning that resources must match all expressions to pass the filters.
Craig Citro065b5302014-08-14 00:47:23 -0700344
345Returns:
346 An object of the form:
347
348 { # Contains a list of BackendService resources.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800349 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
Craig Citroe633be12015-03-02 13:40:36 -0800350 "items": [ # A list of BackendService resources.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800351 { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Takashi Matsuo06694102015-09-11 13:55:40 -0700352 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800353 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
354 #
355 # Possible values are HTTP, HTTPS, HTTP2, TCP and SSL.
356 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700357 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800358 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
Craig Citro065b5302014-08-14 00:47:23 -0700359 "backends": [ # The list of backends that serve this BackendService.
360 { # Message containing information of one individual backend.
Takashi Matsuo06694102015-09-11 13:55:40 -0700361 "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.
362 #
363 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800364 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700365 "maxUtilization": 3.14, # Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0.0, 1.0].
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800366 "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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700367 "capacityScaler": 3.14, # A multiplier applied to the group's maximum servicing capacity (either UTILIZATION or RATE). Default value is 1, which means the group will serve up to 100% of its configured CPU or RPS (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available CPU or RPS. Valid range is [0.0,1.0].
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800368 "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.
369 "balancingMode": "A String", # Specifies the balancing mode for this backend. For global HTTP(S) load balancing, the default is UTILIZATION. Valid values are UTILIZATION and RATE.
Craig Citro065b5302014-08-14 00:47:23 -0700370 },
371 ],
372 "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a BackendService. An up-to-date fingerprint must be provided in order to update the BackendService.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800373 "portName": "A String", # Name of backend port. The same name should appear in the instance groups referenced by this service. Required.
374 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700375 "A String",
376 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700377 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800378 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Takashi Matsuo06694102015-09-11 13:55:40 -0700379 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
380 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Craig Citro065b5302014-08-14 00:47:23 -0700381 },
382 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700383 "kind": "compute#backendServiceList", # [Output Only] Type of resource. Always compute#backendServiceList for lists of backend services.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800384 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Takashi Matsuo06694102015-09-11 13:55:40 -0700385 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
Craig Citro065b5302014-08-14 00:47:23 -0700386 }</pre>
387</div>
388
389<div class="method">
390 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
391 <pre>Retrieves the next page of results.
392
393Args:
394 previous_request: The request for the previous page. (required)
395 previous_response: The response from the request for the previous page. (required)
396
397Returns:
398 A request object that you can call 'execute()' on to request the next
399 page. Returns None if there are no more items in the collection.
400 </pre>
401</div>
402
403<div class="method">
404 <code class="details" id="patch">patch(project, backendService, body)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800405 <pre>Updates the entire content of the BackendService resource. There are several restrictions and guidelines to keep in mind when updating a backend service. Read Restrictions and Guidelines for more information. This method supports patch semantics.
Craig Citro065b5302014-08-14 00:47:23 -0700406
407Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800408 project: string, Project ID for this request. (required)
Craig Citro065b5302014-08-14 00:47:23 -0700409 backendService: string, Name of the BackendService resource to update. (required)
410 body: object, The request body. (required)
411 The object takes the form of:
412
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800413{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Takashi Matsuo06694102015-09-11 13:55:40 -0700414 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800415 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
416 #
417 # Possible values are HTTP, HTTPS, HTTP2, TCP and SSL.
418 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700419 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800420 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
Craig Citro065b5302014-08-14 00:47:23 -0700421 "backends": [ # The list of backends that serve this BackendService.
422 { # Message containing information of one individual backend.
Takashi Matsuo06694102015-09-11 13:55:40 -0700423 "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.
424 #
425 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800426 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700427 "maxUtilization": 3.14, # Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0.0, 1.0].
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800428 "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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700429 "capacityScaler": 3.14, # A multiplier applied to the group's maximum servicing capacity (either UTILIZATION or RATE). Default value is 1, which means the group will serve up to 100% of its configured CPU or RPS (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available CPU or RPS. Valid range is [0.0,1.0].
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800430 "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.
431 "balancingMode": "A String", # Specifies the balancing mode for this backend. For global HTTP(S) load balancing, the default is UTILIZATION. Valid values are UTILIZATION and RATE.
Craig Citro065b5302014-08-14 00:47:23 -0700432 },
433 ],
434 "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a BackendService. An up-to-date fingerprint must be provided in order to update the BackendService.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800435 "portName": "A String", # Name of backend port. The same name should appear in the instance groups referenced by this service. Required.
436 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700437 "A String",
438 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700439 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800440 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Takashi Matsuo06694102015-09-11 13:55:40 -0700441 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
442 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Craig Citro065b5302014-08-14 00:47:23 -0700443 }
444
445
446Returns:
447 An object of the form:
448
Takashi Matsuo06694102015-09-11 13:55:40 -0700449 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800450 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
451 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000452 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800453 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
454 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
455 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
456 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000457 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800458 "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.
459 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -0800460 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800461 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
462 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000463 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
Craig Citro065b5302014-08-14 00:47:23 -0700464 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800465 "message": "A String", # [Output Only] A human-readable description of the warning code.
466 "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.
467 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
468 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
Craig Citro065b5302014-08-14 00:47:23 -0700469 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000470 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800471 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource, and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
Craig Citro065b5302014-08-14 00:47:23 -0700472 },
473 ],
474 },
475 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000476 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800477 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
478 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000479 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800480 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000481 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800482 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
Craig Citro065b5302014-08-14 00:47:23 -0700483 {
Craig Citroe633be12015-03-02 13:40:36 -0800484 "message": "A String", # [Output Only] An optional, human-readable error message.
485 "code": "A String", # [Output Only] The error type identifier for this error.
486 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
Craig Citro065b5302014-08-14 00:47:23 -0700487 },
488 ],
489 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800490 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700491 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800492 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies.
Craig Citro065b5302014-08-14 00:47:23 -0700493 }</pre>
494</div>
495
496<div class="method">
497 <code class="details" id="update">update(project, backendService, body)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800498 <pre>Updates the entire content of the BackendService resource. There are several restrictions and guidelines to keep in mind when updating a backend service. Read Restrictions and Guidelines for more information.
Craig Citro065b5302014-08-14 00:47:23 -0700499
500Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800501 project: string, Project ID for this request. (required)
Craig Citro065b5302014-08-14 00:47:23 -0700502 backendService: string, Name of the BackendService resource to update. (required)
503 body: object, The request body. (required)
504 The object takes the form of:
505
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800506{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Takashi Matsuo06694102015-09-11 13:55:40 -0700507 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800508 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
509 #
510 # Possible values are HTTP, HTTPS, HTTP2, TCP and SSL.
511 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700512 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800513 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
Craig Citro065b5302014-08-14 00:47:23 -0700514 "backends": [ # The list of backends that serve this BackendService.
515 { # Message containing information of one individual backend.
Takashi Matsuo06694102015-09-11 13:55:40 -0700516 "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.
517 #
518 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800519 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700520 "maxUtilization": 3.14, # Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0.0, 1.0].
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800521 "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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700522 "capacityScaler": 3.14, # A multiplier applied to the group's maximum servicing capacity (either UTILIZATION or RATE). Default value is 1, which means the group will serve up to 100% of its configured CPU or RPS (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available CPU or RPS. Valid range is [0.0,1.0].
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800523 "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.
524 "balancingMode": "A String", # Specifies the balancing mode for this backend. For global HTTP(S) load balancing, the default is UTILIZATION. Valid values are UTILIZATION and RATE.
Craig Citro065b5302014-08-14 00:47:23 -0700525 },
526 ],
527 "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a BackendService. An up-to-date fingerprint must be provided in order to update the BackendService.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800528 "portName": "A String", # Name of backend port. The same name should appear in the instance groups referenced by this service. Required.
529 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700530 "A String",
531 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700532 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800533 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Takashi Matsuo06694102015-09-11 13:55:40 -0700534 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
535 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Craig Citro065b5302014-08-14 00:47:23 -0700536 }
537
538
539Returns:
540 An object of the form:
541
Takashi Matsuo06694102015-09-11 13:55:40 -0700542 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800543 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
544 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000545 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800546 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
547 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
548 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
549 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000550 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800551 "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.
552 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -0800553 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800554 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
555 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000556 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
Craig Citro065b5302014-08-14 00:47:23 -0700557 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800558 "message": "A String", # [Output Only] A human-readable description of the warning code.
559 "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.
560 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
561 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
Craig Citro065b5302014-08-14 00:47:23 -0700562 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000563 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800564 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource, and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
Craig Citro065b5302014-08-14 00:47:23 -0700565 },
566 ],
567 },
568 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000569 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800570 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
571 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000572 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800573 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000574 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800575 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
Craig Citro065b5302014-08-14 00:47:23 -0700576 {
Craig Citroe633be12015-03-02 13:40:36 -0800577 "message": "A String", # [Output Only] An optional, human-readable error message.
578 "code": "A String", # [Output Only] The error type identifier for this error.
579 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
Craig Citro065b5302014-08-14 00:47:23 -0700580 },
581 ],
582 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800583 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700584 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800585 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies.
Craig Citro065b5302014-08-14 00:47:23 -0700586 }</pre>
587</div>
588
589</body></html>