backup_vaults
Creates, updates, deletes, gets or lists a backup_vaults
resource.
Overview
Name | backup_vaults |
Type | Resource |
Id | azure_isv.netapp.backup_vaults |
Fields
- vw_backup_vaults
- backup_vaults
Name | Datatype | Description |
---|---|---|
accountName | text | field from the properties object |
backupVaultName | text | field from the properties object |
location | text | The geo-location where the resource lives |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Backup Vault properties |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountName, backupVaultName, resourceGroupName, subscriptionId | Get the Backup Vault |
list_by_netapp_account | SELECT | accountName, resourceGroupName, subscriptionId | List and describe all Backup Vaults in the NetApp account. |
create_or_update | INSERT | accountName, backupVaultName, resourceGroupName, subscriptionId, data__location | Create or update the specified Backup Vault in the NetApp account |
delete | DELETE | accountName, backupVaultName, resourceGroupName, subscriptionId | Delete the specified Backup Vault |
update | UPDATE | accountName, backupVaultName, resourceGroupName, subscriptionId | Patch the specified NetApp Backup Vault |
SELECT
examples
List and describe all Backup Vaults in the NetApp account.
- vw_backup_vaults
- backup_vaults
SELECT
accountName,
backupVaultName,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure_isv.netapp.vw_backup_vaults
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
tags
FROM azure_isv.netapp.backup_vaults
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new backup_vaults
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_isv.netapp.backup_vaults (
accountName,
backupVaultName,
resourceGroupName,
subscriptionId,
data__location,
tags,
location,
properties
)
SELECT
'{{ accountName }}',
'{{ backupVaultName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: provisioningState
value: string
UPDATE
example
Updates a backup_vaults
resource.
/*+ update */
UPDATE azure_isv.netapp.backup_vaults
SET
tags = '{{ tags }}'
WHERE
accountName = '{{ accountName }}'
AND backupVaultName = '{{ backupVaultName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified backup_vaults
resource.
/*+ delete */
DELETE FROM azure_isv.netapp.backup_vaults
WHERE accountName = '{{ accountName }}'
AND backupVaultName = '{{ backupVaultName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';