It is assumed the Enigma backend is mounted at the enigma
path in Vault. If you mount the secret backends at any other location, update your API calls accordingly.
This endpoint lists the preconfigured Enigma models.
Method | Path | Produces |
---|---|---|
LIST |
/enigma/models |
200 application/json |
curl \
--header "X-Vault-Token: $(vault print token)" \
--request LIST \
$VAULT_ADDR/v1/enigma/models
vault list enigma/models
[
"I", "M3", "M4", "IXE013"
]
This API allows to create a custom Enigma model. Nothing much you can do with it in the current version, but stay tuned!
Method | Path | Produces |
---|---|---|
POST |
/enigma/models |
204 (empty body) |
name
(string: <required>)
– Specifies the name of the model to create.
{
"name": "my-model"
}
curl \
--header "X-Vault-Token: $(vault print token)" \
--request POST \
--data @payload.json \
$VAULT_ADDR/v1/enigma/models
vault write enigma/models name=my-model
This endpoint returns information about a named GPG key.
Method | Path | Produces |
---|---|---|
DELETE |
/enigma/models/:name |
204 (empty body) |
name
(string: <required>)
– Specifies the name of the custom model to delete. This is specified as part of the URL.
$ curl \
--header "X-Vault-Token: $(vault print token)" \
--request DELETE
$VAULT_ADDR/v1/enigma/models/my-model
vault delete enigma/models/my-model