region_instance_group_managers_per_instance_configs
Creates, updates, deletes, gets or lists a region_instance_group_managers_per_instance_configs
resource.
Overview
Name | region_instance_group_managers_per_instance_configs |
Type | Resource |
Id | google.compute.region_instance_group_managers_per_instance_configs |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The 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. |
fingerprint | string | Fingerprint 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. |
preservedState | object | Preserved state for a given instance. |
status | string | The status of applying this per-instance configuration on the corresponding managed instance. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_per_instance_configs | SELECT | instanceGroupManager, project, region | Lists all of the per-instance configurations defined for the managed instance group. The orderBy query parameter is not supported. |
delete_per_instance_configs | DELETE | instanceGroupManager, project, region | Deletes selected per-instance configurations for the managed instance group. |
update_per_instance_configs | UPDATE | instanceGroupManager, project, region | Inserts 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 }}';