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

NameDatatypeDescription
idtextId of the object.
nametextName of the object.
customer_secretstextfield from the properties object
dataManagerNametextfield from the properties object
dataServiceNametextfield from the properties object
data_service_inputtextfield from the properties object
data_sink_idtextfield from the properties object
data_source_idtextfield from the properties object
jobDefinitionNametextfield from the properties object
last_modified_timetextfield from the properties object
resourceGroupNametextfield from the properties object
run_locationtextfield from the properties object
schedulestextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
typetextType of the object.
user_confirmationtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdataManagerName, dataServiceName, jobDefinitionName, resourceGroupName, subscriptionIdThis method gets job definition object by name.
list_by_data_managerSELECTdataManagerName, resourceGroupName, subscriptionIdThis method gets all the job definitions of the given data manager resource.
list_by_data_serviceSELECTdataManagerName, dataServiceName, resourceGroupName, subscriptionIdThis method gets all the job definitions of the given data service name.
create_or_updateINSERTdataManagerName, dataServiceName, jobDefinitionName, resourceGroupName, subscriptionId, data__propertiesCreates or updates a job definition.
deleteDELETEdataManagerName, dataServiceName, jobDefinitionName, resourceGroupName, subscriptionIdThis method deletes the given job definition.
runEXECdataManagerName, dataServiceName, jobDefinitionName, resourceGroupName, subscriptionIdThis method runs a job instance of the given job definition.

SELECT examples

This method gets all the job definitions of the given data manager resource.

SELECT
id,
name,
customer_secrets,
dataManagerName,
dataServiceName,
data_service_input,
data_sink_id,
data_source_id,
jobDefinitionName,
last_modified_time,
resourceGroupName,
run_location,
schedules,
state,
subscriptionId,
type,
user_confirmation
FROM azure.hybrid_data_manager.vw_job_definitions
WHERE dataManagerName = '{{ dataManagerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new job_definitions resource.

/*+ create */
INSERT INTO azure.hybrid_data_manager.job_definitions (
dataManagerName,
dataServiceName,
jobDefinitionName,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ dataManagerName }}',
'{{ dataServiceName }}',
'{{ jobDefinitionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified job_definitions resource.

/*+ delete */
DELETE FROM azure.hybrid_data_manager.job_definitions
WHERE dataManagerName = '{{ dataManagerName }}'
AND dataServiceName = '{{ dataServiceName }}'
AND jobDefinitionName = '{{ jobDefinitionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';