CLI Reference - Dynamic Secrets

📘

NOTE

Looking for a specific command? Use the Table of Contents on the right. ===>

Dynamic Secrets

create-dynamic-secret

Creates a new dynamic secret item.

Usage
akeyless create-dynamic-secret -n <Dynamic Secret Name>
Parameters

Parameter

Description

-n, --name

Dynamic secret name.

-m, --metadata[=None]

Metadata about the dynamic secret.

-t, --tag

List of the tags attached to this secret. To specify multiple tags use the argument multiple times: -t Tag1 -t Tag2.

-k, --key

The name of a key that is used to encrypt the dynamic secret values (if empty, the account default protection Key will be used).

get-dynamic-secret-value

Gets dynamic secret value.

Usage
akeyless get-dynamic-secret-value -n <Dynamic Secret Name>
Parameters

Parameter

Description

-n, --name

Dynamic secret name

delete-item

Deletes any secret, key, certificate or role. See Commands for all items and objects for details.

Usage
akeyless delete-item -n <path/to/item>
Mandatory Parameters

Parameter

Description

-n, --name

Path to the item to be deleted

Optional Parameters

Parameter

Description

--version

The specific version you want to delete - 0=last version, -1=entire item with all versions (default).

--delete-in-days

The number of days to wait before deleting the item (relevant for keys only). By default 7 days.

--delete-immediately

When delete-in-days=-1, must be set, by default set to false.


Did this page help you?