instances_resource_policies
Creates, updates, deletes, gets or lists a instances_resource_policies
resource.
Overview
Name | instances_resource_policies |
Type | Resource |
Id | google.compute.instances_resource_policies |
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_resource_policies | INSERT | instance, project, zone | Adds existing resource policies to an instance. You can only add one policy right now which will be applied to this instance for scheduling live migrations. |
remove_resource_policies | DELETE | instance, project, zone | Removes resource policies from an instance. |
INSERT
example
Use the following StackQL query and manifest file to create a new instances_resource_policies
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.compute.instances_resource_policies (
instance,
project,
zone,
resourcePolicies
)
SELECT
'{{ instance }}',
'{{ project }}',
'{{ zone }}',
'{{ resourcePolicies }}'
;
- name: your_resource_model_name
props:
- name: resourcePolicies
value:
- string
DELETE
example
Deletes the specified instances_resource_policies
resource.
/*+ delete */
DELETE FROM google.compute.instances_resource_policies
WHERE instance = '{{ instance }}'
AND project = '{{ project }}'
AND zone = '{{ zone }}';