Skip to content

ModelService

ModelService is a Unity Catalog API service that UnityCatalogServer uses to handle HTTP requests at /api/2.1/unity-catalog/models URL.

Method URL Handler Params
GET / listRegisteredModels
  • catalog_name
  • schema_name
  • max_results
  • page_token
POST / createRegisteredModel CreateRegisteredModel
DELETE /{full_name} deleteRegisteredModel
  • fullName
  • force
GET /{full_name} getRegisteredModel
  • fullName
PATCH /{full_name} updateRegisteredModel UpdateRegisteredModel
GET /{full_name}/versions listModelVersions
  • full_name
  • max_results
  • page_token
DELETE /{full_name}/versions/{version} deleteModelVersion
  • fullName
  • version
GET /{full_name}/versions/{version} getModelVersion
  • full_name
  • version
PATCH /{full_name}/versions/{version} updateModelVersion UpdateModelVersion
PATCH /{full_name}/versions/{version}/finalize finalizeModelVersion FinalizeModelVersion
POST /versions createModelVersion CreateModelVersion

Creating Instance

ModelService takes the following to be created:

While being created, ModelService creates an UnityAccessEvaluator.

ModelService is created when:

UnityAccessEvaluator

ModelService creates an UnityAccessEvaluator (with the given UnityCatalogAuthorizer) when created.

ModelRepository

ModelService gets the system-wide ModelRepository when created.

Register Model

HttpResponse createRegisteredModel(
  CreateRegisteredModel createRegisteredModel)

createRegisteredModel requests the ModelRepository instance to register a model.

Example

$ http http://localhost:8081/api/2.1/unity-catalog/models | jq '.registered_models'
[]