download-diagnostic-bundle

subtitle

Download diagnostic bundle for a policy.

version

0.9.112

Description

Downloads the previously collected diagnostic bundle if available. Before calling, the get-command-status command shall be polled until the command’s status shows ‘DOWNLOADABLE_WITH_CLI’. If the status is ‘DOWNLOADABLE_WITH_URL’, the result can be downloaded with the given result data URL only.

Synopsis

  download-diagnostic-bundle
--cluster-crn <value>
--command-id <value>
[--cli-input-json <value>]
[--generate-cli-skeleton]

Options

--cluster-crn (string)

The CRN of the target cluster.

--command-id (string)

The command ID from the response of collect-diagnostic-bundle command.

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

bundleFile -> (blob)

Base64 encoded content of the diagnostic bundle zip file. A script like this can be used to save the response as file ‘cat response.json | jq -r ‘.bundleFile’ | base64 -D > bundle.zip’

Form Factors

public