create-user-access-key

subtitle

Creates a new access key for a user.

version

0.9.66

Description

Creates a new access key for a user.

Synopsis

  create-user-access-key
[--user <value>]
[--type <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton]

Options

--user (string)

The ID or CRN of the user to whom this access key will be associated. If it is not included, it defaults to the user making the request.

--type (string)

The version of an access key to create. Default is V2. Use V1 for compatibility with old CLI (<1.6) and SDK (<1.3) releases.

Possible values:

  • V1

  • V2

--cli-input-json (string)

Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values.

--generate-cli-skeleton (boolean)

Prints a sample input JSON to standard output. Note the specified operation is not run if this argument is specified. The sample input can be used as an argument for --cli-input-json.

Output

accessKey -> (object)

Information about a Cloudera CDP access key.

accessKeyId -> (string)

The ID of the access key.

crn -> (string)

The CRN of the access key.

actorCrn -> (string)

The CRN of the actor with which this access key is associated.

creationDate -> (datetime)

The date when the access key was created.

status -> (string)

The status of an access key.

type -> (string)

The type of an access key.

lastUsage -> (object)

Information on the last time an access key was used.

lastUsageDate -> (datetime)

The date when the access key was last used.

serviceName -> (string)

The name of the service with which this access key was most recently used.

privateKey -> (string)

The private key associated with this access key. This string is the contents of a PEM file containing a PKCS#8 private key.

Form Factors

public, private