Skip to main content

backups

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

Overview

Namebackups
TypeResource
Idazure_stack.backup_admin.backups

Fields

NameDatatypeDescription
idtextURI of the resource.
nametextName of the resource.
backuptextfield from the properties object
backup_infotextfield from the properties object
locationtextLocation of the resource.
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextList of key value pairs.
typetextType of resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTbackup, location, resourceGroupName, subscriptionIdReturns a backup from a location based on name.
listSELECTlocation, resourceGroupName, subscriptionIdReturns a list of backups from a location.
restoreEXECbackup, location, resourceGroupName, subscriptionIdRestore a backup.

SELECT examples

Returns a list of backups from a location.

SELECT
id,
name,
backup,
backup_info,
location,
resourceGroupName,
subscriptionId,
tags,
type
FROM azure_stack.backup_admin.vw_backups
WHERE location = '{{ location }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';