Skip to main content

instance_group_managers_managed_instances

Creates, updates, deletes, gets or lists a instance_group_managers_managed_instances resource.

Overview

Nameinstance_group_managers_managed_instances
TypeResource
Idgoogle.compute.instance_group_managers_managed_instances

Fields

NameDatatypeDescription
managedInstancesarray[Output Only] The list of instances in the managed instance group.
nextPageTokenstring[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.

Methods

NameAccessible byRequired ParamsDescription
list_managed_instancesSELECTinstanceGroupManager, project, zoneLists 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 if the group's listManagedInstancesResults field is set to PAGINATED.

SELECT examples

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 if the group's listManagedInstancesResults field is set to PAGINATED.

SELECT
managedInstances,
nextPageToken
FROM google.compute.instance_group_managers_managed_instances
WHERE instanceGroupManager = '{{ instanceGroupManager }}'
AND project = '{{ project }}'
AND zone = '{{ zone }}';