跳转到主要内容
DELETE /api/v1/cloud/vaults/{vault_id}/credentials/{credential_id} 删除 Vault credential 并返回删除确认。

路径参数

参数类型说明
vault_idstringvault_ 为前缀的 Vault ID
credential_idstringvcred_ 为前缀的 Credential ID

请求头

头部必选说明
AuthorizationBearer <PAT>

示例请求

curl -X DELETE "https://api.qoder.com/api/v1/cloud/vaults/vault_019e3bb940277f0db05ab74291acf6ef/credentials/vcred_019e3bb98877759e862750b495c1fce8" \
  -H "Authorization: Bearer $QODER_PAT"

示例响应

HTTP 200 OK
{
  "id": "vcred_019e3bb98877759e862750b495c1fce8",
  "type": "vault_credential_deleted"
}
删除成功通过响应体中的 "type": "vault_credential_deleted" 标识。

错误码

HTTPtype触发条件
401authentication_error缺少或无效的认证令牌
404not_found_errorVault 或 credential 不存在
完整错误信封说明详见 错误参考

相关

Vaults

安全地存储凭据并注入到 Agent Session。