Skip to main content

snapshot_policies

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

Overview

Namesnapshot_policies
TypeResource
Idazure_isv.netapp.snapshot_policies

Fields

NameDatatypeDescription
accountNametextfield from the properties object
daily_scheduletextfield from the properties object
enabledtextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
hourly_scheduletextfield from the properties object
locationtextThe geo-location where the resource lives
monthly_scheduletextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
snapshotPolicyNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
weekly_scheduletextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, snapshotPolicyName, subscriptionIdGet a snapshot Policy
listSELECTaccountName, resourceGroupName, subscriptionIdList snapshot policy
createINSERTaccountName, resourceGroupName, snapshotPolicyName, subscriptionId, data__location, data__propertiesCreate a snapshot policy
deleteDELETEaccountName, resourceGroupName, snapshotPolicyName, subscriptionIdDelete snapshot policy
updateUPDATEaccountName, resourceGroupName, snapshotPolicyName, subscriptionIdPatch a snapshot policy

SELECT examples

List snapshot policy

SELECT
accountName,
daily_schedule,
enabled,
etag,
hourly_schedule,
location,
monthly_schedule,
provisioning_state,
resourceGroupName,
snapshotPolicyName,
subscriptionId,
tags,
weekly_schedule
FROM azure_isv.netapp.vw_snapshot_policies
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.netapp.snapshot_policies (
accountName,
resourceGroupName,
snapshotPolicyName,
subscriptionId,
data__location,
data__properties,
tags,
location,
properties
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ snapshotPolicyName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ data__properties }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a snapshot_policies resource.

/*+ update */
UPDATE azure_isv.netapp.snapshot_policies
SET
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND snapshotPolicyName = '{{ snapshotPolicyName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified snapshot_policies resource.

/*+ delete */
DELETE FROM azure_isv.netapp.snapshot_policies
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND snapshotPolicyName = '{{ snapshotPolicyName }}'
AND subscriptionId = '{{ subscriptionId }}';