Skip to main content

region_instance_group_managers_per_instance_configs

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

Overview

Nameregion_instance_group_managers_per_instance_configs
TypeResource
Idgoogle.compute.region_instance_group_managers_per_instance_configs

Fields

NameDatatypeDescription
namestringThe name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
fingerprintstringFingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset.
preservedStateobjectPreserved state for a given instance.
statusstringThe status of applying this per-instance configuration on the corresponding managed instance.

Methods

NameAccessible byRequired ParamsDescription
list_per_instance_configsSELECTinstanceGroupManager, project, regionLists all of the per-instance configurations defined for the managed instance group. The orderBy query parameter is not supported.
delete_per_instance_configsDELETEinstanceGroupManager, project, regionDeletes selected per-instance configurations for the managed instance group.
update_per_instance_configsUPDATEinstanceGroupManager, project, regionInserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.

SELECT examples

Lists all of the per-instance configurations defined for the managed instance group. The orderBy query parameter is not supported.

SELECT
name,
fingerprint,
preservedState,
status
FROM google.compute.region_instance_group_managers_per_instance_configs
WHERE instanceGroupManager = '{{ instanceGroupManager }}'
AND project = '{{ project }}'
AND region = '{{ region }}';

UPDATE example

Updates a region_instance_group_managers_per_instance_configs resource.

/*+ update */
UPDATE google.compute.region_instance_group_managers_per_instance_configs
SET
perInstanceConfigs = '{{ perInstanceConfigs }}'
WHERE
instanceGroupManager = '{{ instanceGroupManager }}'
AND project = '{{ project }}'
AND region = '{{ region }}';

DELETE example

Deletes the specified region_instance_group_managers_per_instance_configs resource.

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