Skip to main content

List schemas

GET 

/metalakes/:metalake/catalogs/:catalog/schemas

Returns the identifiers of the schemas in the catalog, or of the child schemas of parentSchema when it is set. When authorization is enabled, only the schemas the caller owns or holds USE_SCHEMA on are returned.

Sign in with a bearer token or a local user's password; see Authentication.

Request​

Path Parameters

    metalake stringrequired

    The name of the metalake

    catalog stringrequired

    The name of the catalog

Query Parameters

    parentSchema string

    The parent schema whose direct child schemas are listed. Only meaningful for catalogs that support hierarchical (multi-level) schemas, such as an Iceberg catalog accessed through the Gravitino REST server with a configured schema separator (gravitino.schema.separator, default :). For example, when the schemas a, a:b and a:b:c exist, listing with parentSchema=a:b returns [a:b:c]. When omitted, only the top-level schemas under the catalog are returned (the direct children of the catalog root, e.g. a), not the nested ones.

Responses​

The identifiers of the entities in the requested namespace, each with its namespace and name.

Schema

    code int32

    Possible values: [0]

    Status code of the response

    identifiers

    object[]

    A list of NameIdentifier objects

  • Array [

  • namespace string[]required

    The namespace of the entity may be with multiple levels

    name stringrequired

    The name of the entity

  • ]

Loading...