1<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 deleted, then removed from the instance group and any target pools of which they were a member. 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 deleted, then removed from the instance group and any target pools of which they were a member. 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 "autoHealingPolicies": [ # The autohealing policy for this managed instance group. You can specify only one value. 320 { 321 "healthCheck": "A String", # The URL for the HealthCheck that signals autohealing. 322 "actionType": "A String", # The action to perform when an instance becomes unhealthy. Possible values are RECREATE or REBOOT. RECREATE replaces an unhealthy instance with a new instance that is based on the instance template for this managed instance group. REBOOT performs a soft reboot on an instance. If the instance cannot reboot, the instance performs a hard restart. 323 }, 324 ], 325 "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. 326 "A String", 327 ], 328 "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. 329 "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. 330 "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. 331 "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. 332 "instanceTemplate": "A String", # The full URL to an instance template from which all new instances will be created. 333 "creationTimestamp": "A String", # [Output only] The time the instance group manager was created, in RFC3339 text format. 334 "id": "A String", # [Output only] A server-assigned unique identifier for the resource. 335 "selfLink": "A String", # [Output only] The fully qualified URL for this resource. 336 "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. 337 }</pre> 338</div> 339 340<div class="method"> 341 <code class="details" id="insert">insert(project, zone, size, body)</code> 342 <pre>Creates an instance group manager, as well as the instance group and the specified number of instances. 343 344Args: 345 project: string, The Google Developers Console project name. (required) 346 zone: string, The name of the zone in which the instance group manager resides. (required) 347 size: integer, Number of instances that should exist. (required) 348 body: object, The request body. (required) 349 The object takes the form of: 350 351{ # An Instance Group Manager resource. 352 "kind": "replicapool#instanceGroupManager", # [Output only] The resource type. Always replicapool#instanceGroupManager. 353 "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. 354 "description": "A String", # An optional textual description of the instance group manager. 355 "autoHealingPolicies": [ # The autohealing policy for this managed instance group. You can specify only one value. 356 { 357 "healthCheck": "A String", # The URL for the HealthCheck that signals autohealing. 358 "actionType": "A String", # The action to perform when an instance becomes unhealthy. Possible values are RECREATE or REBOOT. RECREATE replaces an unhealthy instance with a new instance that is based on the instance template for this managed instance group. REBOOT performs a soft reboot on an instance. If the instance cannot reboot, the instance performs a hard restart. 359 }, 360 ], 361 "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. 362 "A String", 363 ], 364 "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. 365 "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. 366 "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. 367 "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. 368 "instanceTemplate": "A String", # The full URL to an instance template from which all new instances will be created. 369 "creationTimestamp": "A String", # [Output only] The time the instance group manager was created, in RFC3339 text format. 370 "id": "A String", # [Output only] A server-assigned unique identifier for the resource. 371 "selfLink": "A String", # [Output only] The fully qualified URL for this resource. 372 "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. 373 } 374 375 376Returns: 377 An object of the form: 378 379 { # An operation resource, used to manage asynchronous API requests. 380 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target. 381 "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. 382 "creationTimestamp": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format. 383 "id": "A String", # [Output Only] Unique identifier for the resource, generated by the server. 384 "zone": "A String", # [Output Only] URL of the zone where the operation resides. Only available when performing per-zone operations. 385 "operationType": "A String", # [Output only] Type of the operation. Operations include insert, update, and delete. 386 "httpErrorMessage": "A String", # [Output only] If operation fails, the HTTP error message returned. 387 "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. 388 "httpErrorStatusCode": 42, # [Output only] If operation fails, the HTTP error status code returned. 389 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 390 "status": "A String", # [Output Only] Status of the operation. 391 "insertTime": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format. 392 "warnings": [ # [Output Only] If there are issues with this operation, a warning is returned. 393 { 394 "message": "A String", # [Output only] Optional human-readable details for this warning. 395 "code": "A String", # [Output only] The warning type identifier for this warning. 396 "data": [ # [Output only] Metadata for this warning in key:value format. 397 { 398 "value": "A String", # [Output Only] Metadata value for this warning. 399 "key": "A String", # [Output Only] Metadata key for this warning. 400 }, 401 ], 402 }, 403 ], 404 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 405 "startTime": "A String", # [Output Only] The time that this operation was started by the server, in RFC3339 text format. 406 "kind": "replicapool#operation", # [Output only] Type of the resource. 407 "name": "A String", # [Output Only] Name of the resource. 408 "region": "A String", # [Output Only] URL of the region where the operation resides. Only available when performing regional operations. 409 "error": { # [Output Only] If errors occurred during processing of this operation, this field will be populated. 410 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 411 { 412 "message": "A String", # [Output Only] An optional, human-readable error message. 413 "code": "A String", # [Output Only] The error type identifier for this error. 414 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional. 415 }, 416 ], 417 }, 418 "endTime": "A String", # [Output Only] The time that this operation was completed, in RFC3339 text format. 419 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 420 "targetLink": "A String", # [Output only] URL of the resource the operation is mutating. 421 }</pre> 422</div> 423 424<div class="method"> 425 <code class="details" id="list">list(project, zone, maxResults=None, pageToken=None, filter=None)</code> 426 <pre>Retrieves the list of Instance Group Manager resources contained within the specified zone. 427 428Args: 429 project: string, The Google Developers Console project name. (required) 430 zone: string, The name of the zone in which the instance group manager resides. (required) 431 maxResults: integer, Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500. 432 pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request. 433 filter: string, Optional. Filter expression for filtering listed resources. 434 435Returns: 436 An object of the form: 437 438 { 439 "nextPageToken": "A String", # A token used to continue a truncated list request (output only). 440 "items": [ # A list of instance resources. 441 { # An Instance Group Manager resource. 442 "kind": "replicapool#instanceGroupManager", # [Output only] The resource type. Always replicapool#instanceGroupManager. 443 "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. 444 "description": "A String", # An optional textual description of the instance group manager. 445 "autoHealingPolicies": [ # The autohealing policy for this managed instance group. You can specify only one value. 446 { 447 "healthCheck": "A String", # The URL for the HealthCheck that signals autohealing. 448 "actionType": "A String", # The action to perform when an instance becomes unhealthy. Possible values are RECREATE or REBOOT. RECREATE replaces an unhealthy instance with a new instance that is based on the instance template for this managed instance group. REBOOT performs a soft reboot on an instance. If the instance cannot reboot, the instance performs a hard restart. 449 }, 450 ], 451 "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. 452 "A String", 453 ], 454 "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. 455 "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. 456 "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. 457 "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. 458 "instanceTemplate": "A String", # The full URL to an instance template from which all new instances will be created. 459 "creationTimestamp": "A String", # [Output only] The time the instance group manager was created, in RFC3339 text format. 460 "id": "A String", # [Output only] A server-assigned unique identifier for the resource. 461 "selfLink": "A String", # [Output only] The fully qualified URL for this resource. 462 "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. 463 }, 464 ], 465 "kind": "replicapool#instanceGroupManagerList", # Type of resource. 466 "id": "A String", # Unique identifier for the resource; defined by the server (output only). 467 "selfLink": "A String", # Server defined URL for this resource (output only). 468 }</pre> 469</div> 470 471<div class="method"> 472 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 473 <pre>Retrieves the next page of results. 474 475Args: 476 previous_request: The request for the previous page. (required) 477 previous_response: The response from the request for the previous page. (required) 478 479Returns: 480 A request object that you can call 'execute()' on to request the next 481 page. Returns None if there are no more items in the collection. 482 </pre> 483</div> 484 485<div class="method"> 486 <code class="details" id="recreateInstances">recreateInstances(project, zone, instanceGroupManager, body)</code> 487 <pre>Recreates the specified instances. The instances are deleted, then recreated using the instance group manager's current instance template. 488 489Args: 490 project: string, The Google Developers Console project name. (required) 491 zone: string, The name of the zone in which the instance group manager resides. (required) 492 instanceGroupManager: string, The name of the instance group manager. (required) 493 body: object, The request body. (required) 494 The object takes the form of: 495 496{ 497 "instances": [ # The names of one or more instances to recreate. For example: 498 # { 'instances': [ 'instance-c3po', 'instance-r2d2' ] } 499 "A String", 500 ], 501 } 502 503 504Returns: 505 An object of the form: 506 507 { # An operation resource, used to manage asynchronous API requests. 508 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target. 509 "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. 510 "creationTimestamp": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format. 511 "id": "A String", # [Output Only] Unique identifier for the resource, generated by the server. 512 "zone": "A String", # [Output Only] URL of the zone where the operation resides. Only available when performing per-zone operations. 513 "operationType": "A String", # [Output only] Type of the operation. Operations include insert, update, and delete. 514 "httpErrorMessage": "A String", # [Output only] If operation fails, the HTTP error message returned. 515 "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. 516 "httpErrorStatusCode": 42, # [Output only] If operation fails, the HTTP error status code returned. 517 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 518 "status": "A String", # [Output Only] Status of the operation. 519 "insertTime": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format. 520 "warnings": [ # [Output Only] If there are issues with this operation, a warning is returned. 521 { 522 "message": "A String", # [Output only] Optional human-readable details for this warning. 523 "code": "A String", # [Output only] The warning type identifier for this warning. 524 "data": [ # [Output only] Metadata for this warning in key:value format. 525 { 526 "value": "A String", # [Output Only] Metadata value for this warning. 527 "key": "A String", # [Output Only] Metadata key for this warning. 528 }, 529 ], 530 }, 531 ], 532 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 533 "startTime": "A String", # [Output Only] The time that this operation was started by the server, in RFC3339 text format. 534 "kind": "replicapool#operation", # [Output only] Type of the resource. 535 "name": "A String", # [Output Only] Name of the resource. 536 "region": "A String", # [Output Only] URL of the region where the operation resides. Only available when performing regional operations. 537 "error": { # [Output Only] If errors occurred during processing of this operation, this field will be populated. 538 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 539 { 540 "message": "A String", # [Output Only] An optional, human-readable error message. 541 "code": "A String", # [Output Only] The error type identifier for this error. 542 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional. 543 }, 544 ], 545 }, 546 "endTime": "A String", # [Output Only] The time that this operation was completed, in RFC3339 text format. 547 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 548 "targetLink": "A String", # [Output only] URL of the resource the operation is mutating. 549 }</pre> 550</div> 551 552<div class="method"> 553 <code class="details" id="resize">resize(project, zone, instanceGroupManager, size)</code> 554 <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. 555 556Args: 557 project: string, The Google Developers Console project name. (required) 558 zone: string, The name of the zone in which the instance group manager resides. (required) 559 instanceGroupManager: string, The name of the instance group manager. (required) 560 size: integer, Number of instances that should exist in this Instance Group Manager. (required) 561 562Returns: 563 An object of the form: 564 565 { # An operation resource, used to manage asynchronous API requests. 566 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target. 567 "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. 568 "creationTimestamp": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format. 569 "id": "A String", # [Output Only] Unique identifier for the resource, generated by the server. 570 "zone": "A String", # [Output Only] URL of the zone where the operation resides. Only available when performing per-zone operations. 571 "operationType": "A String", # [Output only] Type of the operation. Operations include insert, update, and delete. 572 "httpErrorMessage": "A String", # [Output only] If operation fails, the HTTP error message returned. 573 "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. 574 "httpErrorStatusCode": 42, # [Output only] If operation fails, the HTTP error status code returned. 575 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 576 "status": "A String", # [Output Only] Status of the operation. 577 "insertTime": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format. 578 "warnings": [ # [Output Only] If there are issues with this operation, a warning is returned. 579 { 580 "message": "A String", # [Output only] Optional human-readable details for this warning. 581 "code": "A String", # [Output only] The warning type identifier for this warning. 582 "data": [ # [Output only] Metadata for this warning in key:value format. 583 { 584 "value": "A String", # [Output Only] Metadata value for this warning. 585 "key": "A String", # [Output Only] Metadata key for this warning. 586 }, 587 ], 588 }, 589 ], 590 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 591 "startTime": "A String", # [Output Only] The time that this operation was started by the server, in RFC3339 text format. 592 "kind": "replicapool#operation", # [Output only] Type of the resource. 593 "name": "A String", # [Output Only] Name of the resource. 594 "region": "A String", # [Output Only] URL of the region where the operation resides. Only available when performing regional operations. 595 "error": { # [Output Only] If errors occurred during processing of this operation, this field will be populated. 596 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 597 { 598 "message": "A String", # [Output Only] An optional, human-readable error message. 599 "code": "A String", # [Output Only] The error type identifier for this error. 600 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional. 601 }, 602 ], 603 }, 604 "endTime": "A String", # [Output Only] The time that this operation was completed, in RFC3339 text format. 605 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 606 "targetLink": "A String", # [Output only] URL of the resource the operation is mutating. 607 }</pre> 608</div> 609 610<div class="method"> 611 <code class="details" id="setInstanceTemplate">setInstanceTemplate(project, zone, instanceGroupManager, body)</code> 612 <pre>Sets the instance template to use when creating new instances in this group. Existing instances are not affected. 613 614Args: 615 project: string, The Google Developers Console project name. (required) 616 zone: string, The name of the zone in which the instance group manager resides. (required) 617 instanceGroupManager: string, The name of the instance group manager. (required) 618 body: object, The request body. (required) 619 The object takes the form of: 620 621{ 622 "instanceTemplate": "A String", # The full URL to an Instance Template from which all new instances will be created. 623 } 624 625 626Returns: 627 An object of the form: 628 629 { # An operation resource, used to manage asynchronous API requests. 630 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target. 631 "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. 632 "creationTimestamp": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format. 633 "id": "A String", # [Output Only] Unique identifier for the resource, generated by the server. 634 "zone": "A String", # [Output Only] URL of the zone where the operation resides. Only available when performing per-zone operations. 635 "operationType": "A String", # [Output only] Type of the operation. Operations include insert, update, and delete. 636 "httpErrorMessage": "A String", # [Output only] If operation fails, the HTTP error message returned. 637 "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. 638 "httpErrorStatusCode": 42, # [Output only] If operation fails, the HTTP error status code returned. 639 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 640 "status": "A String", # [Output Only] Status of the operation. 641 "insertTime": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format. 642 "warnings": [ # [Output Only] If there are issues with this operation, a warning is returned. 643 { 644 "message": "A String", # [Output only] Optional human-readable details for this warning. 645 "code": "A String", # [Output only] The warning type identifier for this warning. 646 "data": [ # [Output only] Metadata for this warning in key:value format. 647 { 648 "value": "A String", # [Output Only] Metadata value for this warning. 649 "key": "A String", # [Output Only] Metadata key for this warning. 650 }, 651 ], 652 }, 653 ], 654 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 655 "startTime": "A String", # [Output Only] The time that this operation was started by the server, in RFC3339 text format. 656 "kind": "replicapool#operation", # [Output only] Type of the resource. 657 "name": "A String", # [Output Only] Name of the resource. 658 "region": "A String", # [Output Only] URL of the region where the operation resides. Only available when performing regional operations. 659 "error": { # [Output Only] If errors occurred during processing of this operation, this field will be populated. 660 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 661 { 662 "message": "A String", # [Output Only] An optional, human-readable error message. 663 "code": "A String", # [Output Only] The error type identifier for this error. 664 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional. 665 }, 666 ], 667 }, 668 "endTime": "A String", # [Output Only] The time that this operation was completed, in RFC3339 text format. 669 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 670 "targetLink": "A String", # [Output only] URL of the resource the operation is mutating. 671 }</pre> 672</div> 673 674<div class="method"> 675 <code class="details" id="setTargetPools">setTargetPools(project, zone, instanceGroupManager, body)</code> 676 <pre>Modifies the target pools to which all new instances in this group are assigned. Existing instances in the group are not affected. 677 678Args: 679 project: string, The Google Developers Console project name. (required) 680 zone: string, The name of the zone in which the instance group manager resides. (required) 681 instanceGroupManager: string, The name of the instance group manager. (required) 682 body: object, The request body. (required) 683 The object takes the form of: 684 685{ 686 "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. 687 "A String", 688 ], 689 "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. 690 } 691 692 693Returns: 694 An object of the form: 695 696 { # An operation resource, used to manage asynchronous API requests. 697 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target. 698 "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. 699 "creationTimestamp": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format. 700 "id": "A String", # [Output Only] Unique identifier for the resource, generated by the server. 701 "zone": "A String", # [Output Only] URL of the zone where the operation resides. Only available when performing per-zone operations. 702 "operationType": "A String", # [Output only] Type of the operation. Operations include insert, update, and delete. 703 "httpErrorMessage": "A String", # [Output only] If operation fails, the HTTP error message returned. 704 "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. 705 "httpErrorStatusCode": 42, # [Output only] If operation fails, the HTTP error status code returned. 706 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 707 "status": "A String", # [Output Only] Status of the operation. 708 "insertTime": "A String", # [Output Only] The time that this operation was requested, in RFC3339 text format. 709 "warnings": [ # [Output Only] If there are issues with this operation, a warning is returned. 710 { 711 "message": "A String", # [Output only] Optional human-readable details for this warning. 712 "code": "A String", # [Output only] The warning type identifier for this warning. 713 "data": [ # [Output only] Metadata for this warning in key:value format. 714 { 715 "value": "A String", # [Output Only] Metadata value for this warning. 716 "key": "A String", # [Output Only] Metadata key for this warning. 717 }, 718 ], 719 }, 720 ], 721 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 722 "startTime": "A String", # [Output Only] The time that this operation was started by the server, in RFC3339 text format. 723 "kind": "replicapool#operation", # [Output only] Type of the resource. 724 "name": "A String", # [Output Only] Name of the resource. 725 "region": "A String", # [Output Only] URL of the region where the operation resides. Only available when performing regional operations. 726 "error": { # [Output Only] If errors occurred during processing of this operation, this field will be populated. 727 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 728 { 729 "message": "A String", # [Output Only] An optional, human-readable error message. 730 "code": "A String", # [Output Only] The error type identifier for this error. 731 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional. 732 }, 733 ], 734 }, 735 "endTime": "A String", # [Output Only] The time that this operation was completed, in RFC3339 text format. 736 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 737 "targetLink": "A String", # [Output only] URL of the resource the operation is mutating. 738 }</pre> 739</div> 740 741</body></html>