Skip to main content

jobs

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

Overview

Namejobs
TypeResource
Idazure.data_protection.jobs

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, vault_name, job_id, subscription_idGets a job with id in a backup vault.
listselectresource_group_name, vault_name, subscription_idReturns list of jobs belonging to a backup 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
job_idstringThe Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
vault_namestringThe name of the backup vault. Required.

SELECT examples

Gets a job with id in a backup vault.

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.jobs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND vault_name = '{{ vault_name }}' -- required
AND job_id = '{{ job_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;