Skip to main content

exported_model

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

Overview

Nameexported_model
TypeResource
Idazure.ai_language.exported_model

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
createdDateTimestring (date-time)The creation date time of the job. Required.
errorsarrayThe errors encountered while executing the job.
expirationDateTimestring (date-time)The expiration date time of the job.
jobIdstringThe job ID. Required.
lastUpdatedDateTimestring (date-time)The last date time the job was updated. Required.
statusstringThe job status. Required. Known values are: "notStarted", "running", "succeeded", "failed", "cancelled", "cancelling", and "partiallyCompleted". (notStarted, running, succeeded, failed, cancelled, cancelling, partiallyCompleted)
warningsarrayThe warnings that were encountered while executing the job.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_exported_model_job_statusselectexported_model_name, job_id, project_name, endpointGets the status for an existing job to create or update an exported model.
get_exported_modelselectexported_model_name, project_name, endpointGets the details of an exported model.
create_or_update_exported_modelinsertexported_model_name, project_name, endpoint, trainedModelLabelCreates a new exported model or replaces an existing one.
create_or_update_exported_modelreplaceexported_model_name, project_name, endpoint, trainedModelLabelCreates a new exported model or replaces an existing one.
delete_exported_modeldeleteexported_model_name, project_name, endpointDeletes an existing exported model.

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: )
exported_model_namestringThe exported model name. Required.
job_idstringThe job ID. Required.
project_namestring

SELECT examples

Gets the status for an existing job to create or update an exported model.

SELECT
createdDateTime,
errors,
expirationDateTime,
jobId,
lastUpdatedDateTime,
status,
warnings
FROM azure.ai_language.exported_model
WHERE exported_model_name = '{{ exported_model_name }}' -- required
AND job_id = '{{ job_id }}' -- required
AND project_name = '{{ project_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

INSERT examples

Creates a new exported model or replaces an existing one.

INSERT INTO azure.ai_language.exported_model (
trainedModelLabel,
exported_model_name,
project_name,
endpoint
)
SELECT
'{{ trainedModelLabel }}' /* required */,
'{{ exported_model_name }}',
'{{ project_name }}',
'{{ endpoint }}'
;

REPLACE examples

Creates a new exported model or replaces an existing one.

REPLACE azure.ai_language.exported_model
SET
trainedModelLabel = '{{ trainedModelLabel }}'
WHERE
exported_model_name = '{{ exported_model_name }}' --required
AND project_name = '{{ project_name }}' --required
AND endpoint = '{{ endpoint }}' --required
AND trainedModelLabel = '{{ trainedModelLabel }}' --required;

DELETE examples

Deletes an existing exported model.

DELETE FROM azure.ai_language.exported_model
WHERE exported_model_name = '{{ exported_model_name }}' --required
AND project_name = '{{ project_name }}' --required
AND endpoint = '{{ endpoint }}' --required
;