blob: a2a3b3360444a467b91a67d641b9972914a16351 [file] [log] [blame]
Craig Citroe633be12015-03-02 13:40:36 -08001<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="replicapool_v1beta2.html">Google Compute Engine Instance Group Manager API</a> . <a href="replicapool_v1beta2.instanceGroupManagers.html">instanceGroupManagers</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#abandonInstances">abandonInstances(project, zone, instanceGroupManager, body)</a></code></p>
79<p class="firstline">Removes the specified instances from the managed instance group, and from any target pools of which they were members, without deleting the instances.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(project, zone, instanceGroupManager)</a></code></p>
82<p class="firstline">Deletes the instance group manager and all instances contained within. If you'd like to delete the manager without deleting the instances, you must first abandon the instances to remove them from the group.</p>
83<p class="toc_element">
84 <code><a href="#deleteInstances">deleteInstances(project, zone, instanceGroupManager, body)</a></code></p>
85<p class="firstline">Deletes the specified instances. The instances are removed from the instance group and any target pools of which they are a member, then deleted. The targetSize of the instance group manager is reduced by the number of instances deleted.</p>
86<p class="toc_element">
87 <code><a href="#get">get(project, zone, instanceGroupManager)</a></code></p>
88<p class="firstline">Returns the specified Instance Group Manager resource.</p>
89<p class="toc_element">
90 <code><a href="#insert">insert(project, zone, size, body)</a></code></p>
91<p class="firstline">Creates an instance group manager, as well as the instance group and the specified number of instances.</p>
92<p class="toc_element">
93 <code><a href="#list">list(project, zone, maxResults=None, pageToken=None, filter=None)</a></code></p>
94<p class="firstline">Retrieves the list of Instance Group Manager resources contained within the specified zone.</p>
95<p class="toc_element">
96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
99 <code><a href="#recreateInstances">recreateInstances(project, zone, instanceGroupManager, body)</a></code></p>
100<p class="firstline">Recreates the specified instances. The instances are deleted, then recreated using the instance group manager's current instance template.</p>
101<p class="toc_element">
102 <code><a href="#resize">resize(project, zone, instanceGroupManager, size)</a></code></p>
103<p class="firstline">Resizes the managed instance group up or down. If resized up, new instances are created using the current instance template. If resized down, instances are removed in the order outlined in Resizing a managed instance group.</p>
104<p class="toc_element">
105 <code><a href="#setInstanceTemplate">setInstanceTemplate(project, zone, instanceGroupManager, body)</a></code></p>
106<p class="firstline">Sets the instance template to use when creating new instances in this group. Existing instances are not affected.</p>
107<p class="toc_element">
108 <code><a href="#setTargetPools">setTargetPools(project, zone, instanceGroupManager, body)</a></code></p>
109<p class="firstline">Modifies the target pools to which all new instances in this group are assigned. Existing instances in the group are not affected.</p>
110<h3>Method Details</h3>
111<div class="method">
112 <code class="details" id="abandonInstances">abandonInstances(project, zone, instanceGroupManager, body)</code>
113 <pre>Removes the specified instances from the managed instance group, and from any target pools of which they were members, without deleting the instances.
114
115Args:
116 project: string, The Google Developers Console project name. (required)
117 zone: string, The name of the zone in which the instance group manager resides. (required)
118 instanceGroupManager: string, The name of the instance group manager. (required)
119 body: object, The request body. (required)
120 The object takes the form of:
121
122{
123 "instances": [ # The names of one or more instances to abandon. For example:
124 # { 'instances': [ 'instance-c3po', 'instance-r2d2' ] }
125 "A String",
126 ],
127 }
128
129
130Returns:
131 An object of the form:
132
133 { # An operation resource, used to manage asynchronous API requests.
134 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
135 "clientOperationId": "A String", # [Output only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project.
136 "creationTimestamp": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format.
137 "id": "A String", # [Output Only] Unique identifier for the resource, generated by the server.
138 "zone": "A String", # [Output Only] URL of the zone where the operation resides. Only available when performing per-zone operations.
139 "operationType": "A String", # [Output only] Type of the operation. Operations include insert, update, and delete.
140 "httpErrorMessage": "A String", # [Output only] If operation fails, the HTTP error message returned.
141 "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 at when the operation will be complete. This number should be monotonically increasing as the operation progresses.
142 "httpErrorStatusCode": 42, # [Output only] If operation fails, the HTTP error status code returned.
143 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
144 "status": "A String", # [Output Only] Status of the operation.
145 "insertTime": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format.
146 "warnings": [ # [Output Only] If there are issues with this operation, a warning is returned.
147 {
148 "message": "A String", # [Output only] Optional human-readable details for this warning.
149 "code": "A String", # [Output only] The warning type identifier for this warning.
150 "data": [ # [Output only] Metadata for this warning in key:value format.
151 {
152 "value": "A String", # [Output Only] Metadata value for this warning.
153 "key": "A String", # [Output Only] Metadata key for this warning.
154 },
155 ],
156 },
157 ],
158 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
159 "startTime": "A String", # [Output Only] The time that this operation was started by the server, in RFC3339 text format.
160 "kind": "replicapool#operation", # [Output only] Type of the resource.
161 "name": "A String", # [Output Only] Name of the resource.
162 "region": "A String", # [Output Only] URL of the region where the operation resides. Only available when performing regional operations.
163 "error": { # [Output Only] If errors occurred during processing of this operation, this field will be populated.
164 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
165 {
166 "message": "A String", # [Output Only] An optional, human-readable error message.
167 "code": "A String", # [Output Only] The error type identifier for this error.
168 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
169 },
170 ],
171 },
172 "endTime": "A String", # [Output Only] The time that this operation was completed, in RFC3339 text format.
173 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
174 "targetLink": "A String", # [Output only] URL of the resource the operation is mutating.
175 }</pre>
176</div>
177
178<div class="method">
179 <code class="details" id="delete">delete(project, zone, instanceGroupManager)</code>
180 <pre>Deletes the instance group manager and all instances contained within. If you'd like to delete the manager without deleting the instances, you must first abandon the instances to remove them from the group.
181
182Args:
183 project: string, The Google Developers Console project name. (required)
184 zone: string, The name of the zone in which the instance group manager resides. (required)
185 instanceGroupManager: string, Name of the Instance Group Manager resource to delete. (required)
186
187Returns:
188 An object of the form:
189
190 { # An operation resource, used to manage asynchronous API requests.
191 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
192 "clientOperationId": "A String", # [Output only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project.
193 "creationTimestamp": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format.
194 "id": "A String", # [Output Only] Unique identifier for the resource, generated by the server.
195 "zone": "A String", # [Output Only] URL of the zone where the operation resides. Only available when performing per-zone operations.
196 "operationType": "A String", # [Output only] Type of the operation. Operations include insert, update, and delete.
197 "httpErrorMessage": "A String", # [Output only] If operation fails, the HTTP error message returned.
198 "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 at when the operation will be complete. This number should be monotonically increasing as the operation progresses.
199 "httpErrorStatusCode": 42, # [Output only] If operation fails, the HTTP error status code returned.
200 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
201 "status": "A String", # [Output Only] Status of the operation.
202 "insertTime": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format.
203 "warnings": [ # [Output Only] If there are issues with this operation, a warning is returned.
204 {
205 "message": "A String", # [Output only] Optional human-readable details for this warning.
206 "code": "A String", # [Output only] The warning type identifier for this warning.
207 "data": [ # [Output only] Metadata for this warning in key:value format.
208 {
209 "value": "A String", # [Output Only] Metadata value for this warning.
210 "key": "A String", # [Output Only] Metadata key for this warning.
211 },
212 ],
213 },
214 ],
215 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
216 "startTime": "A String", # [Output Only] The time that this operation was started by the server, in RFC3339 text format.
217 "kind": "replicapool#operation", # [Output only] Type of the resource.
218 "name": "A String", # [Output Only] Name of the resource.
219 "region": "A String", # [Output Only] URL of the region where the operation resides. Only available when performing regional operations.
220 "error": { # [Output Only] If errors occurred during processing of this operation, this field will be populated.
221 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
222 {
223 "message": "A String", # [Output Only] An optional, human-readable error message.
224 "code": "A String", # [Output Only] The error type identifier for this error.
225 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
226 },
227 ],
228 },
229 "endTime": "A String", # [Output Only] The time that this operation was completed, in RFC3339 text format.
230 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
231 "targetLink": "A String", # [Output only] URL of the resource the operation is mutating.
232 }</pre>
233</div>
234
235<div class="method">
236 <code class="details" id="deleteInstances">deleteInstances(project, zone, instanceGroupManager, body)</code>
237 <pre>Deletes the specified instances. The instances are removed from the instance group and any target pools of which they are a member, then deleted. The targetSize of the instance group manager is reduced by the number of instances deleted.
238
239Args:
240 project: string, The Google Developers Console project name. (required)
241 zone: string, The name of the zone in which the instance group manager resides. (required)
242 instanceGroupManager: string, The name of the instance group manager. (required)
243 body: object, The request body. (required)
244 The object takes the form of:
245
246{
247 "instances": [ # Names of instances to delete.
248 #
249 # Example: 'instance-foo', 'instance-bar'
250 "A String",
251 ],
252 }
253
254
255Returns:
256 An object of the form:
257
258 { # An operation resource, used to manage asynchronous API requests.
259 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
260 "clientOperationId": "A String", # [Output only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project.
261 "creationTimestamp": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format.
262 "id": "A String", # [Output Only] Unique identifier for the resource, generated by the server.
263 "zone": "A String", # [Output Only] URL of the zone where the operation resides. Only available when performing per-zone operations.
264 "operationType": "A String", # [Output only] Type of the operation. Operations include insert, update, and delete.
265 "httpErrorMessage": "A String", # [Output only] If operation fails, the HTTP error message returned.
266 "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 at when the operation will be complete. This number should be monotonically increasing as the operation progresses.
267 "httpErrorStatusCode": 42, # [Output only] If operation fails, the HTTP error status code returned.
268 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
269 "status": "A String", # [Output Only] Status of the operation.
270 "insertTime": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format.
271 "warnings": [ # [Output Only] If there are issues with this operation, a warning is returned.
272 {
273 "message": "A String", # [Output only] Optional human-readable details for this warning.
274 "code": "A String", # [Output only] The warning type identifier for this warning.
275 "data": [ # [Output only] Metadata for this warning in key:value format.
276 {
277 "value": "A String", # [Output Only] Metadata value for this warning.
278 "key": "A String", # [Output Only] Metadata key for this warning.
279 },
280 ],
281 },
282 ],
283 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
284 "startTime": "A String", # [Output Only] The time that this operation was started by the server, in RFC3339 text format.
285 "kind": "replicapool#operation", # [Output only] Type of the resource.
286 "name": "A String", # [Output Only] Name of the resource.
287 "region": "A String", # [Output Only] URL of the region where the operation resides. Only available when performing regional operations.
288 "error": { # [Output Only] If errors occurred during processing of this operation, this field will be populated.
289 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
290 {
291 "message": "A String", # [Output Only] An optional, human-readable error message.
292 "code": "A String", # [Output Only] The error type identifier for this error.
293 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
294 },
295 ],
296 },
297 "endTime": "A String", # [Output Only] The time that this operation was completed, in RFC3339 text format.
298 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
299 "targetLink": "A String", # [Output only] URL of the resource the operation is mutating.
300 }</pre>
301</div>
302
303<div class="method">
304 <code class="details" id="get">get(project, zone, instanceGroupManager)</code>
305 <pre>Returns the specified Instance Group Manager resource.
306
307Args:
308 project: string, The Google Developers Console project name. (required)
309 zone: string, The name of the zone in which the instance group manager resides. (required)
310 instanceGroupManager: string, Name of the instance resource to return. (required)
311
312Returns:
313 An object of the form:
314
315 { # An Instance Group Manager resource.
316 "kind": "replicapool#instanceGroupManager", # [Output only] The resource type. Always replicapool#instanceGroupManager.
317 "group": "A String", # [Output only] The full URL of the instance group created by the manager. This group contains all of the instances being managed, and cannot contain non-managed instances.
318 "description": "A String", # An optional textual description of the instance group manager.
319 "targetPools": [ # The full URL of all target pools to which new instances in the group are added. Updating the target pool values does not affect existing instances.
320 "A String",
321 ],
322 "targetSize": 42, # [Output only] The number of instances that the manager is attempting to maintain. Deleting or abandoning instances affects this number, as does resizing the group.
323 "name": "A String", # The name of the instance group manager. Must be 1-63 characters long and comply with RFC1035. Supported characters include lowercase letters, numbers, and hyphens.
324 "baseInstanceName": "A String", # The base instance name to use for instances in this group. The value must be a valid RFC1035 name. Supported characters are lowercase letters, numbers, and hyphens (-). Instances are named by appending a hyphen and a random four-character string to the base instance name.
325 "fingerprint": "A String", # [Output only] Fingerprint of the instance group manager. This field is used for optimistic locking. An up-to-date fingerprint must be provided in order to modify the Instance Group Manager resource.
326 "instanceTemplate": "A String", # The full URL to an instance template from which all new instances will be created.
327 "creationTimestamp": "A String", # [Output only] The time the instance group manager was created, in RFC3339 text format.
328 "id": "A String", # [Output only] A server-assigned unique identifier for the resource.
329 "selfLink": "A String", # [Output only] The fully qualified URL for this resource.
330 "currentSize": 42, # [Output only] The number of instances that currently exist and are a part of this group. This includes instances that are starting but are not yet RUNNING, and instances that are in the process of being deleted or abandoned.
331 }</pre>
332</div>
333
334<div class="method">
335 <code class="details" id="insert">insert(project, zone, size, body)</code>
336 <pre>Creates an instance group manager, as well as the instance group and the specified number of instances.
337
338Args:
339 project: string, The Google Developers Console project name. (required)
340 zone: string, The name of the zone in which the instance group manager resides. (required)
341 size: integer, Number of instances that should exist. (required)
342 body: object, The request body. (required)
343 The object takes the form of:
344
345{ # An Instance Group Manager resource.
346 "kind": "replicapool#instanceGroupManager", # [Output only] The resource type. Always replicapool#instanceGroupManager.
347 "group": "A String", # [Output only] The full URL of the instance group created by the manager. This group contains all of the instances being managed, and cannot contain non-managed instances.
348 "description": "A String", # An optional textual description of the instance group manager.
349 "targetPools": [ # The full URL of all target pools to which new instances in the group are added. Updating the target pool values does not affect existing instances.
350 "A String",
351 ],
352 "targetSize": 42, # [Output only] The number of instances that the manager is attempting to maintain. Deleting or abandoning instances affects this number, as does resizing the group.
353 "name": "A String", # The name of the instance group manager. Must be 1-63 characters long and comply with RFC1035. Supported characters include lowercase letters, numbers, and hyphens.
354 "baseInstanceName": "A String", # The base instance name to use for instances in this group. The value must be a valid RFC1035 name. Supported characters are lowercase letters, numbers, and hyphens (-). Instances are named by appending a hyphen and a random four-character string to the base instance name.
355 "fingerprint": "A String", # [Output only] Fingerprint of the instance group manager. This field is used for optimistic locking. An up-to-date fingerprint must be provided in order to modify the Instance Group Manager resource.
356 "instanceTemplate": "A String", # The full URL to an instance template from which all new instances will be created.
357 "creationTimestamp": "A String", # [Output only] The time the instance group manager was created, in RFC3339 text format.
358 "id": "A String", # [Output only] A server-assigned unique identifier for the resource.
359 "selfLink": "A String", # [Output only] The fully qualified URL for this resource.
360 "currentSize": 42, # [Output only] The number of instances that currently exist and are a part of this group. This includes instances that are starting but are not yet RUNNING, and instances that are in the process of being deleted or abandoned.
361 }
362
363
364Returns:
365 An object of the form:
366
367 { # An operation resource, used to manage asynchronous API requests.
368 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
369 "clientOperationId": "A String", # [Output only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project.
370 "creationTimestamp": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format.
371 "id": "A String", # [Output Only] Unique identifier for the resource, generated by the server.
372 "zone": "A String", # [Output Only] URL of the zone where the operation resides. Only available when performing per-zone operations.
373 "operationType": "A String", # [Output only] Type of the operation. Operations include insert, update, and delete.
374 "httpErrorMessage": "A String", # [Output only] If operation fails, the HTTP error message returned.
375 "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 at when the operation will be complete. This number should be monotonically increasing as the operation progresses.
376 "httpErrorStatusCode": 42, # [Output only] If operation fails, the HTTP error status code returned.
377 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
378 "status": "A String", # [Output Only] Status of the operation.
379 "insertTime": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format.
380 "warnings": [ # [Output Only] If there are issues with this operation, a warning is returned.
381 {
382 "message": "A String", # [Output only] Optional human-readable details for this warning.
383 "code": "A String", # [Output only] The warning type identifier for this warning.
384 "data": [ # [Output only] Metadata for this warning in key:value format.
385 {
386 "value": "A String", # [Output Only] Metadata value for this warning.
387 "key": "A String", # [Output Only] Metadata key for this warning.
388 },
389 ],
390 },
391 ],
392 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
393 "startTime": "A String", # [Output Only] The time that this operation was started by the server, in RFC3339 text format.
394 "kind": "replicapool#operation", # [Output only] Type of the resource.
395 "name": "A String", # [Output Only] Name of the resource.
396 "region": "A String", # [Output Only] URL of the region where the operation resides. Only available when performing regional operations.
397 "error": { # [Output Only] If errors occurred during processing of this operation, this field will be populated.
398 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
399 {
400 "message": "A String", # [Output Only] An optional, human-readable error message.
401 "code": "A String", # [Output Only] The error type identifier for this error.
402 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
403 },
404 ],
405 },
406 "endTime": "A String", # [Output Only] The time that this operation was completed, in RFC3339 text format.
407 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
408 "targetLink": "A String", # [Output only] URL of the resource the operation is mutating.
409 }</pre>
410</div>
411
412<div class="method">
413 <code class="details" id="list">list(project, zone, maxResults=None, pageToken=None, filter=None)</code>
414 <pre>Retrieves the list of Instance Group Manager resources contained within the specified zone.
415
416Args:
417 project: string, The Google Developers Console project name. (required)
418 zone: string, The name of the zone in which the instance group manager resides. (required)
419 maxResults: integer, Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.
420 pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
421 filter: string, Optional. Filter expression for filtering listed resources.
422
423Returns:
424 An object of the form:
425
426 {
427 "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
428 "items": [ # A list of instance resources.
429 { # An Instance Group Manager resource.
430 "kind": "replicapool#instanceGroupManager", # [Output only] The resource type. Always replicapool#instanceGroupManager.
431 "group": "A String", # [Output only] The full URL of the instance group created by the manager. This group contains all of the instances being managed, and cannot contain non-managed instances.
432 "description": "A String", # An optional textual description of the instance group manager.
433 "targetPools": [ # The full URL of all target pools to which new instances in the group are added. Updating the target pool values does not affect existing instances.
434 "A String",
435 ],
436 "targetSize": 42, # [Output only] The number of instances that the manager is attempting to maintain. Deleting or abandoning instances affects this number, as does resizing the group.
437 "name": "A String", # The name of the instance group manager. Must be 1-63 characters long and comply with RFC1035. Supported characters include lowercase letters, numbers, and hyphens.
438 "baseInstanceName": "A String", # The base instance name to use for instances in this group. The value must be a valid RFC1035 name. Supported characters are lowercase letters, numbers, and hyphens (-). Instances are named by appending a hyphen and a random four-character string to the base instance name.
439 "fingerprint": "A String", # [Output only] Fingerprint of the instance group manager. This field is used for optimistic locking. An up-to-date fingerprint must be provided in order to modify the Instance Group Manager resource.
440 "instanceTemplate": "A String", # The full URL to an instance template from which all new instances will be created.
441 "creationTimestamp": "A String", # [Output only] The time the instance group manager was created, in RFC3339 text format.
442 "id": "A String", # [Output only] A server-assigned unique identifier for the resource.
443 "selfLink": "A String", # [Output only] The fully qualified URL for this resource.
444 "currentSize": 42, # [Output only] The number of instances that currently exist and are a part of this group. This includes instances that are starting but are not yet RUNNING, and instances that are in the process of being deleted or abandoned.
445 },
446 ],
447 "kind": "replicapool#instanceGroupManagerList", # Type of resource.
448 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
449 "selfLink": "A String", # Server defined URL for this resource (output only).
450 }</pre>
451</div>
452
453<div class="method">
454 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
455 <pre>Retrieves the next page of results.
456
457Args:
458 previous_request: The request for the previous page. (required)
459 previous_response: The response from the request for the previous page. (required)
460
461Returns:
462 A request object that you can call 'execute()' on to request the next
463 page. Returns None if there are no more items in the collection.
464 </pre>
465</div>
466
467<div class="method">
468 <code class="details" id="recreateInstances">recreateInstances(project, zone, instanceGroupManager, body)</code>
469 <pre>Recreates the specified instances. The instances are deleted, then recreated using the instance group manager's current instance template.
470
471Args:
472 project: string, The Google Developers Console project name. (required)
473 zone: string, The name of the zone in which the instance group manager resides. (required)
474 instanceGroupManager: string, The name of the instance group manager. (required)
475 body: object, The request body. (required)
476 The object takes the form of:
477
478{
479 "instances": [ # The names of one or more instances to recreate. For example:
480 # { 'instances': [ 'instance-c3po', 'instance-r2d2' ] }
481 "A String",
482 ],
483 }
484
485
486Returns:
487 An object of the form:
488
489 { # An operation resource, used to manage asynchronous API requests.
490 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
491 "clientOperationId": "A String", # [Output only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project.
492 "creationTimestamp": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format.
493 "id": "A String", # [Output Only] Unique identifier for the resource, generated by the server.
494 "zone": "A String", # [Output Only] URL of the zone where the operation resides. Only available when performing per-zone operations.
495 "operationType": "A String", # [Output only] Type of the operation. Operations include insert, update, and delete.
496 "httpErrorMessage": "A String", # [Output only] If operation fails, the HTTP error message returned.
497 "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 at when the operation will be complete. This number should be monotonically increasing as the operation progresses.
498 "httpErrorStatusCode": 42, # [Output only] If operation fails, the HTTP error status code returned.
499 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
500 "status": "A String", # [Output Only] Status of the operation.
501 "insertTime": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format.
502 "warnings": [ # [Output Only] If there are issues with this operation, a warning is returned.
503 {
504 "message": "A String", # [Output only] Optional human-readable details for this warning.
505 "code": "A String", # [Output only] The warning type identifier for this warning.
506 "data": [ # [Output only] Metadata for this warning in key:value format.
507 {
508 "value": "A String", # [Output Only] Metadata value for this warning.
509 "key": "A String", # [Output Only] Metadata key for this warning.
510 },
511 ],
512 },
513 ],
514 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
515 "startTime": "A String", # [Output Only] The time that this operation was started by the server, in RFC3339 text format.
516 "kind": "replicapool#operation", # [Output only] Type of the resource.
517 "name": "A String", # [Output Only] Name of the resource.
518 "region": "A String", # [Output Only] URL of the region where the operation resides. Only available when performing regional operations.
519 "error": { # [Output Only] If errors occurred during processing of this operation, this field will be populated.
520 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
521 {
522 "message": "A String", # [Output Only] An optional, human-readable error message.
523 "code": "A String", # [Output Only] The error type identifier for this error.
524 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
525 },
526 ],
527 },
528 "endTime": "A String", # [Output Only] The time that this operation was completed, in RFC3339 text format.
529 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
530 "targetLink": "A String", # [Output only] URL of the resource the operation is mutating.
531 }</pre>
532</div>
533
534<div class="method">
535 <code class="details" id="resize">resize(project, zone, instanceGroupManager, size)</code>
536 <pre>Resizes the managed instance group up or down. If resized up, new instances are created using the current instance template. If resized down, instances are removed in the order outlined in Resizing a managed instance group.
537
538Args:
539 project: string, The Google Developers Console project name. (required)
540 zone: string, The name of the zone in which the instance group manager resides. (required)
541 instanceGroupManager: string, The name of the instance group manager. (required)
542 size: integer, Number of instances that should exist in this Instance Group Manager. (required)
543
544Returns:
545 An object of the form:
546
547 { # An operation resource, used to manage asynchronous API requests.
548 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
549 "clientOperationId": "A String", # [Output only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project.
550 "creationTimestamp": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format.
551 "id": "A String", # [Output Only] Unique identifier for the resource, generated by the server.
552 "zone": "A String", # [Output Only] URL of the zone where the operation resides. Only available when performing per-zone operations.
553 "operationType": "A String", # [Output only] Type of the operation. Operations include insert, update, and delete.
554 "httpErrorMessage": "A String", # [Output only] If operation fails, the HTTP error message returned.
555 "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 at when the operation will be complete. This number should be monotonically increasing as the operation progresses.
556 "httpErrorStatusCode": 42, # [Output only] If operation fails, the HTTP error status code returned.
557 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
558 "status": "A String", # [Output Only] Status of the operation.
559 "insertTime": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format.
560 "warnings": [ # [Output Only] If there are issues with this operation, a warning is returned.
561 {
562 "message": "A String", # [Output only] Optional human-readable details for this warning.
563 "code": "A String", # [Output only] The warning type identifier for this warning.
564 "data": [ # [Output only] Metadata for this warning in key:value format.
565 {
566 "value": "A String", # [Output Only] Metadata value for this warning.
567 "key": "A String", # [Output Only] Metadata key for this warning.
568 },
569 ],
570 },
571 ],
572 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
573 "startTime": "A String", # [Output Only] The time that this operation was started by the server, in RFC3339 text format.
574 "kind": "replicapool#operation", # [Output only] Type of the resource.
575 "name": "A String", # [Output Only] Name of the resource.
576 "region": "A String", # [Output Only] URL of the region where the operation resides. Only available when performing regional operations.
577 "error": { # [Output Only] If errors occurred during processing of this operation, this field will be populated.
578 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
579 {
580 "message": "A String", # [Output Only] An optional, human-readable error message.
581 "code": "A String", # [Output Only] The error type identifier for this error.
582 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
583 },
584 ],
585 },
586 "endTime": "A String", # [Output Only] The time that this operation was completed, in RFC3339 text format.
587 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
588 "targetLink": "A String", # [Output only] URL of the resource the operation is mutating.
589 }</pre>
590</div>
591
592<div class="method">
593 <code class="details" id="setInstanceTemplate">setInstanceTemplate(project, zone, instanceGroupManager, body)</code>
594 <pre>Sets the instance template to use when creating new instances in this group. Existing instances are not affected.
595
596Args:
597 project: string, The Google Developers Console project name. (required)
598 zone: string, The name of the zone in which the instance group manager resides. (required)
599 instanceGroupManager: string, The name of the instance group manager. (required)
600 body: object, The request body. (required)
601 The object takes the form of:
602
603{
604 "instanceTemplate": "A String", # The full URL to an Instance Template from which all new instances will be created.
605 }
606
607
608Returns:
609 An object of the form:
610
611 { # An operation resource, used to manage asynchronous API requests.
612 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
613 "clientOperationId": "A String", # [Output only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project.
614 "creationTimestamp": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format.
615 "id": "A String", # [Output Only] Unique identifier for the resource, generated by the server.
616 "zone": "A String", # [Output Only] URL of the zone where the operation resides. Only available when performing per-zone operations.
617 "operationType": "A String", # [Output only] Type of the operation. Operations include insert, update, and delete.
618 "httpErrorMessage": "A String", # [Output only] If operation fails, the HTTP error message returned.
619 "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 at when the operation will be complete. This number should be monotonically increasing as the operation progresses.
620 "httpErrorStatusCode": 42, # [Output only] If operation fails, the HTTP error status code returned.
621 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
622 "status": "A String", # [Output Only] Status of the operation.
623 "insertTime": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format.
624 "warnings": [ # [Output Only] If there are issues with this operation, a warning is returned.
625 {
626 "message": "A String", # [Output only] Optional human-readable details for this warning.
627 "code": "A String", # [Output only] The warning type identifier for this warning.
628 "data": [ # [Output only] Metadata for this warning in key:value format.
629 {
630 "value": "A String", # [Output Only] Metadata value for this warning.
631 "key": "A String", # [Output Only] Metadata key for this warning.
632 },
633 ],
634 },
635 ],
636 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
637 "startTime": "A String", # [Output Only] The time that this operation was started by the server, in RFC3339 text format.
638 "kind": "replicapool#operation", # [Output only] Type of the resource.
639 "name": "A String", # [Output Only] Name of the resource.
640 "region": "A String", # [Output Only] URL of the region where the operation resides. Only available when performing regional operations.
641 "error": { # [Output Only] If errors occurred during processing of this operation, this field will be populated.
642 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
643 {
644 "message": "A String", # [Output Only] An optional, human-readable error message.
645 "code": "A String", # [Output Only] The error type identifier for this error.
646 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
647 },
648 ],
649 },
650 "endTime": "A String", # [Output Only] The time that this operation was completed, in RFC3339 text format.
651 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
652 "targetLink": "A String", # [Output only] URL of the resource the operation is mutating.
653 }</pre>
654</div>
655
656<div class="method">
657 <code class="details" id="setTargetPools">setTargetPools(project, zone, instanceGroupManager, body)</code>
658 <pre>Modifies the target pools to which all new instances in this group are assigned. Existing instances in the group are not affected.
659
660Args:
661 project: string, The Google Developers Console project name. (required)
662 zone: string, The name of the zone in which the instance group manager resides. (required)
663 instanceGroupManager: string, The name of the instance group manager. (required)
664 body: object, The request body. (required)
665 The object takes the form of:
666
667{
668 "targetPools": [ # A list of fully-qualified URLs to existing Target Pool resources. New instances in the Instance Group Manager will be added to the specified target pools; existing instances are not affected.
669 "A String",
670 ],
671 "fingerprint": "A String", # The current fingerprint of the Instance Group Manager resource. If this does not match the server-side fingerprint of the resource, then the request will be rejected.
672 }
673
674
675Returns:
676 An object of the form:
677
678 { # An operation resource, used to manage asynchronous API requests.
679 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
680 "clientOperationId": "A String", # [Output only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project.
681 "creationTimestamp": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format.
682 "id": "A String", # [Output Only] Unique identifier for the resource, generated by the server.
683 "zone": "A String", # [Output Only] URL of the zone where the operation resides. Only available when performing per-zone operations.
684 "operationType": "A String", # [Output only] Type of the operation. Operations include insert, update, and delete.
685 "httpErrorMessage": "A String", # [Output only] If operation fails, the HTTP error message returned.
686 "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 at when the operation will be complete. This number should be monotonically increasing as the operation progresses.
687 "httpErrorStatusCode": 42, # [Output only] If operation fails, the HTTP error status code returned.
688 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
689 "status": "A String", # [Output Only] Status of the operation.
690 "insertTime": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format.
691 "warnings": [ # [Output Only] If there are issues with this operation, a warning is returned.
692 {
693 "message": "A String", # [Output only] Optional human-readable details for this warning.
694 "code": "A String", # [Output only] The warning type identifier for this warning.
695 "data": [ # [Output only] Metadata for this warning in key:value format.
696 {
697 "value": "A String", # [Output Only] Metadata value for this warning.
698 "key": "A String", # [Output Only] Metadata key for this warning.
699 },
700 ],
701 },
702 ],
703 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
704 "startTime": "A String", # [Output Only] The time that this operation was started by the server, in RFC3339 text format.
705 "kind": "replicapool#operation", # [Output only] Type of the resource.
706 "name": "A String", # [Output Only] Name of the resource.
707 "region": "A String", # [Output Only] URL of the region where the operation resides. Only available when performing regional operations.
708 "error": { # [Output Only] If errors occurred during processing of this operation, this field will be populated.
709 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
710 {
711 "message": "A String", # [Output Only] An optional, human-readable error message.
712 "code": "A String", # [Output Only] The error type identifier for this error.
713 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
714 },
715 ],
716 },
717 "endTime": "A String", # [Output Only] The time that this operation was completed, in RFC3339 text format.
718 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
719 "targetLink": "A String", # [Output only] URL of the resource the operation is mutating.
720 }</pre>
721</div>
722
723</body></html>