Skip to main content

Set owner

PUT 

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

Makes a user or group the owner of a metadata object, replacing any existing owner. The user or group must already exist in the metalake.

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

Body

    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.

Responses​

Returns the set operation result

Schema

    code int32

    Possible values: [0]

    Status code of the response

    set boolean

    Whether the set operation was successful

Loading...