TemporaryCredentials

Generate temporary model version credentials. These credentials are used by clients to write and retrieve model artifacts from the model versions external storage location.

Changed on
post/temporary-model-version-credentials

Request

  • Base URL
    http://localhost:8080/api/2.1/unity-catalog
  • Auth
    none declared

Request body

catalog_namestring required

Catalog name for which temporary credentials are generated. Can be obtained from models/{full_name} (get model info) API.

schema_namestring required

Schema name for which temporary credentials are generated. Can be obtained from models/{full_name} (get model info) API.

model_namestring required

Model name for which temporary credentials are generated. Can be obtained from models/{full_name} (get model info) API.

versioninteger required

Model version for which temporary credentials are generated.

operation'UNKNOWN_MODEL_VERSION_OPERATION' | 'READ_MODEL_VERSION' | 'READ_WRITE_MODEL_VERSION' required

Example request

{
  "catalog_name": "catalog_name",
  "schema_name": "schema_name",
  "model_name": "model_name",
  "version": "version",
  "operation": null
}

Response

Successful response

expiration_timeinteger

Server time when the credential will expire, in epoch milliseconds. The API client is advised to cache the credential given this expiration time.

urlstring

The normalized URL of the storage path the temporary credential was generated for.

Changes

    • info

      added the optional property to the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      api tag TemporaryCredentials added

    • info

      api tag TemporaryModelVersionCredentials removed