跳转到主要内容
POST
POST /admin/api/credentials/{id}/status

授权

gproxy_session
string
cookie
必填

请求头

x-gproxy-admin-scope
string

Administrative scope selected by the caller.

路径参数

id
string
必填

请求体

application/json
status
必填

Whether the credential can still be used at all. Selection only needs this bit; the reason is a separate column for people.

可用选项:
active
reason
string | null

响应

Success

A credential without its secret. Only presence and expiry timestamps are exposed; reading the material itself requires Credentials::reveal_secret.

authKind
string
必填
connectionProfileId
string | null
必填
enabled
boolean
必填
expiresAtMs
integer<int64> | null
必填
hasSecret
boolean
必填
id
string
必填
label
string | null
必填
metadata
any
必填
organizationId
string | null
必填

Opaque to this crate: the application layer decides what owns what.

providerId
string
必填
proxy
any
必填
refreshExpiresAtMs
integer<int64> | null
必填

Read-only refresh-token expiry, projected from the sealed secret on management reads. None means no expiry was reported or the secret could not be read.

status
string
必填

active or dead.

statusReason
string | null
必填
teamId
string | null
必填
userId
string | null
必填
version
integer<int64>
必填

Bumped by every secret or lifecycle write; peers reload on a change.