Skip to main content

Vault | Python SDK | Folders Endpoints

Folders Endpoints

Create

Vault.folder_create(name, folder, metadata, tags, rotation_frequency, rotation_state, rotation_grace_period, disabled_at)

Creates a folder.

required parameters

str

The name of this folder.

str

The parent folder where this folder is stored.

optional parameters

Metadata | None

User-provided metadata.

Tags | None

A list of user-defined tags.

str | None

Period of time between item rotations.

RequestRotationState

State to which the previous version should transition upon rotation.

str | None

Grace period for the previous version.

datetime.datetime | None

Timestamp indicating when the item will be disabled.

response = vault.folder_create(
    name="folder_name",
    folder="parent/folder/name",
)