Skip to main content

document_status

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

Overview

Namedocument_status
TypeResource
Idazure.ai_translation_document.document_status

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringDocument Id. Required.
characterChargedintegerCharacter charged by the API.
createdDateTimeUtcstring (date-time)Operation created date time. Required.
errorobjectThis contains an outer error with error code, message, details, target and an inner error with more descriptive details.
lastActionDateTimeUtcstring (date-time)Date time in which the operation's status has been updated. Required.
pathstringLocation of the document or folder.
progressnumberProgress of the translation if available. Required.
sourcePathstringLocation of the source document. Required.
statusstringList of possible statuses for job or document. Required. Known values are: "NotStarted", "Running", "Succeeded", "Failed", "Cancelled", "Cancelling", and "ValidationFailed". (NotStarted, Running, Succeeded, Failed, Cancelled, Cancelling, ValidationFailed)
tostringTo language. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_document_statusselectid, document_id, endpointReturns the status for a specific document. Returns the translation status for a specific document based on the request Id and document Id.

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
document_idstringFormat - uuid. The document id. Required.
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
idstringFormat - uuid. The batch id. Required.

SELECT examples

Returns the status for a specific document. Returns the translation status for a specific document based on the request Id and document Id.

SELECT
id,
characterCharged,
createdDateTimeUtc,
error,
lastActionDateTimeUtc,
path,
progress,
sourcePath,
status,
to
FROM azure.ai_translation_document.document_status
WHERE id = '{{ id }}' -- required
AND document_id = '{{ document_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;