mc admin policy info

Returns information for a specified policy, along with the users and groups to which the policy is attached.

Syntax

CLI
mc admin policy info - show info on a policy

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

POLICYNAME:
  Name of the policy on the Object Store server.

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 the command retrieves policy information. This parameter is mandatory.
POLICYNAME The name of the policy for which to retrieve the information. This parameter is mandatory.
account The account to which this policy belongs.
domain The domain to which this policy account belongs.
json Enables JSON formatted output.
debug Enables output for debugging.
insecure Disables SSL verification.
help Shows this help.

Examples

  1. Display the information for the listbuckets policy from the Object Store deployment with alias salesobject:
    CLI
    mc admin policy info salesobject listbuckets
  2. Display the information for the listbuckets policy from the Object Store deployment with alias salesobject, which is applicable to the domain primary:
    CLI
    mc admin policy info salesobject listbuckets domain='primary' -json