REST APIVault
Delete a secret
Removes every revision of the key. Needs `landscape.manage` on the workspace that uses the vault.
Generated from
openapi/harthelm.yaml at v1.5.0DELETE
cookie
__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.
Format
int64Range
1 <= valuekey*stringMatch
^[A-Za-z_][A-Za-z0-9_]{0,127}$Deleted.
curl -X DELETE 'https://console.example.com/api/v1/vaults/1/secrets/string'Empty
The server's version
Works without credentials. `hart` compares `api_version` with the version it was generated from and warns about a skew; every API response also carries the header `Harthelm-Version: <version>`.
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.