Skip to main content

fetch_cross_region_restore_job

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

Overview

Namefetch_cross_region_restore_job
TypeResource
Idazure.data_protection.fetch_cross_region_restore_job

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.
activityIDstringJob Activity Id. Required.
backupInstanceFriendlyNamestringName of the Backup Instance. Required.
backupInstanceIdstringARM ID of the Backup Instance.
dataSourceIdstringARM ID of the DataSource. Required.
dataSourceLocationstringLocation of the DataSource. Required.
dataSourceNamestringUser Friendly Name of the DataSource. Required.
dataSourceSetNamestringData Source Set Name of the DataSource.
dataSourceTypestringType of DataSource. Required.
destinationDataStoreNamestring:vartype destination_data_store_name: str
durationstringTotal run time of the job. ISO 8601 format.
endTimestring (date-time)EndTime of the job(in UTC).
errorDetailsarrayA List, detailing the errors related to the job.
etagstring:vartype etag: str
extendedInfoobjectExtended Information about the job.
isUserTriggeredbooleanIndicated that whether the job is adhoc(true) or scheduled(false). Required.
operationstringIt indicates the type of Job i.e. Backup:full/log/diff ;Restore:ALR/OLR; Tiering:Backup/Archive ; Management:ConfigureProtection/UnConfigure. Required.
operationCategorystringIt indicates the type of Job i.e. Backup/Restore/Tiering/Management. Required.
policyIdstringARM ID of the policy.
policyNamestringName of the policy.
progressEnabledbooleanIndicated whether progress is enabled for the job. Required.
progressUrlstringUrl which contains job's progress.
rehydrationPrioritystringPriority to be used for rehydration.
restoreTypestringIt indicates the sub type of operation i.e. in case of Restore it can be ALR/OLR.
sourceDataStoreNamestring:vartype source_data_store_name: str
sourceResourceGroupstringResource Group Name of the Datasource. Required.
sourceSubscriptionIDstringSubscriptionId corresponding to the DataSource. Required.
startTimestring (date-time)StartTime of the job(in UTC). Required.
statusstringStatus of the job like InProgress/Completed/Failed/Cancelled/CompletedWithWarnings/Cancelling/Paused. Required.
subscriptionIdstringSubscription Id of the corresponding backup vault. Required.
supportedActionsarrayList of supported actions. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
vaultNamestringName of the vault. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, location, subscription_idFetches the Cross Region Restore Job.

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
locationstringThe name of the Azure region. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Fetches the Cross Region Restore Job.

SELECT
id,
name,
activityID,
backupInstanceFriendlyName,
backupInstanceId,
dataSourceId,
dataSourceLocation,
dataSourceName,
dataSourceSetName,
dataSourceType,
destinationDataStoreName,
duration,
endTime,
errorDetails,
etag,
extendedInfo,
isUserTriggered,
operation,
operationCategory,
policyId,
policyName,
progressEnabled,
progressUrl,
rehydrationPriority,
restoreType,
sourceDataStoreName,
sourceResourceGroup,
sourceSubscriptionID,
startTime,
status,
subscriptionId,
supportedActions,
systemData,
type,
vaultName
FROM azure.data_protection.fetch_cross_region_restore_job
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND location = '{{ location }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;