Skip to main content

job_definitions

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

Overview

Namejob_definitions
TypeResource
Idazure.hybrid_data_manager.job_definitions

Fields

The following fields are returned by SELECT queries:

The job definition that matches the criteria.

NameDatatypeDescription
idstringId of the object.
namestringName of the object.
propertiesobjectJobDefinition properties.
typestringType of the object.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdataServiceName, jobDefinitionName, subscriptionId, resourceGroupName, dataManagerNameThis method gets job definition object by name.
list_by_data_serviceselectdataServiceName, subscriptionId, resourceGroupName, dataManagerName$filterThis method gets all the job definitions of the given data service name.
list_by_data_managerselectsubscriptionId, resourceGroupName, dataManagerName$filterThis method gets all the job definitions of the given data manager resource.
create_or_updateinsertdataServiceName, jobDefinitionName, subscriptionId, resourceGroupName, dataManagerName, data__propertiesCreates or updates a job definition.
deletedeletedataServiceName, jobDefinitionName, subscriptionId, resourceGroupName, dataManagerNameThis method deletes the given job definition.
runexecdataServiceName, jobDefinitionName, subscriptionId, resourceGroupName, dataManagerNameThis method runs a job instance of the given job definition.

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 data service type of the job definition.
jobDefinitionNamestringName of the job definition.
resourceGroupNamestringThe Resource Group Name
subscriptionIdstringThe Subscription Id
$filterstringOData Filter options

SELECT examples

This method gets job definition object by name.

SELECT
id,
name,
properties,
type
FROM azure.hybrid_data_manager.job_definitions
WHERE dataServiceName = '{{ dataServiceName }}' -- required
AND jobDefinitionName = '{{ jobDefinitionName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND dataManagerName = '{{ dataManagerName }}' -- required
;

INSERT examples

Creates or updates a job definition.

INSERT INTO azure.hybrid_data_manager.job_definitions (
data__properties,
dataServiceName,
jobDefinitionName,
subscriptionId,
resourceGroupName,
dataManagerName
)
SELECT
'{{ properties }}' /* required */,
'{{ dataServiceName }}',
'{{ jobDefinitionName }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ dataManagerName }}'
RETURNING
id,
name,
properties,
type
;

DELETE examples

This method deletes the given job definition.

DELETE FROM azure.hybrid_data_manager.job_definitions
WHERE dataServiceName = '{{ dataServiceName }}' --required
AND jobDefinitionName = '{{ jobDefinitionName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND dataManagerName = '{{ dataManagerName }}' --required
;

Lifecycle Methods

This method runs a job instance of the given job definition.

EXEC azure.hybrid_data_manager.job_definitions.run 
@dataServiceName='{{ dataServiceName }}' --required,
@jobDefinitionName='{{ jobDefinitionName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@dataManagerName='{{ dataManagerName }}' --required
@@json=
'{
"userConfirmation": "{{ userConfirmation }}",
"dataServiceInput": "{{ dataServiceInput }}",
"customerSecrets": "{{ customerSecrets }}"
}'
;