Skip to main content

Get owner

GET 

/metalakes/:metalake/owners/:metadataObjectType/:metadataObjectFullName

Returns the owner of a metadata object, with the owner's name and whether it is a user or a group. When the object has no owner, the response has no owner field.

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

Request​

Path Parameters

    metalake stringrequired

    The name of the metalake

    metadataObjectType stringrequired

    Possible values: [METALAKE, CATALOG, SCHEMA, FILESET, TABLE, VIEW, TOPIC, COLUMN, ROLE, MODEL, TAG, POLICY, JOB, JOB_TEMPLATE, FUNCTION]

    The type of the metadata object. The owner endpoints accept every metadata object type. Gravitino records an owner automatically when it creates any of these objects except a column, so a column has an owner only after one is set explicitly. The server matches the value case-insensitively.

    metadataObjectFullName stringrequired

    The full name of the metadata object

Responses​

The owner's name and whether it is a user or a group. The owner field is absent when the object has no owner.

Schema

    code int32

    Possible values: [0]

    Status code of the response

    owner

    object

    name stringrequired

    The name of the owner

    type stringrequired

    Possible values: [user, group]

    The type of the owner. Responses return the value in lowercase; requests accept any case.

Loading...