身份与访问控制相关接口/凭证
PUTCredential起始版本 1.0同步需要认证
更新凭证
更新已存在凭证S元数据轮换已存储。
调试可用性
在线调试
使用当前认证信息和示例参数提交 Mock 请求。
路径参数
请求参数
路径参数
uuidString必填资源的UUID,唯一标识该资源。
请求体字段
nameString必填资源名称。
示例: my-resource
descriptionString必填资源的详细描述。
示例: A brief description
valueString必填字段值。
示例: new-s3cr3t-v@lue
expiresAtString必填过期时间。
示例: 2026-01-15T08:00:00Z
operatorString必填比较运算符。
示例: ops@example.com
响应状态
请求地址
PUT/api/v1/credentials/{uuid}
/api/v1/credentials/{uuid}
请求示例
curl -X PUT '{host}/api/v1/credentials/{uuid}' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"key": "value"}'
响应示例
200{
"uuid": "cred-a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "prod-db-password",
"description": "Primary database password for production environment",
"type": {},
"healthStatus": {},
"expiresAt": "example",
"createdBy": "admin@example.com",
"createDate": "example"
}变更历史
此 API 暂无变更历史记录。
