The barbican client is the command-line interface (CLI) for the Key Manager service (barbican) API and its extensions.
This chapter documents barbican version 4.2.0
.
For help on a specific barbican command, enter:
$ barbican help COMMAND
usage: barbican [--version] [-v | -q] [--log-file LOG_FILE] [-h] [--debug]
[--no-auth] [--os-identity-api-version <identity-api-version>]
[--os-auth-url <auth-url>] [--os-username <auth-user-name>]
[--os-user-id <auth-user-id>] [--os-password <auth-password>]
[--os-user-domain-id <auth-user-domain-id>]
[--os-user-domain-name <auth-user-domain-name>]
[--os-tenant-name <auth-tenant-name>]
[--os-tenant-id <tenant-id>]
[--os-project-id <auth-project-id>]
[--os-project-name <auth-project-name>]
[--os-project-domain-id <auth-project-domain-id>]
[--os-project-domain-name <auth-project-domain-name>]
[--os-auth-token <auth-token>] [--endpoint <barbican-url>]
[--interface <barbican-interface>]
[--service-type <barbican-service-type>]
[--service-name <barbican-service-name>]
[--region-name <barbican-region-name>]
[--barbican-api-version <barbican-api-version>] [--insecure]
[--os-cacert <ca-certificate>] [--os-cert <certificate>]
[--os-key <key>] [--timeout <seconds>]
--version
-v, --verbose
-q, --quiet
--log-file LOG_FILE
-h, --help
--debug
--no-auth, -N
--os-identity-api-version <identity-api-version>
env[OS_IDENTITY_API_VERSION]
or 3.--os-auth-url <auth-url>, -A <auth-url>
env[OS_AUTH_URL]
.--os-username <auth-user-name>, -U <auth-user-name>
env[OS_USERNAME]
.--os-user-id <auth-user-id>
env[OS_USER_ID]
.--os-password <auth-password>, -P <auth-password>
env[OS_PASSWORD]
.--os-user-domain-id <auth-user-domain-id>
env[OS_USER_DOMAIN_ID]
.--os-user-domain-name <auth-user-domain-name>
env[OS_USER_DOMAIN_NAME]
.--os-tenant-name <auth-tenant-name>, -T <auth-tenant-name>
env[OS_TENANT_NAME]
.--os-tenant-id <tenant-id>, -I <tenant-id>
env[OS_TENANT_ID]
.--os-project-id <auth-project-id>
env[OS_PROJECT_ID]
.--os-project-name <auth-project-name>
env[OS_PROJECT_NAME]
.--os-project-domain-id <auth-project-domain-id>
env[OS_PROJECT_DOMAIN_ID]
.--os-project-domain-name <auth-project-domain-name>
env[OS_PROJECT_DOMAIN_NAME]
.--os-auth-token <auth-token>
env[OS_AUTH_TOKEN]
.--endpoint <barbican-url>, -E <barbican-url>
env[BARBICAN_ENDPOINT]
.--interface <barbican-interface>
env[BARBICAN_INTERFACE]
.--service-type <barbican-service-type>
env[BARBICAN_SERVICE_TYPE]
.--service-name <barbican-service-name>
env[BARBICAN_SERVICE_NAME]
.--region-name <barbican-region-name>
env[BARBICAN_REGION_NAME]
.--barbican-api-version <barbican-api-version>
env[BARBICAN_API_VERSION]
.usage: barbican acl delete [-h] URI
Delete ACLs for a secret or container as identified by its href.
Positional arguments:
URI
Optional arguments:
-h, --help
usage: barbican acl get [-h] [-f {csv,html,json,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
URI
Retrieve ACLs for a secret or container by providing its href.
Positional arguments:
URI
Optional arguments:
-h, --help
usage: barbican acl submit [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--print-empty]
[--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--user [USERS]]
[--project-access | --no-project-access]
[--operation-type {read}]
URI
Submit ACL on a secret or container as identified by its href.
Positional arguments:
URI
Optional arguments:
-h, --help
--user [USERS], -u [USERS]
--project-access
--no-project-access
--operation-type {read}, -o {read}
usage: barbican acl user add [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--user [USERS]]
[--project-access | --no-project-access]
[--operation-type {read}]
URI
Add ACL users to a secret or container as identified by its href.
Positional arguments:
URI
Optional arguments:
-h, --help
--user [USERS], -u [USERS]
--project-access
--no-project-access
--operation-type {read}, -o {read}
usage: barbican acl user remove [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--user [USERS]]
[--project-access | --no-project-access]
[--operation-type {read}]
URI
Remove ACL users from a secret or container as identified by its href.
Positional arguments:
URI
Optional arguments:
-h, --help
--user [USERS], -u [USERS]
--project-access
--no-project-access
--operation-type {read}, -o {read}
usage: barbican ca get [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--print-empty]
[--noindent] [--prefix PREFIX]
URI
Retrieve a CA by providing its URI.
Positional arguments:
URI
Optional arguments:
-h, --help
usage: barbican ca list [-h] [-f {csv,html,json,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--limit LIMIT] [--offset OFFSET] [--name NAME]
List cas.
Optional arguments:
-h, --help
--limit LIMIT, -l LIMIT
--offset OFFSET, -o OFFSET
--name NAME, -n NAME
usage: barbican secret container create [-h]
[-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX] [--name NAME]
[--type TYPE] [--secret SECRET]
Store a container in Barbican.
Optional arguments:
-h, --help
--name NAME, -n NAME
--type TYPE
--secret SECRET, -s SECRET
usage: barbican secret container delete [-h] URI
Delete a container by providing its href.
Positional arguments:
URI
Optional arguments:
-h, --help
usage: barbican secret container get [-h]
[-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX]
URI
Retrieve a container by providing its URI.
Positional arguments:
URI
Optional arguments:
-h, --help
usage: barbican secret container list [-h]
[-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--limit LIMIT] [--offset OFFSET]
[--name NAME] [--type TYPE]
List containers.
Optional arguments:
-h, --help
--limit LIMIT, -l LIMIT
--offset OFFSET, -o OFFSET
--name NAME, -n NAME
--type TYPE, -t TYPE
usage: barbican secret delete [-h] URI
Delete a secret by providing its URI.
Positional arguments:
URI
Optional arguments:
-h, --help
usage: barbican secret get [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--print-empty]
[--noindent] [--prefix PREFIX] [--decrypt]
[--payload]
[--payload_content_type PAYLOAD_CONTENT_TYPE]
URI
Retrieve a secret by providing its URI.
Positional arguments:
URI
Optional arguments:
-h, --help
--decrypt, -d
--payload, -p
--payload_content_type PAYLOAD_CONTENT_TYPE, -t PAYLOAD_CONTENT_TYPE
usage: barbican secret list [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--limit LIMIT] [--offset OFFSET] [--name NAME]
[--algorithm ALGORITHM] [--bit-length BIT_LENGTH]
[--mode MODE]
List secrets.
Optional arguments:
-h, --help
--limit LIMIT, -l LIMIT
--offset OFFSET, -o OFFSET
--name NAME, -n NAME
--algorithm ALGORITHM, -a ALGORITHM
--bit-length BIT_LENGTH, -b BIT_LENGTH
--mode MODE, -m MODE
usage: barbican secret order create [-h]
[-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX] [--name NAME]
[--algorithm ALGORITHM]
[--bit-length BIT_LENGTH] [--mode MODE]
[--payload-content-type PAYLOAD_CONTENT_TYPE]
[--expiration EXPIRATION]
[--request-type REQUEST_TYPE]
[--subject-dn SUBJECT_DN]
[--source-container-ref SOURCE_CONTAINER_REF]
[--ca-id CA_ID] [--profile PROFILE]
[--request-file REQUEST_FILE]
type
Create a new order.
Positional arguments:
type
Optional arguments:
-h, --help
--name NAME, -n NAME
--algorithm ALGORITHM, -a ALGORITHM
--bit-length BIT_LENGTH, -b BIT_LENGTH
--mode MODE, -m MODE
--payload-content-type PAYLOAD_CONTENT_TYPE, -t PAYLOAD_CONTENT_TYPE
--expiration EXPIRATION, -x EXPIRATION
--request-type REQUEST_TYPE
--subject-dn SUBJECT_DN
--source-container-ref SOURCE_CONTAINER_REF
--ca-id CA_ID
--profile PROFILE
--request-file REQUEST_FILE
usage: barbican secret order delete [-h] URI
Delete an order by providing its href.
Positional arguments:
URI
Optional arguments:
-h, --help
usage: barbican secret order get [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX]
URI
Retrieve an order by providing its URI.
Positional arguments:
URI
Optional arguments:
-h, --help
usage: barbican secret order list [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--limit LIMIT] [--offset OFFSET]
List orders.
Optional arguments:
-h, --help
--limit LIMIT, -l LIMIT
--offset OFFSET, -o OFFSET
usage: barbican secret store [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent] [--prefix PREFIX]
[--name NAME] [--payload PAYLOAD]
[--secret-type SECRET_TYPE]
[--payload-content-type PAYLOAD_CONTENT_TYPE]
[--payload-content-encoding PAYLOAD_CONTENT_ENCODING]
[--algorithm ALGORITHM] [--bit-length BIT_LENGTH]
[--mode MODE] [--expiration EXPIRATION]
Store a secret in Barbican.
Optional arguments:
-h, --help
--name NAME, -n NAME
--payload PAYLOAD, -p PAYLOAD
--secret-type SECRET_TYPE, -s SECRET_TYPE
--payload-content-type PAYLOAD_CONTENT_TYPE, -t PAYLOAD_CONTENT_TYPE
--payload-content-encoding PAYLOAD_CONTENT_ENCODING, -e PAYLOAD_CONTENT_ENCODING
--algorithm ALGORITHM, -a ALGORITHM
--bit-length BIT_LENGTH, -b BIT_LENGTH
--mode MODE, -m MODE
--expiration EXPIRATION, -x EXPIRATION
usage: barbican secret update [-h] URI payload
Update a secret with no payload in Barbican.
Positional arguments:
URI
payload
Optional arguments:
-h, --help
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.