Skip to main content

job_definitions

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

Overview

Namejob_definitions
TypeResource
Idazure.storage_mover.job_definitions

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
agent_nametextfield from the properties object
agent_resource_idtextfield from the properties object
copy_modetextfield from the properties object
jobDefinitionNametextfield from the properties object
latest_job_run_nametextfield from the properties object
latest_job_run_resource_idtextfield from the properties object
latest_job_run_statustextfield from the properties object
projectNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
source_nametextfield from the properties object
source_resource_idtextfield from the properties object
source_subpathtextfield from the properties object
storageMoverNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
target_nametextfield from the properties object
target_resource_idtextfield from the properties object
target_subpathtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTjobDefinitionName, projectName, resourceGroupName, storageMoverName, subscriptionIdGets a Job Definition resource.
listSELECTprojectName, resourceGroupName, storageMoverName, subscriptionIdLists all Job Definitions in a Project.
create_or_updateINSERTjobDefinitionName, projectName, resourceGroupName, storageMoverName, subscriptionId, data__propertiesCreates or updates a Job Definition resource, which contains configuration for a single unit of managed data transfer.
deleteDELETEjobDefinitionName, projectName, resourceGroupName, storageMoverName, subscriptionIdDeletes a Job Definition resource.
updateUPDATEjobDefinitionName, projectName, resourceGroupName, storageMoverName, subscriptionIdUpdates properties for a Job Definition resource. Properties not specified in the request body will be unchanged.
start_jobEXECjobDefinitionName, projectName, resourceGroupName, storageMoverName, subscriptionIdCreates a new Job Run resource for the specified Job Definition and passes it to the Agent for execution.
stop_jobEXECjobDefinitionName, projectName, resourceGroupName, storageMoverName, subscriptionIdRequests the Agent of any active instance of this Job Definition to stop.

SELECT examples

Lists all Job Definitions in a Project.

SELECT
description,
agent_name,
agent_resource_id,
copy_mode,
jobDefinitionName,
latest_job_run_name,
latest_job_run_resource_id,
latest_job_run_status,
projectName,
provisioning_state,
resourceGroupName,
source_name,
source_resource_id,
source_subpath,
storageMoverName,
subscriptionId,
system_data,
target_name,
target_resource_id,
target_subpath
FROM azure.storage_mover.vw_job_definitions
WHERE projectName = '{{ projectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND storageMoverName = '{{ storageMoverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.storage_mover.job_definitions (
jobDefinitionName,
projectName,
resourceGroupName,
storageMoverName,
subscriptionId,
data__properties,
properties,
systemData
)
SELECT
'{{ jobDefinitionName }}',
'{{ projectName }}',
'{{ resourceGroupName }}',
'{{ storageMoverName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ systemData }}'
;

UPDATE example

Updates a job_definitions resource.

/*+ update */
UPDATE azure.storage_mover.job_definitions
SET
properties = '{{ properties }}'
WHERE
jobDefinitionName = '{{ jobDefinitionName }}'
AND projectName = '{{ projectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND storageMoverName = '{{ storageMoverName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified job_definitions resource.

/*+ delete */
DELETE FROM azure.storage_mover.job_definitions
WHERE jobDefinitionName = '{{ jobDefinitionName }}'
AND projectName = '{{ projectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND storageMoverName = '{{ storageMoverName }}'
AND subscriptionId = '{{ subscriptionId }}';