Skip to main content

Create topic

POST 

/metalakes/:metalake/catalogs/:catalog/schemas/:schema/topics

Creates a topic in the schema and returns it. The topic is also created in the Kafka cluster behind the catalog.

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

    schema stringrequired

    The name of the schema

Body

    name stringrequired

    The name of the topic

    comment stringnullable

    The comment of the topic

    properties

    object

    nullable

    The properties of the topic

    property name* string

Responses​

The topic, with its comment, properties and audit information.

Schema

    code int32

    Possible values: [0]

    Status code of the response

    topic

    object

    name stringrequired

    The name of the topic

    comment string

    The comment of the topic

    properties

    object

    nullable

    The properties of the topic

    property name* string

    audit

    object

    Audit information for a Gravitino resource.

    creator string

    The user who created the resource

    createTime date-time

    The time the resource was created

    lastModifier string

    The user who last modified the resource

    lastModifiedTime date-time

    The time the resource was last modified

Loading...