target_pools_instance
Creates, updates, deletes, gets or lists a target_pools_instance
resource.
Overview
Name | target_pools_instance |
Type | Resource |
Id | google.compute.target_pools_instance |
Fields
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
add_instance | INSERT | project, region, targetPool | Adds an instance to a target pool. |
remove_instance | DELETE | project, region, targetPool | Removes instance URL from a target pool. |
INSERT
example
Use the following StackQL query and manifest file to create a new target_pools_instance
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.compute.target_pools_instance (
project,
region,
targetPool,
instances
)
SELECT
'{{ project }}',
'{{ region }}',
'{{ targetPool }}',
'{{ instances }}'
;
- name: your_resource_model_name
props:
- name: instances
value:
- - name: instance
value: string
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 }}';