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