Secrets
Path parameters
pathstringRequired
Specifies the path of the secret.
Query parameters
liststringOptional
Return a list if true
.
Responses
200
Secret retrieved successfully.
application/json
403
Permission denied.
application/json
404
Secret not found.
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
}
Path parameters
pathstringRequired
Specifies the path of the secret.
Body
anyOptional
Responses
200
Secret written successfully.
application/json
400
Bad request.
application/json
403
Permission denied.
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
}
Path parameters
pathstringRequired
Specifies the path of the secret.
Responses
204
Secret deleted successfully. No content is returned.
403
Permission denied.
application/json
404
Secret not found.
application/json
delete
DELETE /v1/cubbyhole/{path} HTTP/1.1
Host: localhost:8200
Accept: */*
No content
Was this helpful?