Documentation

mc admin policy ls

Syntax

Lists all policies on the target MinIO deployment.

The mc admin policy list command has equivalent functionality to mc admin policy ls.

The following command displays a list of the policies currently current on the alias play.

mc admin policy ls play

The command has the following syntax:

mc admin policy ls TARGET
  • Brackets [] indicate optional parameters.

  • Parameters sharing a line are mutually dependent.

  • Parameters separated using the pipe | operator are mutually exclusive.

Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.

Parameters

The mc admin policy ls command accepts the following arguments:

TARGET

The alias of a configured MinIO deployment from which the command lists the available policies.

Global Flags

This command supports any of the global flags.

Examples

List the policies that exist on the deployment at alias myminio.

mc admin policy ls myminio

Output

The command returns output that resembles the following:

readwrite
writeonly