Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

16.15. barbican secret get

usage: barbican secret get [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
                           [--max-width <integer>] [--noindent]
                           [--prefix PREFIX] [--decrypt] [--payload]
                           [--payload_content_type PAYLOAD_CONTENT_TYPE]
                           URI
Retrieve a secret by providing its URI.

Positional arguments

URI


        The URI reference for the secret.

Optional arguments

-h, --help


        show this help message and exit

--decrypt, -d


        if specified, retrieve the unencrypted secret data;
      the data type can be specified with --payload-content-
      type.

--payload, -p


        if specified, retrieve the unencrypted secret data;
      the data type can be specified with --payload-content-
      type. If the user wishes to only retrieve the value of
      the payload they must add "-f value" to format
      returning only the value of the payload

--payload_content_type PAYLOAD_CONTENT_TYPE, -t PAYLOAD_CONTENT_TYPE


      the content type of the decrypted secret (default:
      text/plain.