Skip to main content

exported_model

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

Overview

Nameexported_model
TypeResource
Idazure.ai_text_analytics_authoring.exported_model

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
exportedModelNamestringThe exported model name. Required.
lastExportedModelDateTimestring (date-time)The last exported date time of the model. Required.
lastTrainedDateTimestring (date-time)The last trained date time of the model. Required.
modelExpirationDatestring (date)The model expiration date. Required.
modelIdstringThe model ID. Required.
modelTrainingConfigVersionstringThe model training config version. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
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.
get_exported_model_manifestexecexported_model_name, project_name, endpointGets the details and URL needed to download the 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.
project_namestring

SELECT examples

Gets the details of an exported model.

SELECT
exportedModelName,
lastExportedModelDateTime,
lastTrainedDateTime,
modelExpirationDate,
modelId,
modelTrainingConfigVersion
FROM azure.ai_text_analytics_authoring.exported_model
WHERE exported_model_name = '{{ exported_model_name }}' -- 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_text_analytics_authoring.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_text_analytics_authoring.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_text_analytics_authoring.exported_model
WHERE exported_model_name = '{{ exported_model_name }}' --required
AND project_name = '{{ project_name }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods

Gets the details and URL needed to download the exported model.

EXEC azure.ai_text_analytics_authoring.exported_model.get_exported_model_manifest 
@exported_model_name='{{ exported_model_name }}' --required,
@project_name='{{ project_name }}' --required,
@endpoint='{{ endpoint }}' --required
;