List environment variable names
list_secrets
Lists the environment variables configured for a site, the same set the Secrets tab shows.
Scopeconfig:readRead only
Only the names and flags come back, never the values. Each variable comes with its _id and Key, the IsSecret flag for a value stored encrypted, the IsLocked flag for a platform-managed variable, and when it was created and last updated. Reading a value back needs get_secret or get_all_secrets and the separate credentials:reveal scope.
It is how a client checks whether a site already has a key such as STRIPE_SECRET_KEY before asking you for one. The _id is the secretId that get_secret, delete_secret and rename_secret take. See Secrets.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The site id. |