Databricks SDK for JavaScript
    Preparing search index...
    Index

    Constructors

    Methods

    • Creates a new registered model in Unity Catalog.

      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.

      Parameters

      Returns Promise<RegisteredModelInfo>

    • List model versions. You can list model versions under a particular schema, or list all model versions in the current metastore.

      The returned models are filtered based on the privileges of the calling user. For example, the metastore admin is able to list all the model versions. A regular user needs to be the owner or have the EXECUTE privilege on the parent registered model to receive the model versions in the response. 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.

      There is no guarantee of a specific ordering of the elements in the response. The elements in the response will not contain any aliases or tags.

      PAGINATION BEHAVIOR: The API is by default paginated, a page may contain zero results while still providing a next_page_token. Clients must continue reading pages until next_page_token is absent, which is the only indication that the end of results has been reached.

      Parameters

      Returns Promise<ListModelVersionsResponse>

    • List registered models. You can list registered models under a particular schema, or list all registered models in the current metastore.

      The returned models are filtered based on the privileges of the calling user. For example, the metastore admin is able to list all the registered models. A regular user needs to be the owner or have the EXECUTE privilege on the registered model to receive the registered models in the response. 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.

      There is no guarantee of a specific ordering of the elements in the response.

      PAGINATION BEHAVIOR: The API is by default paginated, a page may contain zero results while still providing a next_page_token. Clients must continue reading pages until next_page_token is absent, which is the only indication that the end of results has been reached.

      Parameters

      Returns Promise<ListRegisteredModelsResponse>

    • Updates the specified model version.

      The caller must be a metastore admin or an owner of the parent 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.

      Currently only the comment of the model version can be updated.

      Parameters

      Returns Promise<ModelVersionInfo>