IBM Cloud API Docs

Introduction

A Unity REST Catalog refers to an API-based implementation that acts as a central metadata management service, often associated with distributed data processing and data lake architectures. It provides a unified interface to manage and query metadata for different data assets like databases, tables, schemas, and files stored across multiple storage systems.

The api are in beta state and expected to change.

Endpoint URLs

The base URL for Unity Rest catalog, https://{host}/api/2.1/unity-catalog,

Authentication

Required Purpose: To work with the API, you must use an IBM Cloud Pak for Data API key (platform API key or instance API key), or IBM Cloud Pak for Data authorization token (platform token or instance token). The API key or token is used to determine the actions that a user or service ID has access to when they use the API.

You can generate an API key or authorization token for an authenticated user by using the Cloud Pak for Data APIs. For more information, see Generating an authorization token or API key.

To use the API, add a valid API key or token to the HTTP Authorization request header. For token, -H 'Authorization: Bearer {TOKEN}'. For API key, you need to firstly encode username together with API key: echo "<username>:<api_key>" | base64. Then, you can use the ZenApiKey header to authenticate to an endpoint: -H "Authorization: ZenApiKey <encoded value>".

To retrieve your access token:

For most Cloud Pak for Data endpoints, you can use the generated API key in the authorization header of subsequent API calls.

curl -H "Authorization: ZenApiKey <token>" "https://<cpd_instance_route>/<endpoint>"

If the ZenApiKey token is not supported, use a generated Bearer token in the authorization header of subsequent API calls.

curl -H "Authorization: Bearer <token>" "https://<cpd_instance_route>/<endpoint>"

Error handling

This API uses standard HTTP response codes to indicate whether a method completed successfully. A 200 response indicates success. A 400 type response indicates a failure, and a 500 type response indicates an internal system error.

HTTP Error Code Description Recovery
200 Success The request was successful.
400 Bad Request The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all required parameters in your request.
401 Unauthorized You are not authorized to make this request. Log in to IBM Cloud and try again. If this error persists, contact the account owner to check your permissions.
403 Forbidden The supplied authentication is not authorized to access '{namespace}'.
404 Not Found The requested resource could not be found.
409 Conflict The entity is already in the requested state.
500 Internal Server Error Your request could not be processed. Wait a few minutes and try again.

Methods

Create a catalog

Creates a new catalog instance.

POST /catalogs

Request

Create catalog

  • curl -X POST -H "accept: application/json" -H "Authorization: ••••••" -H "Content-Type: application/json" -d '{"name":"string","comment":"string","properties":{"locationUri":"string","storageName":"string","catalogType":"string"}}' "https://{region}/api/2.1/unity-catalog/catalogs"

Response

Catalog Info

Status Code

  • The new catalog was successfully created.

  • Bad Request

  • Unauthorized

Example responses
  • {
      "name": "string",
      "comment": "string",
      "properties": {
        "storageName": "string",
        "catalogType": "string",
        "additionalProp3": "string"
      },
      "created_at": 0,
      "updated_at": 0,
      "id": "10",
      "owner": "string",
      "created_by": "string",
      "updated_by": "string"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }

List catalogs

Lists the available catalogs. There is no guarantee of a specific ordering of the elements in the list.

GET /catalogs

Request

Query Parameters

  • Opaque pagination token to go to next page based on previous query.

    Possible values: 1 ≤ length ≤ 128, Value must match regular expression ^[a-zA-Z0-9]*$

  • Maximum number of catalogs to return.

    • when set to a value greater than 0, the page length is the minimum of this value and a server configured value;
    • when set to 0, the page length is set to a server configured value;
    • when set to a value less than 0, an invalid parameter error is returned;

    Possible values: 0 ≤ value ≤ 1000000000000000

  • curl -X GET -H "accept: application/json" -H "Authorization: ••••••" -H "Content-Type: application/json" "https://{region}/api/2.1/unity-catalog/catalogs"

Response

List of catalogs

Status Code

  • The catalog list was successfully retrieved.

  • Bad Request

  • Unauthorized

