Skip to content
Luna
Esc
↑↓navigate↵open⌘Jpreview

List secrets

Returns the names of a tenant’s secrets. A secret’s value is never read back.

GET/_luna/secrets/{tenant}
Authorization
AuthorizationBearer token · headerrequired

An account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.

Scopes:secrets:read
Path parameters
tenantstringrequired

The tenant, by its full name.

Responses
200

The names.

namesstring[]required

The names of the tenant's secrets.

default

The request failed. The status says how and error.message says why.

errorErrorDetailrequired
Show properties
codestring | null

A code for programs to branch on, when the error has one.

messagestringrequired

What went wrong, in a sentence a person can read.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://luna.example.com/_luna/secrets/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "names": [
    "string"
  ]
}

Was this page helpful?