list_named_credentials

Lists the named credentials. You can list the credentials you own or have explicit access to.

Format

emcli list_named_credentials
      [-cred_name="cred_name"] 
      [-cred_owner="cred_owner"] 
      [-script | -format=[name:<pretty|script|csv>]; 
                         [column_separator:column_sep_string]; 
                         [row_separator:row_sep_string];
      [-separator="separator:attname:charseq"] 
      [-noheader] 

[ ]  indicates that the parameter is optional

Options

  • cred_name

    Credential name to filter the list of credentials displayed.

  • cred_owner

    Credential owner to filter the list of credentials displayed.

  • script

    This is equivalent to -format='name: script'.

  • format

    Format specification (default is -format="name:pretty").

    • format="name:pretty" prints the output table in a readable format not intended to be parsed by scripts.

    • format="name:script" sets the default column separator to a tab and the default row separator to a newline. The column and row separator strings can be specified to change these defaults.

    • format="name:csv" sets the column separator to a comma and the row separator to a newline.

    • format="name:script;column_separator:<column_sep_string>" column-separates the verb output by <column_sep_string>. Rows are separated by the newline character.

    • format="name:script;row_separator:<row_sep_string>" row-separates the verb output by <row_sep_string>. Columns are separated by the tab character.

  • separator

    Multi-value attributes use the semi-colon character as the separator. When data contains this character, you can override its value. For example:

    separator="<attributename=sep_char"
    

    ... where 'attributename' is the name of the attribute for which you want to override the separator character, and 'sepchar' is the new separator character. For example:

    separator="att=#"
    
  • noheader

    Suppresses printing of column headers in tabular output.

Exit Codes

0 if successful. A non-zero value means that verb processing was unsuccessful.

Examples

This example lists credentials matching credential names containing 'NC'.

emcli list_named_credentials -cred_name="NC"