Skip to main content

region_disks_resource_policies

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

Overview

Nameregion_disks_resource_policies
TypeResource
Idgoogle.compute.region_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, regionAdds 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_policiesDELETEdisk, project, regionRemoves 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.

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

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