Skip to main content
GET
/
fastedge
/
v1
/
secrets
Python
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
secrets = client.fastedge.secrets.list()
print(secrets.count)
{
  "count": 123,
  "secrets": [
    {
      "name": "<string>",
      "id": 123,
      "comment": "<string>",
      "app_count": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Query Parameters

app_id
integer<int64>

App ID

Required range: x >= 1
secret_name
string

Secret name

Required string length: 1 - 255

Response

Returns list of available secrets, optionally filtered by application or name

count
integer
required

Total number of secrets matching the filters

secrets
object[]
required