instance_group_managers_instances
Creates, updates, deletes, gets or lists a instance_group_managers_instances
resource.
Overview
Name | instance_group_managers_instances |
Type | Resource |
Id | google.compute.instance_group_managers_instances |
Fields
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
create_instances | INSERT | instanceGroupManager, project, zone | Creates 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_instances | DELETE | instanceGroupManager, project, zone | Flags 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.compute.instance_group_managers_instances (
instanceGroupManager,
project,
zone,
instances
)
SELECT
'{{ instanceGroupManager }}',
'{{ project }}',
'{{ zone }}',
'{{ instances }}'
;
- name: your_resource_model_name
props:
- name: instances
value:
- - name: name
value: string
- name: preservedState
value:
- name: disks
value: object
- name: metadata
value: object
- name: internalIPs
value: object
- name: externalIPs
value: object
- name: status
value: string
- name: fingerprint
value: string
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 }}';