secrets

The cfy secrets command is used to manage Cloudify secrets (key-value pairs).

Optional flags

These will work on each command:

Commands

create

Usage

cfy secrets create [OPTIONS] KEY

Create a new secret (key-value pair)

KEY is the new secret’s key

Required flags

One of these flags:

Optional flags:

 

Example

$ cfy secrets create test -s test_value
...

Secret `test` created

...

delete

Usage

cfy secrets delete [OPTIONS] KEY

Delete a secret.

KEY is the secret’s key.

 

Example

$ cfy secr del test
...

Deleting secret `test`...
Secret removed

...

get

Usage

cfy secrets get [OPTIONS] KEY

Get details for a single secret.

KEY is the secret’s key

 

Example

$ cfy secrets get test
...

Getting info for secret `test`...
Requested secret info:
created_by:     admin
key:            test
visibility:     tenant
tenant_name:    default_tenant
created_at:     2017-04-04 08:36:06.746 
updated_at:     2017-04-04 08:39:49.926 
value:          test_value2

...

list

Usage

cfy secrets list [OPTIONS]

List all secrets.

Optional flags

 

Example

$ cfy secrets list
...

Listing all secrets...

Secrets:
+------+--------------------------+--------------------------+------------+----------------+------------+
| key  |        created_at        |        updated_at        | visibility |  tenant_name   | created_by |
+------+--------------------------+--------------------------+------------+----------------+------------+
| test | 2017-04-04 08:36:06.746  | 2017-04-04 08:36:06.746  |   tenant   | default_tenant |   admin    |
+------+--------------------------+--------------------------+------------+----------------+------------+

...

update

Usage

cfy secrets update [OPTIONS] KEY

Update an existing secret.

KEY is the secret’s key.

Required flags

One of these flags:

 

Example

$ cfy secrets update test -s test_value2
...

Secret `test` updated

...

set-visibility

Usage

cfy secrets set-visibility [OPTIONS] KEY

Set the secret’s visibility

KEY - The secret’s key.

Mandatory flags

 

Example

$ cfy secrets set-visibility test -l global
...

Secret `test` was set to global

...