Skip to main content

target_pools_instance

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

Overview

Nametarget_pools_instance
TypeResource
Idgoogle.compute.target_pools_instance

Fields

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

Methods

NameAccessible byRequired ParamsDescription
add_instanceINSERTproject, region, targetPoolAdds an instance to a target pool.
remove_instanceDELETEproject, region, targetPoolRemoves instance URL from a target pool.

INSERT example

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

/*+ create */
INSERT INTO google.compute.target_pools_instance (
project,
region,
targetPool,
instances
)
SELECT
'{{ project }}',
'{{ region }}',
'{{ targetPool }}',
'{{ instances }}'
;

DELETE example

Deletes the specified target_pools_instance resource.

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