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