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="compute_beta.html">Compute Engine API</a> . <a href="compute_beta.instanceGroups.html">instanceGroups</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#addInstances">addInstances(project, zone, instanceGroup, body=None, requestId=None, x__xgafv=None)</a></code></p> 79<p class="firstline">Adds a list of instances to the specified instance group. All of the instances in the instance group must be in the same network/subnetwork. Read Adding instances for more information.</p> 80<p class="toc_element"> 81 <code><a href="#aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p> 82<p class="firstline">Retrieves the list of instance groups and sorts them by zone.</p> 83<p class="toc_element"> 84 <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p> 85<p class="firstline">Retrieves the next page of results.</p> 86<p class="toc_element"> 87 <code><a href="#close">close()</a></code></p> 88<p class="firstline">Close httplib2 connections.</p> 89<p class="toc_element"> 90 <code><a href="#delete">delete(project, zone, instanceGroup, requestId=None, x__xgafv=None)</a></code></p> 91<p class="firstline">Deletes the specified instance group. The instances in the group are not deleted. Note that instance group must not belong to a backend service. Read Deleting an instance group for more information.</p> 92<p class="toc_element"> 93 <code><a href="#get">get(project, zone, instanceGroup, x__xgafv=None)</a></code></p> 94<p class="firstline">Returns the specified zonal instance group. Get a list of available zonal instance groups by making a list() request. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead.</p> 95<p class="toc_element"> 96 <code><a href="#insert">insert(project, zone, body=None, requestId=None, x__xgafv=None)</a></code></p> 97<p class="firstline">Creates an instance group in the specified project using the parameters that are included in the request.</p> 98<p class="toc_element"> 99 <code><a href="#list">list(project, zone, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p> 100<p class="firstline">Retrieves the list of zonal instance group resources contained within the specified zone. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead.</p> 101<p class="toc_element"> 102 <code><a href="#listInstances">listInstances(project, zone, instanceGroup, body=None, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p> 103<p class="firstline">Lists the instances in the specified instance group. The orderBy query parameter is not supported.</p> 104<p class="toc_element"> 105 <code><a href="#listInstances_next">listInstances_next(previous_request, previous_response)</a></code></p> 106<p class="firstline">Retrieves the next page of results.</p> 107<p class="toc_element"> 108 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 109<p class="firstline">Retrieves the next page of results.</p> 110<p class="toc_element"> 111 <code><a href="#removeInstances">removeInstances(project, zone, instanceGroup, body=None, requestId=None, x__xgafv=None)</a></code></p> 112<p class="firstline">Removes one or more instances from the specified instance group, but does not delete those instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration before the VM instance is removed or deleted.</p> 113<p class="toc_element"> 114 <code><a href="#setNamedPorts">setNamedPorts(project, zone, instanceGroup, body=None, requestId=None, x__xgafv=None)</a></code></p> 115<p class="firstline">Sets the named ports for the specified instance group.</p> 116<p class="toc_element"> 117 <code><a href="#testIamPermissions">testIamPermissions(project, zone, resource, body=None, x__xgafv=None)</a></code></p> 118<p class="firstline">Returns permissions that a caller has on the specified resource.</p> 119<h3>Method Details</h3> 120<div class="method"> 121 <code class="details" id="addInstances">addInstances(project, zone, instanceGroup, body=None, requestId=None, x__xgafv=None)</code> 122 <pre>Adds a list of instances to the specified instance group. All of the instances in the instance group must be in the same network/subnetwork. Read Adding instances for more information. 123 124Args: 125 project: string, Project ID for this request. (required) 126 zone: string, The name of the zone where the instance group is located. (required) 127 instanceGroup: string, The name of the instance group where you are adding instances. (required) 128 body: object, The request body. 129 The object takes the form of: 130 131{ 132 "instances": [ # The list of instances to add to the instance group. 133 { 134 "instance": "A String", # The URL for a specific instance. @required compute.instancegroups.addInstances/removeInstances 135 }, 136 ], 137} 138 139 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 140 x__xgafv: string, V1 error format. 141 Allowed values 142 1 - v1 error format 143 2 - v2 error format 144 145Returns: 146 An object of the form: 147 148 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/beta/globalOperations) * [Regional](/compute/docs/reference/rest/beta/regionOperations) * [Zonal](/compute/docs/reference/rest/beta/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 149 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 150 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 151 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 152 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 153 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 154 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 155 { 156 "code": "A String", # [Output Only] The error type identifier for this error. 157 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 158 "message": "A String", # [Output Only] An optional, human-readable error message. 159 }, 160 ], 161 }, 162 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 163 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a `404` means the resource was not found. 164 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 165 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 166 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 167 "name": "A String", # [Output Only] Name of the operation. 168 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 169 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 170 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 171 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 172 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 173 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 174 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 175 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 176 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 177 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 178 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 179 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 180 { 181 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 182 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 183 { 184 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 185 "value": "A String", # [Output Only] A warning data value corresponding to the key. 186 }, 187 ], 188 "message": "A String", # [Output Only] A human-readable description of the warning code. 189 }, 190 ], 191 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 192}</pre> 193</div> 194 195<div class="method"> 196 <code class="details" id="aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code> 197 <pre>Retrieves the list of instance groups and sorts them by zone. 198 199Args: 200 project: string, Project ID for this request. (required) 201 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` 202 includeAllScopes: boolean, Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. 203 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) 204 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 205 pageToken: string, Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. 206 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 207 x__xgafv: string, V1 error format. 208 Allowed values 209 1 - v1 error format 210 2 - v2 error format 211 212Returns: 213 An object of the form: 214 215 { 216 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 217 "items": { # A list of InstanceGroupsScopedList resources. 218 "a_key": { # The name of the scope that contains this set of instance groups. 219 "instanceGroups": [ # [Output Only] The list of instance groups that are contained in this scope. 220 { # Represents an Instance Group resource. Instance Groups can be used to configure a target for load balancing. Instance groups can either be managed or unmanaged. To create managed instance groups, use the instanceGroupManager or regionInstanceGroupManager resource instead. Use zonal unmanaged instance groups if you need to apply load balancing to groups of heterogeneous instances or if you need to manage the instances yourself. You cannot create regional unmanaged instance groups. For more information, read Instance groups. 221 "creationTimestamp": "A String", # [Output Only] The creation timestamp for this instance group in RFC3339 text format. 222 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 223 "fingerprint": "A String", # [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently. 224 "id": "A String", # [Output Only] A unique identifier for this instance group, generated by the server. 225 "kind": "compute#instanceGroup", # [Output Only] The resource type, which is always compute#instanceGroup for instance groups. 226 "name": "A String", # The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035. 227 "namedPorts": [ # Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "http", port: 80},{name: "http", port: 8080}] Named ports apply to all instances in this instance group. 228 { # The named port. For example: <"http", 80>. 229 "name": "A String", # The name for this named port. The name must be 1-63 characters long, and comply with RFC1035. 230 "port": 42, # The port number, which can be a value between 1 and 65535. 231 }, 232 ], 233 "network": "A String", # [Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0). 234 "region": "A String", # [Output Only] The URL of the region where the instance group is located (for regional resources). 235 "selfLink": "A String", # [Output Only] The URL for this instance group. The server generates this URL. 236 "size": 42, # [Output Only] The total number of instances in the instance group. 237 "subnetwork": "A String", # [Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0). 238 "zone": "A String", # [Output Only] The URL of the zone where the instance group is located (for zonal resources). 239 }, 240 ], 241 "warning": { # [Output Only] An informational warning that replaces the list of instance groups when the list is empty. 242 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 243 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 244 { 245 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 246 "value": "A String", # [Output Only] A warning data value corresponding to the key. 247 }, 248 ], 249 "message": "A String", # [Output Only] A human-readable description of the warning code. 250 }, 251 }, 252 }, 253 "kind": "compute#instanceGroupAggregatedList", # [Output Only] The resource type, which is always compute#instanceGroupAggregatedList for aggregated lists of instance groups. 254 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 255 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 256 "unreachables": [ # [Output Only] Unreachable resources. 257 "A String", 258 ], 259 "warning": { # [Output Only] Informational warning message. 260 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 261 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 262 { 263 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 264 "value": "A String", # [Output Only] A warning data value corresponding to the key. 265 }, 266 ], 267 "message": "A String", # [Output Only] A human-readable description of the warning code. 268 }, 269}</pre> 270</div> 271 272<div class="method"> 273 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code> 274 <pre>Retrieves the next page of results. 275 276Args: 277 previous_request: The request for the previous page. (required) 278 previous_response: The response from the request for the previous page. (required) 279 280Returns: 281 A request object that you can call 'execute()' on to request the next 282 page. Returns None if there are no more items in the collection. 283 </pre> 284</div> 285 286<div class="method"> 287 <code class="details" id="close">close()</code> 288 <pre>Close httplib2 connections.</pre> 289</div> 290 291<div class="method"> 292 <code class="details" id="delete">delete(project, zone, instanceGroup, requestId=None, x__xgafv=None)</code> 293 <pre>Deletes the specified instance group. The instances in the group are not deleted. Note that instance group must not belong to a backend service. Read Deleting an instance group for more information. 294 295Args: 296 project: string, Project ID for this request. (required) 297 zone: string, The name of the zone where the instance group is located. (required) 298 instanceGroup: string, The name of the instance group to delete. (required) 299 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 300 x__xgafv: string, V1 error format. 301 Allowed values 302 1 - v1 error format 303 2 - v2 error format 304 305Returns: 306 An object of the form: 307 308 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/beta/globalOperations) * [Regional](/compute/docs/reference/rest/beta/regionOperations) * [Zonal](/compute/docs/reference/rest/beta/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 309 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 310 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 311 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 312 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 313 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 314 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 315 { 316 "code": "A String", # [Output Only] The error type identifier for this error. 317 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 318 "message": "A String", # [Output Only] An optional, human-readable error message. 319 }, 320 ], 321 }, 322 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 323 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a `404` means the resource was not found. 324 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 325 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 326 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 327 "name": "A String", # [Output Only] Name of the operation. 328 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 329 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 330 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 331 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 332 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 333 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 334 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 335 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 336 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 337 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 338 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 339 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 340 { 341 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 342 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 343 { 344 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 345 "value": "A String", # [Output Only] A warning data value corresponding to the key. 346 }, 347 ], 348 "message": "A String", # [Output Only] A human-readable description of the warning code. 349 }, 350 ], 351 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 352}</pre> 353</div> 354 355<div class="method"> 356 <code class="details" id="get">get(project, zone, instanceGroup, x__xgafv=None)</code> 357 <pre>Returns the specified zonal instance group. Get a list of available zonal instance groups by making a list() request. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead. 358 359Args: 360 project: string, Project ID for this request. (required) 361 zone: string, The name of the zone where the instance group is located. (required) 362 instanceGroup: string, The name of the instance group. (required) 363 x__xgafv: string, V1 error format. 364 Allowed values 365 1 - v1 error format 366 2 - v2 error format 367 368Returns: 369 An object of the form: 370 371 { # Represents an Instance Group resource. Instance Groups can be used to configure a target for load balancing. Instance groups can either be managed or unmanaged. To create managed instance groups, use the instanceGroupManager or regionInstanceGroupManager resource instead. Use zonal unmanaged instance groups if you need to apply load balancing to groups of heterogeneous instances or if you need to manage the instances yourself. You cannot create regional unmanaged instance groups. For more information, read Instance groups. 372 "creationTimestamp": "A String", # [Output Only] The creation timestamp for this instance group in RFC3339 text format. 373 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 374 "fingerprint": "A String", # [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently. 375 "id": "A String", # [Output Only] A unique identifier for this instance group, generated by the server. 376 "kind": "compute#instanceGroup", # [Output Only] The resource type, which is always compute#instanceGroup for instance groups. 377 "name": "A String", # The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035. 378 "namedPorts": [ # Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "http", port: 80},{name: "http", port: 8080}] Named ports apply to all instances in this instance group. 379 { # The named port. For example: <"http", 80>. 380 "name": "A String", # The name for this named port. The name must be 1-63 characters long, and comply with RFC1035. 381 "port": 42, # The port number, which can be a value between 1 and 65535. 382 }, 383 ], 384 "network": "A String", # [Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0). 385 "region": "A String", # [Output Only] The URL of the region where the instance group is located (for regional resources). 386 "selfLink": "A String", # [Output Only] The URL for this instance group. The server generates this URL. 387 "size": 42, # [Output Only] The total number of instances in the instance group. 388 "subnetwork": "A String", # [Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0). 389 "zone": "A String", # [Output Only] The URL of the zone where the instance group is located (for zonal resources). 390}</pre> 391</div> 392 393<div class="method"> 394 <code class="details" id="insert">insert(project, zone, body=None, requestId=None, x__xgafv=None)</code> 395 <pre>Creates an instance group in the specified project using the parameters that are included in the request. 396 397Args: 398 project: string, Project ID for this request. (required) 399 zone: string, The name of the zone where you want to create the instance group. (required) 400 body: object, The request body. 401 The object takes the form of: 402 403{ # Represents an Instance Group resource. Instance Groups can be used to configure a target for load balancing. Instance groups can either be managed or unmanaged. To create managed instance groups, use the instanceGroupManager or regionInstanceGroupManager resource instead. Use zonal unmanaged instance groups if you need to apply load balancing to groups of heterogeneous instances or if you need to manage the instances yourself. You cannot create regional unmanaged instance groups. For more information, read Instance groups. 404 "creationTimestamp": "A String", # [Output Only] The creation timestamp for this instance group in RFC3339 text format. 405 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 406 "fingerprint": "A String", # [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently. 407 "id": "A String", # [Output Only] A unique identifier for this instance group, generated by the server. 408 "kind": "compute#instanceGroup", # [Output Only] The resource type, which is always compute#instanceGroup for instance groups. 409 "name": "A String", # The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035. 410 "namedPorts": [ # Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "http", port: 80},{name: "http", port: 8080}] Named ports apply to all instances in this instance group. 411 { # The named port. For example: <"http", 80>. 412 "name": "A String", # The name for this named port. The name must be 1-63 characters long, and comply with RFC1035. 413 "port": 42, # The port number, which can be a value between 1 and 65535. 414 }, 415 ], 416 "network": "A String", # [Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0). 417 "region": "A String", # [Output Only] The URL of the region where the instance group is located (for regional resources). 418 "selfLink": "A String", # [Output Only] The URL for this instance group. The server generates this URL. 419 "size": 42, # [Output Only] The total number of instances in the instance group. 420 "subnetwork": "A String", # [Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0). 421 "zone": "A String", # [Output Only] The URL of the zone where the instance group is located (for zonal resources). 422} 423 424 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 425 x__xgafv: string, V1 error format. 426 Allowed values 427 1 - v1 error format 428 2 - v2 error format 429 430Returns: 431 An object of the form: 432 433 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/beta/globalOperations) * [Regional](/compute/docs/reference/rest/beta/regionOperations) * [Zonal](/compute/docs/reference/rest/beta/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 434 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 435 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 436 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 437 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 438 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 439 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 440 { 441 "code": "A String", # [Output Only] The error type identifier for this error. 442 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 443 "message": "A String", # [Output Only] An optional, human-readable error message. 444 }, 445 ], 446 }, 447 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 448 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a `404` means the resource was not found. 449 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 450 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 451 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 452 "name": "A String", # [Output Only] Name of the operation. 453 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 454 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 455 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 456 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 457 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 458 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 459 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 460 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 461 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 462 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 463 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 464 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 465 { 466 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 467 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 468 { 469 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 470 "value": "A String", # [Output Only] A warning data value corresponding to the key. 471 }, 472 ], 473 "message": "A String", # [Output Only] A human-readable description of the warning code. 474 }, 475 ], 476 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 477}</pre> 478</div> 479 480<div class="method"> 481 <code class="details" id="list">list(project, zone, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code> 482 <pre>Retrieves the list of zonal instance group resources contained within the specified zone. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead. 483 484Args: 485 project: string, Project ID for this request. (required) 486 zone: string, The name of the zone where the instance group is located. (required) 487 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` 488 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) 489 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 490 pageToken: string, Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. 491 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 492 x__xgafv: string, V1 error format. 493 Allowed values 494 1 - v1 error format 495 2 - v2 error format 496 497Returns: 498 An object of the form: 499 500 { # A list of InstanceGroup resources. 501 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 502 "items": [ # A list of InstanceGroup resources. 503 { # Represents an Instance Group resource. Instance Groups can be used to configure a target for load balancing. Instance groups can either be managed or unmanaged. To create managed instance groups, use the instanceGroupManager or regionInstanceGroupManager resource instead. Use zonal unmanaged instance groups if you need to apply load balancing to groups of heterogeneous instances or if you need to manage the instances yourself. You cannot create regional unmanaged instance groups. For more information, read Instance groups. 504 "creationTimestamp": "A String", # [Output Only] The creation timestamp for this instance group in RFC3339 text format. 505 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 506 "fingerprint": "A String", # [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently. 507 "id": "A String", # [Output Only] A unique identifier for this instance group, generated by the server. 508 "kind": "compute#instanceGroup", # [Output Only] The resource type, which is always compute#instanceGroup for instance groups. 509 "name": "A String", # The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035. 510 "namedPorts": [ # Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "http", port: 80},{name: "http", port: 8080}] Named ports apply to all instances in this instance group. 511 { # The named port. For example: <"http", 80>. 512 "name": "A String", # The name for this named port. The name must be 1-63 characters long, and comply with RFC1035. 513 "port": 42, # The port number, which can be a value between 1 and 65535. 514 }, 515 ], 516 "network": "A String", # [Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0). 517 "region": "A String", # [Output Only] The URL of the region where the instance group is located (for regional resources). 518 "selfLink": "A String", # [Output Only] The URL for this instance group. The server generates this URL. 519 "size": 42, # [Output Only] The total number of instances in the instance group. 520 "subnetwork": "A String", # [Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0). 521 "zone": "A String", # [Output Only] The URL of the zone where the instance group is located (for zonal resources). 522 }, 523 ], 524 "kind": "compute#instanceGroupList", # [Output Only] The resource type, which is always compute#instanceGroupList for instance group lists. 525 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 526 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 527 "warning": { # [Output Only] Informational warning message. 528 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 529 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 530 { 531 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 532 "value": "A String", # [Output Only] A warning data value corresponding to the key. 533 }, 534 ], 535 "message": "A String", # [Output Only] A human-readable description of the warning code. 536 }, 537}</pre> 538</div> 539 540<div class="method"> 541 <code class="details" id="listInstances">listInstances(project, zone, instanceGroup, body=None, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code> 542 <pre>Lists the instances in the specified instance group. The orderBy query parameter is not supported. 543 544Args: 545 project: string, Project ID for this request. (required) 546 zone: string, The name of the zone where the instance group is located. (required) 547 instanceGroup: string, The name of the instance group from which you want to generate a list of included instances. (required) 548 body: object, The request body. 549 The object takes the form of: 550 551{ 552 "instanceState": "A String", # A filter for the state of the instances in the instance group. Valid options are ALL or RUNNING. If you do not specify this parameter the list includes all instances regardless of their state. 553} 554 555 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` 556 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) 557 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 558 pageToken: string, Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. 559 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 560 x__xgafv: string, V1 error format. 561 Allowed values 562 1 - v1 error format 563 2 - v2 error format 564 565Returns: 566 An object of the form: 567 568 { 569 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 570 "items": [ # A list of InstanceWithNamedPorts resources. 571 { 572 "instance": "A String", # [Output Only] The URL of the instance. 573 "namedPorts": [ # [Output Only] The named ports that belong to this instance group. 574 { # The named port. For example: <"http", 80>. 575 "name": "A String", # The name for this named port. The name must be 1-63 characters long, and comply with RFC1035. 576 "port": 42, # The port number, which can be a value between 1 and 65535. 577 }, 578 ], 579 "status": "A String", # [Output Only] The status of the instance. 580 }, 581 ], 582 "kind": "compute#instanceGroupsListInstances", # [Output Only] The resource type, which is always compute#instanceGroupsListInstances for the list of instances in the specified instance group. 583 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 584 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 585 "warning": { # [Output Only] Informational warning message. 586 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 587 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 588 { 589 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 590 "value": "A String", # [Output Only] A warning data value corresponding to the key. 591 }, 592 ], 593 "message": "A String", # [Output Only] A human-readable description of the warning code. 594 }, 595}</pre> 596</div> 597 598<div class="method"> 599 <code class="details" id="listInstances_next">listInstances_next(previous_request, previous_response)</code> 600 <pre>Retrieves the next page of results. 601 602Args: 603 previous_request: The request for the previous page. (required) 604 previous_response: The response from the request for the previous page. (required) 605 606Returns: 607 A request object that you can call 'execute()' on to request the next 608 page. Returns None if there are no more items in the collection. 609 </pre> 610</div> 611 612<div class="method"> 613 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 614 <pre>Retrieves the next page of results. 615 616Args: 617 previous_request: The request for the previous page. (required) 618 previous_response: The response from the request for the previous page. (required) 619 620Returns: 621 A request object that you can call 'execute()' on to request the next 622 page. Returns None if there are no more items in the collection. 623 </pre> 624</div> 625 626<div class="method"> 627 <code class="details" id="removeInstances">removeInstances(project, zone, instanceGroup, body=None, requestId=None, x__xgafv=None)</code> 628 <pre>Removes one or more instances from the specified instance group, but does not delete those instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration before the VM instance is removed or deleted. 629 630Args: 631 project: string, Project ID for this request. (required) 632 zone: string, The name of the zone where the instance group is located. (required) 633 instanceGroup: string, The name of the instance group where the specified instances will be removed. (required) 634 body: object, The request body. 635 The object takes the form of: 636 637{ 638 "instances": [ # The list of instances to remove from the instance group. 639 { 640 "instance": "A String", # The URL for a specific instance. @required compute.instancegroups.addInstances/removeInstances 641 }, 642 ], 643} 644 645 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 646 x__xgafv: string, V1 error format. 647 Allowed values 648 1 - v1 error format 649 2 - v2 error format 650 651Returns: 652 An object of the form: 653 654 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/beta/globalOperations) * [Regional](/compute/docs/reference/rest/beta/regionOperations) * [Zonal](/compute/docs/reference/rest/beta/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 655 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 656 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 657 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 658 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 659 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 660 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 661 { 662 "code": "A String", # [Output Only] The error type identifier for this error. 663 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 664 "message": "A String", # [Output Only] An optional, human-readable error message. 665 }, 666 ], 667 }, 668 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 669 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a `404` means the resource was not found. 670 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 671 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 672 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 673 "name": "A String", # [Output Only] Name of the operation. 674 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 675 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 676 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 677 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 678 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 679 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 680 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 681 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 682 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 683 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 684 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 685 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 686 { 687 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 688 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 689 { 690 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 691 "value": "A String", # [Output Only] A warning data value corresponding to the key. 692 }, 693 ], 694 "message": "A String", # [Output Only] A human-readable description of the warning code. 695 }, 696 ], 697 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 698}</pre> 699</div> 700 701<div class="method"> 702 <code class="details" id="setNamedPorts">setNamedPorts(project, zone, instanceGroup, body=None, requestId=None, x__xgafv=None)</code> 703 <pre>Sets the named ports for the specified instance group. 704 705Args: 706 project: string, Project ID for this request. (required) 707 zone: string, The name of the zone where the instance group is located. (required) 708 instanceGroup: string, The name of the instance group where the named ports are updated. (required) 709 body: object, The request body. 710 The object takes the form of: 711 712{ 713 "fingerprint": "A String", # The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request. A request with an incorrect fingerprint will fail with error 412 conditionNotMet. 714 "namedPorts": [ # The list of named ports to set for this instance group. 715 { # The named port. For example: <"http", 80>. 716 "name": "A String", # The name for this named port. The name must be 1-63 characters long, and comply with RFC1035. 717 "port": 42, # The port number, which can be a value between 1 and 65535. 718 }, 719 ], 720} 721 722 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 723 x__xgafv: string, V1 error format. 724 Allowed values 725 1 - v1 error format 726 2 - v2 error format 727 728Returns: 729 An object of the form: 730 731 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/beta/globalOperations) * [Regional](/compute/docs/reference/rest/beta/regionOperations) * [Zonal](/compute/docs/reference/rest/beta/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 732 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 733 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 734 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 735 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 736 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 737 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 738 { 739 "code": "A String", # [Output Only] The error type identifier for this error. 740 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 741 "message": "A String", # [Output Only] An optional, human-readable error message. 742 }, 743 ], 744 }, 745 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 746 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a `404` means the resource was not found. 747 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 748 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 749 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 750 "name": "A String", # [Output Only] Name of the operation. 751 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 752 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 753 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 754 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 755 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 756 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 757 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 758 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 759 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 760 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 761 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 762 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 763 { 764 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 765 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 766 { 767 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 768 "value": "A String", # [Output Only] A warning data value corresponding to the key. 769 }, 770 ], 771 "message": "A String", # [Output Only] A human-readable description of the warning code. 772 }, 773 ], 774 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 775}</pre> 776</div> 777 778<div class="method"> 779 <code class="details" id="testIamPermissions">testIamPermissions(project, zone, resource, body=None, x__xgafv=None)</code> 780 <pre>Returns permissions that a caller has on the specified resource. 781 782Args: 783 project: string, Project ID for this request. (required) 784 zone: string, The name of the zone for this request. (required) 785 resource: string, Name or id of the resource for this request. (required) 786 body: object, The request body. 787 The object takes the form of: 788 789{ 790 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. 791 "A String", 792 ], 793} 794 795 x__xgafv: string, V1 error format. 796 Allowed values 797 1 - v1 error format 798 2 - v2 error format 799 800Returns: 801 An object of the form: 802 803 { 804 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. 805 "A String", 806 ], 807}</pre> 808</div> 809 810</body></html>