Skip to main content
PATCH
/
fastedge
/
v1
/
secrets
/
{secret_id}
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
)
secret = client.fastedge.secrets.update(
    secret_id=0,
)
print(secret.app_count)
{
  "name": "<string>",
  "comment": "<string>",
  "app_count": 123,
  "secret_slots": [
    {
      "slot": 1704067200,
      "checksum": "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8"
    }
  ]
}

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

Path Parameters

secret_id
integer<int64>
required

Unique identifier of the secret to update

Body

application/json

Secret details

name
string

The unique name of the secret.

Required string length: 1 - 128
Pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]*[a-zA-Z0-9]$
comment
string

A description or comment about the secret.

Maximum string length: 1024
secret_slots
object[]

A list of secret slots associated with this secret.

Response

Secret updated successfully, returns updated configuration

name
string

The unique name of the secret.

Required string length: 1 - 128
Pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]*[a-zA-Z0-9]$
comment
string

A description or comment about the secret.

Maximum string length: 1024
app_count
integer<int>

The number of applications that use this secret.

secret_slots
object[]

A list of secret slots associated with this secret.