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
idstringResource Id represents the complete path to the resource.
namestringResource name associated with the resource.
propertiesobjectAzureBackupJobResource properties
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringResource type represents the complete path of the form Namespace/ResourceType/ResourceType/...

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, vaultName, jobIdGets a job with id in a backup vault
listselectsubscriptionId, resourceGroupName, vaultNameReturns 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
jobIdstringThe Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
vaultNamestringThe name of the backup vault.

SELECT examples

Gets a job with id in a backup vault

SELECT
id,
name,
properties,
systemData,
type
FROM azure.data_protection.jobs
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND vaultName = '{{ vaultName }}' -- required
AND jobId = '{{ jobId }}' -- required
;