Skip to main content

jobs

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

Overview

Namejobs
TypeResource
Idazure.media_services.jobs

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
accountNametextfield from the properties object
correlation_datatextfield from the properties object
createdtextfield from the properties object
end_timetextfield from the properties object
inputtextfield from the properties object
jobNametextfield from the properties object
last_modifiedtextfield from the properties object
outputstextfield from the properties object
prioritytextfield from the properties object
resourceGroupNametextfield from the properties object
start_timetextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
transformNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, jobName, resourceGroupName, subscriptionId, transformNameGets a Job.
listSELECTaccountName, resourceGroupName, subscriptionId, transformNameLists all of the Jobs for the Transform.
createINSERTaccountName, jobName, resourceGroupName, subscriptionId, transformNameCreates a Job.
deleteDELETEaccountName, jobName, resourceGroupName, subscriptionId, transformNameDeletes a Job.
updateUPDATEaccountName, jobName, resourceGroupName, subscriptionId, transformNameUpdate is only supported for description and priority. Updating Priority will take effect when the Job state is Queued or Scheduled and depending on the timing the priority update may be ignored.
cancel_jobEXECaccountName, jobName, resourceGroupName, subscriptionId, transformNameCancel a Job.

SELECT examples

Lists all of the Jobs for the Transform.

SELECT
description,
accountName,
correlation_data,
created,
end_time,
input,
jobName,
last_modified,
outputs,
priority,
resourceGroupName,
start_time,
state,
subscriptionId,
system_data,
transformName
FROM azure.media_services.vw_jobs
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND transformName = '{{ transformName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.media_services.jobs (
accountName,
jobName,
resourceGroupName,
subscriptionId,
transformName,
properties
)
SELECT
'{{ accountName }}',
'{{ jobName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ transformName }}',
'{{ properties }}'
;

UPDATE example

Updates a jobs resource.

/*+ update */
UPDATE azure.media_services.jobs
SET
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND jobName = '{{ jobName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND transformName = '{{ transformName }}';

DELETE example

Deletes the specified jobs resource.

/*+ delete */
DELETE FROM azure.media_services.jobs
WHERE accountName = '{{ accountName }}'
AND jobName = '{{ jobName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND transformName = '{{ transformName }}';