This command generates an S3 access key pair for a user. The access key pair comprises an access key and a secret key. The access key and secret key are displayed in the command output. The secret key cannot be displayed again. Copy the secret key and keep it safe for usage.
When enabling, disabling or removing an access key pair, you specify only the access key.
When generating the keys for a local provider user, you can specify the user's ID or another attribute. When generating the keys for an external provider user, specify a UID or SID.
Usage
user generate-key {--id ID | --uid UID | --sid SID} [--tenant-id ID]
Required Parameters
|
Identifies a local provider user by VAST ID. |
|
Identifies a user by POSIX (NFS) UID number. |
|
Identifies a user by Security Identifier (SID). |
Options
|
Specify the ID of the tenant with which the user is associated. The tenant ID is used only to look up the user. The generated key pair enables access to the default tenant only. |
Example
This example shows generating an access key pair for the local provider user with VAST ID 200.
vcli: admin> user generate-key --id 200 {'access_key': '2h/MzqtiTQSVl8J/4wsDbg==', 'secret_key': 'dzd0eX/+d+IqGRHy5EJgoVde656+A1NpHGHHHcL+5mE='}
Comments
0 comments
Article is closed for comments.