Skip to main content

operations

Creates, updates, deletes, gets or lists an operations resource.

Overview

Nameoperations
TypeResource
Idazure.ai_document_intelligence.operations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
apiVersionstringAPI version used to create this operation.
createdDateTimestring (date-time)Date and time (UTC) when the operation was created. Required.
errorobjectEncountered error.
kindstringType of operation. Required. Known values are: "documentModelBuild", "documentModelCompose", "documentModelCopyTo", "documentClassifierCopyTo", and "documentClassifierBuild".
lastUpdatedDateTimestring (date-time)Date and time (UTC) when the status was last updated. Required.
operationIdstringOperation ID. Required.
percentCompletedintegerOperation progress (0-100).
resourceLocationstringURL of the resource targeted by this operation. Required.
statusstringOperation status. notStarted, running, completed, or failed. Required. Known values are: "notStarted", "running", "failed", "succeeded", "canceled", and "skipped". (notStarted, running, failed, succeeded, canceled, skipped)
tagsobjectList of key-value tag attributes associated with the document model.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_operationselectoperation_id, endpointGets operation info.
list_operationsselectendpointLists all operations.

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: )
operation_idstringOperation ID. Required.

SELECT examples

Gets operation info.

SELECT
apiVersion,
createdDateTime,
error,
kind,
lastUpdatedDateTime,
operationId,
percentCompleted,
resourceLocation,
status,
tags
FROM azure.ai_document_intelligence.operations
WHERE operation_id = '{{ operation_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;