Skip to main content

backup_locations

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

Overview

Namebackup_locations
TypeResource
Idazure_stack.backup_admin.backup_locations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringURI of the resource.
namestringName of the resource.
locationstringLocation of the resource.
propertiesobjectProperties of a backup location.
tagsobjectList of key value pairs.
typestringType of resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, locationReturns a specific backup location based on name.
listselectsubscriptionId, resourceGroupName$top, $skipReturns the list of backup locations.
updatereplacesubscriptionId, resourceGroupName, locationUpdate a backup location.
prune_external_storeexecsubscriptionId, resourceGroupName, locationPrune the external backup store.

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
locationstringName of the backup location.
resourceGroupNamestringName of the resource group.
subscriptionIdstringSubscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
$skipstringOData skip parameter.
$topstringOData top parameter.

SELECT examples

Returns a specific backup location based on name.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure_stack.backup_admin.backup_locations
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND location = '{{ location }}' -- required
;

REPLACE examples

Update a backup location.

REPLACE azure_stack.backup_admin.backup_locations
SET
data__properties = '{{ properties }}',
data__location = '{{ location }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;

Lifecycle Methods

Prune the external backup store.

EXEC azure_stack.backup_admin.backup_locations.prune_external_store 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@location='{{ location }}' --required
@@json=
'{
"operationType": "{{ operationType }}"
}'
;