Skip to main content
Version: 0.6.1-incubating

Grant privileges to a role

PUT 

/metalakes/:metalake/permissions/roles/:role/:metadataObjectType/:metadataObjectFullName/grant

Grant privileges to a role

Request

Path Parameters

    metalake stringrequired

    The name of the metalake

    role stringrequired

    The name of the role

    metadataObjectType stringrequired

    Possible values: [CATALOG, SCHEMA, TABLE, FILESET, TOPIC, ROLE, METALAKE]

    The type of the metadata object

    metadataObjectFullName stringrequired

    The full name of the metadata object

Body

    privileges

    object[]

    required

    The privileges need to grant

  • Array [

  • name stringrequired

    Possible values: [CREATE_CATALOG, USE_CATALOG, CREATE_SCHEMA, USE_SCHEMA, CREATE_TABLE, MODIFY_TABLE, SELECT_TABLE, CREATE_FILESET, WRITE_FILESET, READ_FILESET, CREATE_TOPIC, PRODUCE_TOPIC, CONSUME_TOPIC, MANAGE_USERS, MANAGE_GROUPS, CREATE_ROLE, MANAGE_GRANTS]

    The name of the privilege

    condition stringrequired

    Possible values: [ALLOW, DENY]

    The condition of the privilege, ALLOW or DENY

  • ]

Responses

Returns the granted role object

Schema

    code int32

    Possible values: [0]

    Status code of the response

    role

    object

    name stringrequired

    The name of the role

    properties

    object

    nullable

    A map of properties for the role

    property name* string

    securableObjects

    object[]

    A list of securable objects

  • Array [

  • fullName stringrequired

    The full name of the securable object

    type stringrequired

    Possible values: [CATALOG, SCHEMA, TABLE, FILESET, TOPIC, METALAKE]

    The type of the securable object

    privileges

    object[]

    A list of privileges

  • Array [

  • name stringrequired

    Possible values: [CREATE_CATALOG, USE_CATALOG, CREATE_SCHEMA, USE_SCHEMA, CREATE_TABLE, MODIFY_TABLE, SELECT_TABLE, CREATE_FILESET, WRITE_FILESET, READ_FILESET, CREATE_TOPIC, PRODUCE_TOPIC, CONSUME_TOPIC, MANAGE_USERS, MANAGE_GROUPS, CREATE_ROLE, MANAGE_GRANTS]

    The name of the privilege

    condition stringrequired

    Possible values: [ALLOW, DENY]

    The condition of the privilege, ALLOW or DENY

  • ]

  • ]

Loading...