Example responses
  • {
      "catalogs": [
        {
          "name": "string",
          "comment": "string",
          "properties": {
            "catalogType": "string",
            "storageName": "string"
          },
          "created_at": 0,
          "updated_at": 0,
          "id": "0",
          "owner": "string",
          "created_by": "string",
          "updated_by": "string"
        }
      ]
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }

Get a catalog

Gets the specified catalog.

GET /catalogs/{name}

Request

Path Parameters

  • The name of the catalog.

    Possible values: 1 ≤ length ≤ 128, Value must match regular expression ^[a-zA-Z0-9]*$

  • curl -X GET -H "accept: application/json" -H "Authorization: ••••••" -H "Content-Type: application/json" "https://{region}/api/2.1/unity-catalog/catalogs/{catalog_name}"

Response

Catalog Info

Status Code

  • The catalog was successfully retrieved.

  • Bad Request

  • Unauthorized

Example responses
  • {
      "name": "string",
      "comment": "string",
      "properties": {
        "catalogType": "string",
        "storageName": "string"
      },
      "created_at": 0,
      "updated_at": 0,
      "id": "string",
      "owner": "string",
      "created_by": "string",
      "updated_by": "string"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }

Delete a catalog

Deletes the catalog that matches the supplied name.

DELETE /catalogs/{name}

Request

Path Parameters

  • The name of the catalog.

    Possible values: 1 ≤ length ≤ 128, Value must match regular expression ^[a-zA-Z0-9]*$

Query Parameters

  • Force deletion even if the catalog is not empty.

  • curl -X DELETE -H "accept: application/json" -H "Authorization: ••••••" -H "Content-Type: application/json" "https://{region}/api/2.1/unity-catalog/catalogs/{catalog_name}?force=true"

Response

Delete Catalog Response

Status Code

  • The catalog was successfully deleted.

  • Bad Request

  • Unauthorized

Example responses
  • catalog: <catalog_name> deleted successfully
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }

Create a schema

Creates a new schema in the specified catalog.

POST /schemas

Request

Create a Schema

  • curl -X POST -H "accept: application/json" -H "Authorization: ••••••" -H "Content-Type: application/json" -d '{"name": "testschema", "catalog_name": "testcatalog","comment": "string","properties": { "locationUri": "s3a://{bucket_name}/{schema_name}.db"}}' "https://{region}/api/2.1/unity-catalog/schemas"

Response

Information about Schema

Status Code

  • The new schema was successfully created.

  • Bad Request

  • Unauthorized

Example responses
  • {
      "name": "string",
      "catalog_name": "string",
      "comment": "string",
      "properties": {
        "locationUri": "s3a://bucket_name/schema_name.db"
      },
      "full_name": "string",
      "created_at": 0,
      "updated_at": 0,
      "schema_id": "string"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }

List schemas

Gets an array of schemas for a catalog. There is no guarantee of a specific ordering of the elements in the array.

GET /schemas

Request

Query Parameters

  • Parent catalog for schemas of interest.

    Possible values: 1 ≤ length ≤ 128, Value must match regular expression ^[a-zA-Z0-9]*$

  • Maximum number of schemas to return.

    • when set to a value greater than 0, the page length is the minimum of this value and a server configured value;
    • when set to 0, the page length is set to a server configured value;
    • when set to a value less than 0, an invalid parameter error is returned;

    Possible values: 0 ≤ value ≤ 1000000000000000

  • Opaque pagination token to go to next page based on previous query.

    Possible values: 1 ≤ length ≤ 128, Value must match regular expression ^[a-zA-Z0-9]*$

  • curl -X GET -H "accept: application/json" -H "Authorization: ••••••" -H "Content-Type: application/json" "https://{region}/api/2.1/unity-catalog/schemas?catalog_name={catalog_name}"

Response

List Schema Response

Status Code

  • The schemas list was successfully retrieved.

  • Bad Request

  • Unauthorized

Example responses
  • {
      "schemas": [
        {
          "name": "string",
          "catalog_name": "string",
          "comment": "string",
          "properties": {
            "locationUri": "s3a://bucketname/schema_name.db"
          },
          "full_name": "string",
          "created_at": 0,
          "updated_at": 0,
          "schema_id": "0"
        }
      ]
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }

