List secrets
curl --request GET \
--url https://api.compute.anonalabs.com/v1/vault/secrets \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/v1/vault/secrets"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.compute.anonalabs.com/v1/vault/secrets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"secrets": [
{
"name": "<string>",
"version": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"bindings": [
{
"id": "<string>",
"secret": "<string>",
"scope": "tenant_default",
"scopeID": "<string>",
"host": "<string>",
"header": "<string>",
"format": "Bearer ${SECRET}",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
],
"enabled": true
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}Credential vault
List secrets
Names, versions and bindings of the organization’s secrets. Values are never returned.
GET
/
v1
/
vault
/
secrets
List secrets
curl --request GET \
--url https://api.compute.anonalabs.com/v1/vault/secrets \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/v1/vault/secrets"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.compute.anonalabs.com/v1/vault/secrets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"secrets": [
{
"name": "<string>",
"version": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"bindings": [
{
"id": "<string>",
"secret": "<string>",
"scope": "tenant_default",
"scopeID": "<string>",
"host": "<string>",
"header": "<string>",
"format": "Bearer ${SECRET}",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
],
"enabled": true
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}