Skip to main content

revoke-privilege

Addedv0.1.x

This operation revokes a privilege from a role.

📘Notes

This command is available for Dedicated clusters only.

Synopsis

zilliz role revoke-privilege
--role <value>
--object-type <Global | Collection | Database>
--object-name <value>
--privilege <value>
[--database <value>]
[--output <json | table | text | yaml | csv>]
[--no-header]
[--query <value>]

Options

  • --role (string) -

    [REQUIRED]

    Indicates the role name.

  • --object-type (string) -

    [REQUIRED]

    Indicates the object type. Possible values:

    • Global,

    • Collection,

    • Database.

  • --object-name (string) -

    [REQUIRED]

    Indicates the object name (or * for all).

  • --privilege (string) -

    [REQUIRED]

    Indicates the privilege name.

  • --database (string) -

    Indicates the database name.

  • --output, -o (string) -

    Indicates the output format. Possible values:

    • json,

    • table,

    • text,

    • yaml,

    • csv.

  • --no-header (boolean) -

    Indicates whether to omit the header row when the output is set to table or csv.

  • --query, -q (string) -

    Indicates a JMESPath expression to filter output.

Example

zilliz role revoke-privilege --role my_role --object-type Collection --object-name my_col --privilege Search