Skip to main content

disks_resource_policies

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

Overview

Namedisks_resource_policies
TypeResource
Idgoogle.compute.disks_resource_policies

Fields

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

Methods

NameAccessible byRequired ParamsDescription
add_resource_policiesINSERTdisk, project, zoneAdds 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_policiesDELETEdisk, project, zoneRemoves resource policies from a disk.

INSERT example

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

/*+ create */
INSERT INTO google.compute.disks_resource_policies (
disk,
project,
zone,
resourcePolicies
)
SELECT
'{{ disk }}',
'{{ project }}',
'{{ zone }}',
'{{ resourcePolicies }}'
;

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 }}';