Secrets

Retrieve the secret at the specified location.

get
Path parameters
pathstringRequired

Specifies the path of the secret.

Query parameters
liststringOptional

Return a list if true.

Responses
200
Secret retrieved successfully.
application/json
get
GET /v1/cubbyhole/{path} HTTP/1.1
Host: localhost:8200
Accept: */*
{
  "request_id": "abcd-1234",
  "lease_id": "",
  "renewable": false,
  "lease_duration": 0,
  "data": {
    "foo": "bar"
  },
  "wrap_info": null,
  "warnings": null,
  "auth": null
}

Store a secret at the specified location.

post
Path parameters
pathstringRequired

Specifies the path of the secret.

Body
anyOptional
Responses
200
Secret written successfully.
application/json
post
POST /v1/cubbyhole/{path} HTTP/1.1
Host: localhost:8200
Content-Type: application/json
Accept: */*
Content-Length: 13

{
  "foo": "bar"
}
{
  "request_id": "abcd-5678",
  "lease_id": "",
  "renewable": false,
  "lease_duration": 0,
  "data": null,
  "wrap_info": null,
  "warnings": null,
  "auth": null
}

Deletes the secret at the specified location.

delete
Path parameters
pathstringRequired

Specifies the path of the secret.

Responses
204
Secret deleted successfully. No content is returned.
delete
DELETE /v1/cubbyhole/{path} HTTP/1.1
Host: localhost:8200
Accept: */*

No content

Was this helpful?