Get a schema

Gets the specified schema for a catalog.

GET /schemas/{full_name}

Request

Path Parameters

  • Full name of the schema.

    Possible values: 1 ≤ length ≤ 256, Value must match regular expression ^[a-zA-Z0-9.-_]*$

  • curl -X GET -H "accept: application/json" -H "Authorization: ••••••" -H "Content-Type: application/json" "https://{region}/api/2.1/unity-catalog/schemas/{catalog_name.schema_name}"

Response

Information about Schema

Status Code

  • The schema was successfully retrieved.

  • Bad Request

  • Unauthorized

Example responses
  • {
      "name": "string",
      "catalog_name": "string",
      "comment": "string",
      "properties": {
        "locationUri": "s3a://bucket_name/schema_name.db"
      },
      "full_name": "string",
      "created_at": 0,
      "updated_at": 0,
      "schema_id": "3"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }

Update a schema

Updates the specified schema.

PATCH /schemas/{full_name}

Request

Path Parameters

  • Full name of the schema.

    Possible values: 1 ≤ length ≤ 256, Value must match regular expression ^[a-zA-Z0-9.-_]*$

Update Schema

  • curl -X PATCH -H "accept: application/json" -H "Authorization: ••••••" -H "Content-Type: application/json" -d "comment": "string", "properties": { "additionalProp1": "string","additionalProp2": "string","additionalProp3": "string"},"new_name": "string" "https://{region}/api/2.1/unity-catalog/schemas/{catalog_name.schema_name}"

Response

Information about Schema

Status Code

  • The schema was successfully updated.

  • Bad Request

  • Unauthorized

Example responses
  • {
      "name": "string",
      "catalog_name": "string",
      "comment": "string",
      "properties": {
        "locationUri": "s3a://bucketname/schemaname.db"
      },
      "full_name": "catalog_name.schema_name",
      "created_at": 0,
      "updated_at": 0,
      "schema_id": "3"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }

Delete a schema

Deletes the specified schema from the parent catalog.

DELETE /schemas/{full_name}

Request

Path Parameters

  • Full name of the schema.

    Possible values: 1 ≤ length ≤ 256, Value must match regular expression ^[a-zA-Z0-9.-_]*$

Query Parameters

  • Force deletion even if the catalog is not empty.

  • curl -X DELETE -H "accept: application/json" -H "Authorization: ••••••" -H "Content-Type: application/json" "https://{region}/api/2.1/unity-catalog/schemas/{catalog_name.schema_name}"

Response

Status Code

  • The schema was successfully deleted.

  • Bad Request

  • Unauthorized

Example responses
  • true
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }

Create a table.

Creates a new external table instance. WARNING: This API is experimental and will change in future versions.

POST /tables

Request

Create a table

  • curl -X POST -H "accept: application/json" -H "Authorization: ••••••" -H "Content-Type: application/json" -d "{" "name": "testtable", "catalog_name": "testcatalog", "schema_name": "testschema", "table_type": "MANAGED", "data_source_format": "DELTA", "columns": [{ "name": "id", "type_text": "string", "type_json": "string", "type_name": "BOOLEAN", "type_precision": 0, "type_scale": 0, "type_interval_type": "string", "position": 0, "comment": "string", "nullable": true, "partition_index": 0 }], "storage_location": null, "comment": "string", "properties": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" } }" "https://{region}/api/2.1/unity-catalog/tables"

Response

Table Info

Status Code

  • The new external table was successfully created.

  • Bad Request

  • Unauthorized

