Skip to main content

List policies for a metadata object

GET 

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

Returns the names of the policies attached to a metadata object or inherited from its parent objects, or the full policies when details is true. Each full policy reports in inherited whether it comes from a parent object.

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

Query Parameters

    details boolean

    Whether to return the full policy objects instead of only the policy names

Responses​

The names of the policies attached to the object or inherited from its parent objects, or the full policies when details is true.

Schema

    oneOf

    code int32

    Possible values: [0]

    Status code of the response

    names string[]
Loading...