generate-workload-auth-token

subtitle

Generates an authentication token for workload APIs.

version

0.9.66

Description

Generates an authentication token which is required for sending requests to workload APIs.

Synopsis

  generate-workload-auth-token
--workload-name <value>
[--environment-crn <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton]

Options

--workload-name (string)

The workload name.

Possible values:

  • DE

  • DF

--environment-crn (string)

The environment CRN, required by DF.

--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

endpointUrl -> (string)

The workload endpoint URL

token -> (string)

The authentication token

expireAt -> (datetime)

When the information should expire

Form Factors

public, private