Skip to main content

jobs

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

Overview

Namejobs
TypeResource
Idazure_extras.health_deidentification.jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of a job. Required.
createdAtstring (date-time)Date and time when the job was created. Required.
customizationsobjectCustomization parameters to override default service behaviors.
errorobjectError when job fails in it's entirety.
lastUpdatedAtstring (date-time)Date and time when the job was completed. If the job is canceled, this is the time when the job was canceled. If the job failed, this is the time when the job failed. Required.
operationstringOperation to perform on the input documents. Known values are: "Redact", "Surrogate", "Tag", and "SurrogateOnly". (Redact, Surrogate, Tag, SurrogateOnly)
sourceLocationobjectStorage location to perform the operation on. Required.
startedAtstring (date-time)Date and time when the job was started.
statusstringCurrent status of a job. Required. Known values are: "NotStarted", "Running", "Succeeded", "Failed", and "Canceled". (NotStarted, Running, Succeeded, Failed, Canceled)
summaryobjectSummary of a job. Exists only when the job is completed.
targetLocationobjectTarget location to store output of operation. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_jobselectname, endpointGet a de-identification job. Resource read operation template.
delete_jobdeletename, endpointDelete a de-identification job. Removes the record of the job from the service. Does not delete any documents.

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
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
namestringThe name of a job. Required.

SELECT examples

Get a de-identification job. Resource read operation template.

SELECT
name,
createdAt,
customizations,
error,
lastUpdatedAt,
operation,
sourceLocation,
startedAt,
status,
summary,
targetLocation
FROM azure_extras.health_deidentification.jobs
WHERE name = '{{ name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

DELETE examples

Delete a de-identification job. Removes the record of the job from the service. Does not delete any documents.

DELETE FROM azure_extras.health_deidentification.jobs
WHERE name = '{{ name }}' --required
AND endpoint = '{{ endpoint }}' --required
;