Example responses
  • {
      "name": "string",
      "catalog_name": "string",
      "schema_name": "string",
      "table_type": "EXTERNAL",
      "data_source_format": "HIVE",
      "columns": [
        {
          "name": "id",
          "type_text": "string",
          "type_json": "string",
          "type_name": "STRING",
          "type_precision": 0,
          "type_scale": 0,
          "type_interval_type": null,
          "position": 0,
          "comment": "string",
          "nullable": false,
          "partition_index": 1
        }
      ],
      "storage_location": "string",
      "comment": null,
      "properties": {
        "external.table.purge": "TRUE",
        "additionalProp1": "string",
        "EXTERNAL": "TRUE",
        "transient_lastDdlTime": "string",
        "TRANSLATED_TO_EXTERNAL": "TRUE",
        "additionalProp3": "string",
        "additionalProp2": "string"
      },
      "created_at": 0,
      "updated_at": 0,
      "table_id": "0"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }

List tables

Gets the list of all available tables under the parent catalog and schema. There is no guarantee of a specific ordering of the elements in the array.

GET /tables

Request

Query Parameters

  • Name of parent catalog for tables of interest.

    Possible values: 1 ≤ length ≤ 128, Value must match regular expression ^[a-zA-Z0-9]*$

  • Parent schema of tables.

    Possible values: 1 ≤ length ≤ 128, Value must match regular expression ^[a-zA-Z0-9]*$

  • Maximum number of tables to return.

    • when set to a value greater than 0, the page length is the minimum of this value and a server configured value;
    • when set to 0, the page length is set to a server configured value;
    • when set to a value less than 0, an invalid parameter error is returned;

    Possible values: 0 ≤ value ≤ 1000000000000000

  • Opaque token to send for the next page of results (pagination).

    Possible values: 1 ≤ length ≤ 128, Value must match regular expression ^[a-zA-Z0-9]*$

  • curl -X GET -H "accept: application/json" -H "Authorization: ••••••" -H "Content-Type: application/json" "https://{region}/api/2.1/unity-catalog/tables"

Response

List of Tables

Status Code

  • The tables list was successfully retrieved.

  • Bad Request

  • Unauthorized

Example responses
  • {
      "tables": [
        {
          "name": "string",
          "catalog_name": "string",
          "schema_name": "string",
          "table_type": "EXTERNAL",
          "data_source_format": "DELTA",
          "columns": [
            {
              "name": "id",
              "type_text": "string",
              "type_json": "string",
              "type_name": "STRING",
              "type_precision": 0,
              "type_scale": 0,
              "type_interval_type": "string",
              "position": 0,
              "comment": "string",
              "nullable": false,
              "partition_index": 0
            }
          ],
          "storage_location": "string",
          "comment": "string",
          "properties": {
            "external.table.purge": "TRUE",
            "additionalProp1": "string",
            "EXTERNAL": "TRUE",
            "transient_lastDdlTime": "string",
            "TRANSLATED_TO_EXTERNAL": "TRUE",
            "additionalProp3": "string",
            "additionalProp2": "string"
          },
          "created_at": 0,
          "updated_at": 0,
          "table_id": "26"
        }
      ]
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }

Get a table

Gets a table for a specific catalog and schema.

GET /tables/{full_name}

Request

Path Parameters

  • Full name of the table.

    Possible values: 1 ≤ length ≤ 100000, Value must match regular expression ^[a-zA-Z0-9]*$

  • curl -X GET -H "accept: application/json" -H "Authorization: ••••••" -H "Content-Type: application/json" "https://{region}/api/2.1/unity-catalog/tables/{catalog_name.schema_name.table_name}"

Response

Table Info

Status Code

  • The table was successfully retrieved.

  • Bad Request

  • Unauthorized

Example responses
  • {
      "name": "string",
      "catalog_name": "string",
      "schema_name": "string",
      "table_type": "EXTERNAL",
      "data_source_format": "DELTA",
      "columns": [
        {
          "name": "id",
          "type_text": "string",
          "type_json": "string",
          "type_name": "string",
          "type_precision": 0,
          "type_scale": 0,
          "type_interval_type": "string",
          "position": 0,
          "comment": "string",
          "nullable": false,
          "partition_index": 0
        }
      ],
      "storage_location": "s3a://func-test-bucket/presto-warehouse/ad_hive_schema/my_table_ad",
      "comment": "string",
      "properties": {
        "external.table.purge": "TRUE",
        "additionalProp1": "string",
        "EXTERNAL": "TRUE",
        "transient_lastDdlTime": "string",
        "TRANSLATED_TO_EXTERNAL": "TRUE",
        "additionalProp3": "string",
        "additionalProp2": "string"
      },
      "created_at": 0,
      "updated_at": 0,
      "table_id": "0"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }

