Skip to main content

instance_group_managers_instances

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

Overview

Nameinstance_group_managers_instances
TypeResource
Idgoogle.compute.instance_group_managers_instances

Fields

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

NameAccessible byRequired ParamsDescription
create_instancesINSERTinstanceGroupManager, project, zoneCreates instances with per-instance configurations in this managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of the creating or actions with the listmanagedinstances method.
delete_instancesDELETEinstanceGroupManager, project, zoneFlags the specified instances in the managed instance group for immediate deletion. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. This operation is marked as DONE when the action is scheduled even if the instances are still being deleted. You must separately verify the status of the deleting action with the listmanagedinstances method. 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 has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.

INSERT example

Use the following StackQL query and manifest file to create a new instance_group_managers_instances resource.

/*+ create */
INSERT INTO google.compute.instance_group_managers_instances (
instanceGroupManager,
project,
zone,
instances
)
SELECT
'{{ instanceGroupManager }}',
'{{ project }}',
'{{ zone }}',
'{{ instances }}'
;

DELETE example

Deletes the specified instance_group_managers_instances resource.

/*+ delete */
DELETE FROM google.compute.instance_group_managers_instances
WHERE instanceGroupManager = '{{ instanceGroupManager }}'
AND project = '{{ project }}'
AND zone = '{{ zone }}';