Skip to contents

Creates a new registered model in Unity Catalog.

Usage

create_registered_model(
  client,
  catalog_name,
  schema_name,
  name,
  comment = NULL,
  storage_location = NULL
)

registeredModelsCreate(
  client,
  catalog_name,
  schema_name,
  name,
  comment = NULL,
  storage_location = NULL
)

Arguments

client

Required. Instance of DatabricksClient()

catalog_name

Required. The name of the catalog where the schema and the registered model reside.

schema_name

Required. The name of the schema where the registered model resides.

name

Required. The name of the registered model.

comment

The comment attached to the registered model.

storage_location

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

Details

File storage for model versions in the registered model will be located in the default location which is specified by the parent schema, or the parent catalog, or the Metastore.

For registered model creation to succeed, the user must satisfy the following conditions: - The caller must be a metastore admin, or be the owner of the parent catalog and schema, or have the USE_CATALOG privilege on the parent catalog and the USE_SCHEMA privilege on the parent schema. - The caller must have the CREATE MODEL or CREATE FUNCTION privilege on the parent schema.