Skip to main content

Associate policies with a metadata object

POST 

/metalakes/:metalake/objects/:metadataObjectType/:metadataObjectFullName/policies

Attaches policies to a metadata object and detaches others in one request, and returns the names of the policies attached directly to the object afterward. A policy listed in both policiesToAdd and policiesToRemove is left unchanged.

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: [CATALOG, SCHEMA, FILESET, TABLE, VIEW, TOPIC, MODEL, FUNCTION]

    The type of the metadata object. Policies can be associated with these types only; associating a policy with any other type fails with IllegalArgumentException. The server matches the value case-insensitively.

    metadataObjectFullName stringrequired

    The full name of the metadata object

Body

    policiesToAdd string[]nullable

    The names of the policies to attach

    policiesToRemove string[]nullable

    The names of the policies to detach

Responses​

The names of the policies attached directly to the object after the change.

Schema

    code int32

    Possible values: [0]

    Status code of the response

    names string[]
Loading...