Lists all of the instances in the managed instance group. Each instance
in the list has a currentAction, which indicates the action that the
managed instance group is performing on the instance. For example, if
the group is still creating an instance, the currentAction is CREATING.
If a previous action failed, the list displays the errors for that
failed action. The orderBy query parameter is not supported. The
pageToken
query parameter is supported only in the alpha and beta API
and only if the group's listManagedInstancesResults
field is set to
PAGINATED
.
Arguments
Parameters | |
---|---|
instanceGroupManager |
Required. The name of the managed instance group.
|
project |
Required. Project ID for this request.
|
zone |
Required. The name of the zone where the managed instance group is located.
|
filter |
A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your 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
|
maxResults |
The maximum number of results per page that should be returned. If the number of available results is larger than
|
orderBy |
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
|
pageToken |
Specifies a page token to use. Set
|
returnPartialSuccess |
Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
Raised exceptions
Exceptions | |
---|---|
ConnectionError |
In case of a network problem (such as DNS failure or refused connection). |
HttpError |
If the response status is >= 400 (excluding 429 and 503). |
TimeoutError |
If a long-running operation takes longer to finish than the specified timeout limit. |
TypeError |
If an operation or function receives an argument of the wrong type. |
ValueError |
If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout. |
Response
If successful, the response contains an instance of InstanceGroupManagersListManagedInstancesResponse
.
Subworkflow snippet
Some fields might be optional or required. To identify required fields, refer to the API documentation.
YAML
- listManagedInstances: call: googleapis.compute.beta.instanceGroupManagers.listManagedInstances args: instanceGroupManager: ... project: ... zone: ... filter: ... maxResults: ... orderBy: ... pageToken: ... returnPartialSuccess: ... result: listManagedInstancesResult
JSON
[ { "listManagedInstances": { "call": "googleapis.compute.beta.instanceGroupManagers.listManagedInstances", "args": { "instanceGroupManager": "...", "project": "...", "zone": "...", "filter": "...", "maxResults": "...", "orderBy": "...", "pageToken": "...", "returnPartialSuccess": "..." }, "result": "listManagedInstancesResult" } } ]