Skip to main content

elastic_backups

Creates, updates, deletes, gets or lists an elastic_backups resource.

Overview

Nameelastic_backups
TypeResource
Idazure.netapp.elastic_backups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
backupTypestringType of backup Manual or Scheduled. Known values are: "Manual" and "Scheduled". (Manual, Scheduled)
completionDatestring (date-time)The completion date of the backup.
creationDatestring (date-time)The creation date of the backup.
elasticBackupPolicyResourceIdstringResourceId used to identify the elastic backup policy.
elasticSnapshotResourceIdstringResourceId used to identify the elastic snapshot resource. This is required when an existing snapshot needs to be used for creating a manual backup.
elasticVolumeResourceIdstringResourceId used to identify the Elastic Volume. Required.
failureReasonstringFailure reason.
labelstringLabel for backup.
provisioningStatestringAzure lifecycle management. Known values are: "Accepted", "Creating", "Patching", "Updating", "Deleting", "Moving", "Failed", and "Succeeded". (Accepted, Creating, Patching, Updating, Deleting, Moving, Failed, Succeeded)
sizeintegerSize of backup in bytes.
snapshotCreationDatestring (date-time)The snapshot creation date of the backup.
snapshotUsagestringManual backup using an already existing snapshot. This will always be CreateNewSnapshot for scheduled backups and UseExistingSnapshot/CreateNewSnapshot for manual backups. Known values are: "UseExistingSnapshot" and "CreateNewSnapshot". (UseExistingSnapshot, CreateNewSnapshot)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
volumeSizestringSpecifies if the backup is for a large volume. Known values are: "Large" and "Regular". (Large, Regular)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, account_name, backup_vault_name, backup_name, subscription_idGet the specified Elastic Backup under Elastic Backup Vault.
list_by_vaultselectresource_group_name, account_name, backup_vault_name, subscription_idList all elastic backups Under an elastic Backup Vault.
create_or_updateinsertresource_group_name, account_name, backup_vault_name, backup_name, subscription_idCreate an elastic backup under the elastic Backup Vault.
updateupdateresource_group_name, account_name, backup_vault_name, backup_name, subscription_idPatch an elastic Backup under the Elastic Backup Vault.
create_or_updatereplaceresource_group_name, account_name, backup_vault_name, backup_name, subscription_idCreate an elastic backup under the elastic Backup Vault.
deletedeleteresource_group_name, account_name, backup_vault_name, backup_name, subscription_idDelete a ElasticBackup.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_namestringThe name of the ElasticAccount. Required.
backup_namestringThe name of the ElasticBackup. Required.
backup_vault_namestringThe name of the ElasticBackupVault. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get the specified Elastic Backup under Elastic Backup Vault.

SELECT
id,
name,
backupType,
completionDate,
creationDate,
elasticBackupPolicyResourceId,
elasticSnapshotResourceId,
elasticVolumeResourceId,
failureReason,
label,
provisioningState,
size,
snapshotCreationDate,
snapshotUsage,
systemData,
type,
volumeSize
FROM azure.netapp.elastic_backups
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND backup_vault_name = '{{ backup_vault_name }}' -- required
AND backup_name = '{{ backup_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create an elastic backup under the elastic Backup Vault.

INSERT INTO azure.netapp.elastic_backups (
properties,
resource_group_name,
account_name,
backup_vault_name,
backup_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ backup_vault_name }}',
'{{ backup_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Patch an elastic Backup under the Elastic Backup Vault.

UPDATE azure.netapp.elastic_backups
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND backup_vault_name = '{{ backup_vault_name }}' --required
AND backup_name = '{{ backup_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

Create an elastic backup under the elastic Backup Vault.

REPLACE azure.netapp.elastic_backups
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND backup_vault_name = '{{ backup_vault_name }}' --required
AND backup_name = '{{ backup_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete a ElasticBackup.

DELETE FROM azure.netapp.elastic_backups
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND backup_vault_name = '{{ backup_vault_name }}' --required
AND backup_name = '{{ backup_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;