Skip to main content

schemas

Creates, updates, deletes, gets or lists a schemas resource.

Overview

Nameschemas
TypeResource
Iddatabricks_workspace.realtimeserving.schemas

Fields

The following fields are returned by SELECT queries:

The OpenAPI spec for the invocation schema was fetched successfully

NameDatatypeDescription
infoobject
openapistring
pathsobject
serversarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getopenapiselectdeployment_nameGet the query schema of the serving endpoint in OpenAPI format. The schema contains information for the supported paths, input and output format and datatypes.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)

SELECT examples

Get the query schema of the serving endpoint in OpenAPI format. The schema contains information for the supported paths, input and output format and datatypes.

SELECT
info,
openapi,
paths,
servers
FROM databricks_workspace.realtimeserving.schemas
WHERE deployment_name = '{{ deployment_name }}' -- required;