Generate a secret
Stores a new revision with a random value that satisfies the password policy (crypto/rand); the value is not returned. Needs `landscape.manage` on the workspace that uses the vault.
openapi/harthelm.yaml at v1.5.0__Host-harthelm_session<token>Browser session of the UI (12 h idle, 7 days absolute). State-changing requests also need the header
Harthelm-CSRF: 1 and a matching Origin.
vault*integerA vault id, e.g. Workspace.vault_id.
int641 <= valuekey*string^[A-Za-z_][A-Za-z0-9_]{0,127}$application/json- body
Default 32 characters from lower, upper and digits, at least one of each.
length?integer8 <= value <= 25632rules?array<>items <= 4The key's new revision (without the value).
application/json- response
key*SecretKeyValue^[A-Za-z_][A-Za-z0-9_]{0,127}$revision*integer1 <= valuegenerated*booleanThe value came from generate.
created_at*stringdate-timecreated_by?IDNumeric resource id.
int641 <= valuecurl -X POST 'https://console.example.com/api/v1/vaults/1/secrets/string/generate' \ -H 'Content-Type: application/json' \ -d '{}'{ "key": "string", "revision": 1, "generated": true, "created_at": "2019-08-24T14:15:22Z", "created_by": 1}Delete a secret
Removes every revision of the key. Needs `landscape.manage` on the workspace that uses the vault.
List the keys of a vault
Keys and their current revision; values are never returned. A workspace's vault id is `Workspace.vault_id`. Needs `workspace.view` on the workspace that uses the vault.