snapshot_policies
Creates, updates, deletes, gets or lists a snapshot_policies
resource.
Overview
Name | snapshot_policies |
Type | Resource |
Id | azure_isv.netapp.snapshot_policies |
Fields
- vw_snapshot_policies
- snapshot_policies
Name | Datatype | Description |
---|---|---|
accountName | text | field from the properties object |
daily_schedule | text | field from the properties object |
enabled | text | field from the properties object |
etag | text | A unique read-only string that changes whenever the resource is updated. |
hourly_schedule | text | field from the properties object |
location | text | The geo-location where the resource lives |
monthly_schedule | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
snapshotPolicyName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
weekly_schedule | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
etag | string | A unique read-only string that changes whenever the resource is updated. |
location | string | The geo-location where the resource lives |
properties | object | Snapshot policy properties |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountName, resourceGroupName, snapshotPolicyName, subscriptionId | Get a snapshot Policy |
list | SELECT | accountName, resourceGroupName, subscriptionId | List snapshot policy |
create | INSERT | accountName, resourceGroupName, snapshotPolicyName, subscriptionId, data__location, data__properties | Create a snapshot policy |
delete | DELETE | accountName, resourceGroupName, snapshotPolicyName, subscriptionId | Delete snapshot policy |
update | UPDATE | accountName, resourceGroupName, snapshotPolicyName, subscriptionId | Patch a snapshot policy |
SELECT
examples
List snapshot policy
- vw_snapshot_policies
- snapshot_policies
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 }}';
SELECT
etag,
location,
properties,
tags
FROM azure_isv.netapp.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: etag
value: string
- name: properties
value:
- name: hourlySchedule
value:
- name: snapshotsToKeep
value: integer
- name: minute
value: integer
- name: usedBytes
value: integer
- name: dailySchedule
value:
- name: snapshotsToKeep
value: integer
- name: hour
value: integer
- name: minute
value: integer
- name: usedBytes
value: integer
- name: weeklySchedule
value:
- name: snapshotsToKeep
value: integer
- name: day
value: string
- name: hour
value: integer
- name: minute
value: integer
- name: usedBytes
value: integer
- name: monthlySchedule
value:
- name: snapshotsToKeep
value: integer
- name: daysOfMonth
value: string
- name: hour
value: integer
- name: minute
value: integer
- name: usedBytes
value: integer
- name: enabled
value: boolean
- name: provisioningState
value: string
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 }}';