Skip to content

Secrets

Create Secret
Deprecated
client.Secrets.New(ctx, body) (*CloudSecret, error)
POST/v5/sgp/secrets
List Secrets
Deprecated
client.Secrets.List(ctx, query) (*CursorPage[CloudSecret], error)
GET/v5/sgp/secrets
Get Secret
Deprecated
client.Secrets.Get(ctx, secretID) (*CloudSecret, error)
GET/v5/sgp/secrets/{secret_id}
Update Secret
Deprecated
client.Secrets.Update(ctx, secretID, body) (*CloudSecret, error)
PATCH/v5/sgp/secrets/{secret_id}
Delete Secret
Deprecated
client.Secrets.Delete(ctx, secretID) error
DELETE/v5/sgp/secrets/{secret_id}
ModelsExpand Collapse
type CloudSecret struct{…}

API response model for a secret. Never includes the secret value.

ID string

The unique identifier of the entity.

AccountID string

The ID of the account that owns the given entity.

CloudSecretPath string

Full path in the cloud secret store.

CreatedAt Time

The date and time when the entity was created in ISO format.

formatdate-time
CreatedBy Identity

The identity that created the entity.

ID string
Type IdentityType
One of the following:
const IdentityTypeUser IdentityType = "user"
const IdentityTypeServiceAccount IdentityType = "service_account"
Object IdentityObjectOptional
Key string

Secret name, e.g. OPENAI_API_KEY.

Description stringOptional

Optional human-readable description of the secret.

Object CloudSecretObjectOptional
UpdatedAt TimeOptional

Timestamp of last update.

formatdate-time
UpdatedBy stringOptional

User who last updated the secret.