Skip to main content

pipeline_jobs

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

Overview

Namepipeline_jobs
TypeResource
Idazure_extras.video_analyzer.pipeline_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
descriptionstring
errorobjectDetails about the error, in case the pipeline job fails.
expirationstring (date-time)The date-time by when this pipeline job will be automatically deleted from your account.
parametersarray
statestringCurrent state of the pipeline (read-only). Possible values include: "Processing", "Canceled", "Completed", "Failed".
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
topologyNamestring
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccount_name, resource_group_name, pipeline_job_name, subscription_idGets a specific pipeline job by name. Retrieves a specific pipeline job by name. If a pipeline job with that name has been previously created, the call will return the JSON representation of that instance.
listselectaccount_name, resource_group_name, subscription_id$filter, $topRetrieves a list of pipeline jobs. Retrieves a list of all live pipelines that have been created, along with their JSON representations.
create_or_updateinsertaccount_name, resource_group_name, pipeline_job_name, subscription_idCreates or updates a pipeline job. Creates a new pipeline job or updates an existing one, with the given name.
updateupdateaccount_name, resource_group_name, pipeline_job_name, subscription_idUpdates an existing pipeline job. Updates an existing pipeline job with the given name. Properties that can be updated include: description.
create_or_updatereplaceaccount_name, resource_group_name, pipeline_job_name, subscription_idCreates or updates a pipeline job. Creates a new pipeline job or updates an existing one, with the given name.
deletedeleteaccount_name, resource_group_name, pipeline_job_name, subscription_idDeletes a pipeline job. Deletes a pipeline job with the given name.
cancelexecaccount_name, resource_group_name, pipeline_job_name, subscription_idCancels a pipeline job. Cancels a pipeline job with the given name.

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
account_namestringThe Azure Video Analyzer account name.
pipeline_job_namestringThe pipeline job name.
resource_group_namestringThe name of the resource group. The name is case insensitive.
subscription_idstring
$filterstringRestricts the set of items returned.
$topintegerSpecifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n.

SELECT examples

Gets a specific pipeline job by name. Retrieves a specific pipeline job by name. If a pipeline job with that name has been previously created, the call will return the JSON representation of that instance.

SELECT
id,
name,
description,
error,
expiration,
parameters,
state,
systemData,
topologyName,
type
FROM azure_extras.video_analyzer.pipeline_jobs
WHERE account_name = '{{ account_name }}' -- required
AND resource_group_name = '{{ resource_group_name }}' -- required
AND pipeline_job_name = '{{ pipeline_job_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a pipeline job. Creates a new pipeline job or updates an existing one, with the given name.

INSERT INTO azure_extras.video_analyzer.pipeline_jobs (
properties,
account_name,
resource_group_name,
pipeline_job_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ account_name }}',
'{{ resource_group_name }}',
'{{ pipeline_job_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Updates an existing pipeline job. Updates an existing pipeline job with the given name. Properties that can be updated include: description.

UPDATE azure_extras.video_analyzer.pipeline_jobs
SET
properties = '{{ properties }}'
WHERE
account_name = '{{ account_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND pipeline_job_name = '{{ pipeline_job_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

Creates or updates a pipeline job. Creates a new pipeline job or updates an existing one, with the given name.

REPLACE azure_extras.video_analyzer.pipeline_jobs
SET
properties = '{{ properties }}'
WHERE
account_name = '{{ account_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND pipeline_job_name = '{{ pipeline_job_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes a pipeline job. Deletes a pipeline job with the given name.

DELETE FROM azure_extras.video_analyzer.pipeline_jobs
WHERE account_name = '{{ account_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND pipeline_job_name = '{{ pipeline_job_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Cancels a pipeline job. Cancels a pipeline job with the given name.

EXEC azure_extras.video_analyzer.pipeline_jobs.cancel 
@account_name='{{ account_name }}' --required,
@resource_group_name='{{ resource_group_name }}' --required,
@pipeline_job_name='{{ pipeline_job_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;