Skip to main content

deleted_vaults

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

Overview

Namedeleted_vaults
TypeResource
Idazure.recovery_services.deleted_vaults

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringIt should match what is used to GET the operation result.
namestringIt must match the last segment of the "id" field, and will typically be a GUID / system generated value.
endTimestring (date-time)End time of the operation.
errorobjectRequired if status == failed or status == canceled. This is the OData v4 error format, used by the RPC and will go into the v2.2 Azure REST API guidelines.
startTimestring (date-time)Start time of the operation.
statusstringThe status of the operation. (InProgress/Success/Failed/Cancelled).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_operation_statusselectlocation, deleted_vault_name, operation_id, subscription_idGet the operation status of a deleted vault.
getselectlocation, deleted_vault_name, subscription_idGet a specific deleted vault.
list_by_subscription_idselectlocation, subscription_idList deleted vaults in a subscription.
undeleteexeclocation, deleted_vault_name, subscription_id, propertiesStart undelete of a deleted vault.

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
deleted_vault_namestringThe name of the DeletedVault. Required.
locationstringThe location name. Required.
operation_idstringRequired.
subscription_idstring

SELECT examples

Get the operation status of a deleted vault.

SELECT
id,
name,
endTime,
error,
startTime,
status
FROM azure.recovery_services.deleted_vaults
WHERE location = '{{ location }}' -- required
AND deleted_vault_name = '{{ deleted_vault_name }}' -- required
AND operation_id = '{{ operation_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Start undelete of a deleted vault.

EXEC azure.recovery_services.deleted_vaults.undelete 
@location='{{ location }}' --required,
@deleted_vault_name='{{ deleted_vault_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;