mc admin policy list

List all policies.

Syntax

CLI
mc admin policy list - list all policies

USAGE:
  mc admin policy list TARGET [ account=<account_name> ] [ domain=<domain_name> ]

FLAGS:
  --json                        enable JSON lines formatted output
  --debug                       enable debug output
  --insecure                    disable SSL certificate verification
  --help, -h                    show help

Parameters

Parameter Description
TARGET The alias of a configured HPE Ezmeral Object Store from which to retrieve the policies. This parameter is mandatory.
account The account from which to retrieve the list of policies. Omitting this parameter, lists only IAM policies present in the default account.
domain The domain from which to retrieve the list of policies.
json Enables JSON formatted output.
debug Enables output for debugging.
insecure Disables SSL verification.
help Shows this help.

Examples

  1. List all IAM policies on the Object Store deployment with alias salesobject. The policies are listed from the primary domain for the default account:
    CLI
    mc admin policy list salesobject
  2. List all IAM policies for the domain primary from the Object Store deployment with alias salesobject for the default account:
    CLI
    mc admin policy list salesobject domain='primary'
  3. List all policies for the domain primary from the Object Store deployment with alias salesobject for the northamerica account:
    CLI
    mc admin policy list salesobject domain='primary' account='northamerica'