Delete a table

Deletes a table from the specified parent catalog and schema.

DELETE /tables/{full_name}

Request

Path Parameters

  • Full name of the table.

    Possible values: 1 ≤ length ≤ 100000, Value must match regular expression ^[a-zA-Z0-9]*$

  • curl -X DELETE -H "accept: application/json" -H "Authorization: ••••••" -H "Content-Type: application/json" "https://{region}/api/2.1/unity-catalog/tables/{catalog_name.schema_name.table_name}"

Response

Status Code

  • The table was successfully deleted.

  • Bad Request

  • Unauthorized

Example responses
  • true
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }

Get a temporary table credentials

POST /temporary-table-credentials

Request

Examples:
{
  "table_id": "string",
  "operation": "UNKNOWN_TABLE_OPERATION"
}
  • curl -X POST -H "accept: application/json" -H "Authorization: ••••••" -H "Content-Type: application/json" -d '{"table_id":"10","operation":"UNKNOWN_TABLE_OPERATION"}' "https://{region}/api/2.1/unity-catalog/temporary-table-credentials"

Response

Response for credential APIs

Status Code

  • OK

  • Bad Request

  • Unauthorized

Example responses
  • {
      "aws_temp_credentials": "string",
      "azure_user_delegation_sas": {
        "sas_token": "string"
      },
      "gcp_oauth_token": "string",
      "expiration_time": 0
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }

Get a temporary path credentials

POST /temporary-path-credentials

Request

Get a temporary Path credential

Examples:
{
  "url": "string",
  "operation": "UNKNOWN_PATH_OPERATION"
}
  • curl -X POST -H "accept: application/json" -H "Authorization: ••••••" -H "Content-Type: application/json" -d '{"url":"string","operation":"UNKNOWN_PATH_OPERATION"}' "https://{region}/api/2.1/unity-catalog/temporary-path-credentials"

Response

Response for credential APIs

Status Code

  • OK

  • Bad Request

  • Unauthorized

Example responses
  • {
      "aws_temp_credentials": "string",
      "azure_user_delegation_sas": {
        "sas_token": "string"
      },
      "gcp_oauth_token": "string",
      "expiration_time": 0
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }
  • {
      "error": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "exception": {
        "cause": {
          "stackTrace": [
            {
              "classLoaderName": "string",
              "moduleName": "string",
              "moduleVersion": "string",
              "methodName": "string",
              "fileName": "string",
              "lineNumber": 0,
              "nativeMethod": true,
              "className": "string"
            }
          ],
          "message": "string",
          "suppressed": [
            {
              "stackTrace": [
                {
                  "classLoaderName": "string",
                  "moduleName": "string",
                  "moduleVersion": "string",
                  "methodName": "string",
                  "fileName": "string",
                  "lineNumber": 0,
                  "nativeMethod": true,
                  "className": "string"
                }
              ],
              "message": "string",
              "localizedMessage": "string"
            }
          ],
          "localizedMessage": "string"
        },
        "stackTrace": [
          {
            "classLoaderName": "string",
            "moduleName": "string",
            "moduleVersion": "string",
            "methodName": "string",
            "fileName": "string",
            "lineNumber": 0,
            "nativeMethod": true,
            "className": "string"
          }
        ],
        "message": "string",
        "suppressed": [
          {
            "stackTrace": [
              {
                "classLoaderName": "string",
                "moduleName": "string",
                "moduleVersion": "string",
                "methodName": "string",
                "fileName": "string",
                "lineNumber": 0,
                "nativeMethod": true,
                "className": "string"
              }
            ],
            "message": "string",
            "localizedMessage": "string"
          }
        ],
        "localizedMessage": "string"
      },
      "message_code": "string",
      "status_code": 0,
      "message": "string"
    }
id=curlclassName=tab-item-selected