Skip to main content

jobs

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

Overview

Namejobs
TypeResource
Idazure.hybrid_data_manager.jobs

Fields

The following fields are returned by SELECT queries:

The job that matches the given criteria.

NameDatatypeDescription
idstringId of the object.
namestringName of the object.
endTimestring (date-time)Time at which the job ended in UTC ISO 8601 format.
errorobjectTop level error for the job.
propertiesobjectJob properties.
startTimestring (date-time)Time at which the job was started in UTC ISO 8601 format.
statusstringStatus of the job.
typestringType of the object.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdataServiceName, jobDefinitionName, jobId, subscriptionId, resourceGroupName, dataManagerName$expandThis method gets a data manager job given the jobId.
list_by_job_definitionselectdataServiceName, jobDefinitionName, subscriptionId, resourceGroupName, dataManagerName$filterThis method gets all the jobs of a given job definition.
list_by_data_serviceselectdataServiceName, subscriptionId, resourceGroupName, dataManagerName$filterThis method gets all the jobs of a data service type in a given resource.
list_by_data_managerselectsubscriptionId, resourceGroupName, dataManagerName$filterThis method gets all the jobs at the data manager resource level.
cancelexecdataServiceName, jobDefinitionName, jobId, subscriptionId, resourceGroupName, dataManagerNameCancels the given job.
resumeexecdataServiceName, jobDefinitionName, jobId, subscriptionId, resourceGroupName, dataManagerNameResumes the given 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
dataManagerNamestringThe name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
dataServiceNamestringThe name of the data service of the job definition.
jobDefinitionNamestringThe name of the job definition of the job.
jobIdstringThe job id of the job queried.
resourceGroupNamestringThe Resource Group Name
subscriptionIdstringThe Subscription Id
$expandstring$expand is supported on details parameter for job, which provides details on the job stages.
$filterstringOData Filter options

SELECT examples

This method gets a data manager job given the jobId.

SELECT
id,
name,
endTime,
error,
properties,
startTime,
status,
type
FROM azure.hybrid_data_manager.jobs
WHERE dataServiceName = '{{ dataServiceName }}' -- required
AND jobDefinitionName = '{{ jobDefinitionName }}' -- required
AND jobId = '{{ jobId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND dataManagerName = '{{ dataManagerName }}' -- required
AND $expand = '{{ $expand }}'
;

Lifecycle Methods

Cancels the given job.

EXEC azure.hybrid_data_manager.jobs.cancel 
@dataServiceName='{{ dataServiceName }}' --required,
@jobDefinitionName='{{ jobDefinitionName }}' --required,
@jobId='{{ jobId }}' --required,
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@dataManagerName='{{ dataManagerName }}' --required
;