Skip to main content

Model Alias

View as Markdown

ModelVersionInfo object​

A numbered version of a registered model in Unity Catalog. A model version is identified by the full name of its parent registered model and its version number, or by an alias that points to it. See https://docs.databricks.com/aws/en/machine-learning/manage-model-lifecycle/.

model_namestring

The name of the parent registered model of the model version, relative to parent schema

catalog_namestring

The name of the catalog containing the model version

schema_namestring

The name of the schema containing the model version, relative to parent catalog

sourcestring

URI indicating the location of the source artifacts (files) for the model version

commentstring[ 1 .. 65536 ] characters

The comment attached to the model version

run_idstring

MLflow run ID used when creating the model version, if source was generated by an experiment run stored in an MLflow tracking server

run_workspace_idint64int32

ID of the <Databricks> workspace containing the MLflow run that generated this model version, if applicable

model_version_dependenciesobject

Model version dependencies, for feature-store packaged models

Show child attributesHide child attributes
dependenciesarray of object

Array of dependencies.

Show child attributesHide child attributes
tableobject

A dependency on a Unity Catalog table.

Show child attributesHide child attributes
table_full_namestring

Full name of the dependent table, in the form of catalog_name.schema_name.table_name.

functionobject

A dependency on a Unity Catalog function.

Show child attributesHide child attributes
function_full_namestring

Full name of the dependent function, in the form of catalog_name.schema_name.function_name.

connectionobject

A dependency on a Unity Catalog connection.

Show child attributesHide child attributes
connection_namestring

Full name of the dependent connection, in the form of connection_name.

credentialobject

A dependency on a Unity Catalog credential.

Show child attributesHide child attributes
credential_namestring

Full name of the dependent credential, in the form of credential_name.

statusstring

Current status of the model version. Newly created model versions start in PENDING_REGISTRATION status, then move to READY status once the model version files are uploaded and the model version is finalized. Only model versions in READY status can be loaded for inference or served.

Values:

  • MODEL_VERSION_STATUS_UNKNOWN
  • PENDING_REGISTRATION
  • FAILED_REGISTRATION
  • READY
versionint64int32

Integer model version number, used to reference the model version in API requests.

storage_locationstring

The storage location on the cloud under which model version data files are stored

metastore_idstring

The unique identifier of the metastore containing the model version

created_atint64

Time at which the model version was created, in epoch milliseconds.

created_bystring

The identifier of the user who created the model version

updated_atint64

Time at which the model version was last updated, in epoch milliseconds.

updated_bystring

The identifier of the user who updated the model version last time

idstring

The unique identifier of the model version

aliasesarray of object

List of aliases associated with the model version

Show child attributesHide child attributes
alias_namestring

Name of the alias, e.g. 'champion' or 'latest_stable'

version_numint64int32

Integer version number of the model version to which this alias points.

idstring

The unique identifier of the alias

model_namestring

The name of the parent registered model of the model version, relative to parent schema

catalog_namestring

The name of the catalog containing the model version

schema_namestring

The name of the schema containing the model version, relative to parent catalog

Get Model Version By Alias GA​

GET /api/2.1/unity-catalog/models/{full_name_arg}/aliases/{alias_arg}

Get a model version by alias.

The caller must be a metastore admin or an owner of (or have the EXECUTE privilege on) the registered model. For the latter case, the caller must also be the owner or have the USE_CATALOG privilege on the parent catalog and the USE_SCHEMA privilege on the parent schema.

API scopes: unity-catalog

Parameters​

full_name_argstringRequiredpath

The three-level (fully qualified) name of the registered model

alias_argstringRequiredpath

The name of the alias

include_aliasesbooleanquery

Whether to include aliases associated with the model version in the response

Response​

Returns the ModelVersionInfo object.

Set a Registered Model Alias GA​

PUT /api/2.1/unity-catalog/models/{full_name_arg}/aliases/{alias_arg}

Set an alias on the specified registered model.

The caller must be a metastore admin or an owner of the registered model. For the latter case, the caller must also be the owner or have the USE_CATALOG privilege on the parent catalog and the USE_SCHEMA privilege on the parent schema.

API scopes: unity-catalog

Parameters​

full_name_argstringRequiredpath

The three-level (fully qualified) name of the registered model

alias_argstringRequiredpath

The name of the alias

Request body​

version_numint64int32Required

The version number of the model version to which the alias points

Response​

alias_namestring

Name of the alias, e.g. 'champion' or 'latest_stable'

version_numint64int32

Integer version number of the model version to which this alias points.

idstring

The unique identifier of the alias

model_namestring

The name of the parent registered model of the model version, relative to parent schema

catalog_namestring

The name of the catalog containing the model version

schema_namestring

The name of the schema containing the model version, relative to parent catalog

Delete a Registered Model Alias GA​

DELETE /api/2.1/unity-catalog/models/{full_name_arg}/aliases/{alias_arg}

Deletes a registered model alias.

The caller must be a metastore admin or an owner of the registered model. For the latter case, the caller must also be the owner or have the USE_CATALOG privilege on the parent catalog and the USE_SCHEMA privilege on the parent schema.

API scopes: unity-catalog

Parameters​

full_name_argstringRequiredpath

The three-level (fully qualified) name of the registered model

alias_argstringRequiredpath

The name of the alias