mc admin creds add-access-key

Creates the access key for a user.

The Object Store administrator runs this command to create the access key for a user. Every user can have a maximum of two keys at any time.

Syntax

CLI
mc admin creds add-access-key - add a new access key for user

USAGE:
  mc admin creds add-access-key TARGET user=<user_name> [ account=<account_name> ] [ domain=<domain_name> ]

user:
  User whose access key needs to be added

account:
  The account to which the user belongs.

FLAGS:
  --config-dir value, -C value  path to configuration folder (default: "/root/.mc")
  --quiet, -q                   disable progress bar display
  --no-color                    disable color theme
  --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 on which the command creates the access key. This parameter is mandatory.
user The user name for which the access key needs to be created. This parameter is mandatory.
account The name of the account to which the user belongs. The account is assumed to be the default account, if you do not specify this parameter.
domain The name of the domain under which the account exists.
config-dir Path to the configuration directory (/root/.mc by default)
quiet Disables progress bar display
no-color Disables color in the output
json Enables JSON formatted output
debug Enables output for debugging
insecure Disables SSL verification
help Shows this help

Examples

  1. Create the access key for user joe from the default account in the Object Store deployment with alias salesobject.
    CLI
    /opt/mapr/bin/mc admin creds add-access-key salesobject joe -json
  2. Create the access key for user joe from the northamerica account in the Object Store deployment with alias salesobject.
    CLI
    /opt/mapr/bin/mc admin creds add-access-key salesobject joe account='northamerica' -json