Skip to main content
Vaults

Vault 数据结构

Forward Vault API 复用的响应结构。

Vault 对象

创建、查询、列表、归档接口都会返回该结构。
字段类型说明
idstringVault ID,前缀为 vault_
typestring固定值 "vault"
display_namestringVault 展示名称,最长 255 字符
metadataobject与 Vault 一起存储的自定义元数据对象;省略时为 {}created_by 为 Forward 保留字段,调用方不可传入
archived_atstring | null归档时间,RFC 3339 格式;active 时为 null
created_atstring创建时间,RFC 3339 格式
updated_atstring最后更新时间,RFC 3339 格式
identity_idstring | nullForward 归属身份;PAT 创建时通常为 null
icon_urlstring | nullForward 关联的 icon URL
binding_infoBinding info绑定信息(Template 引用计数等)
Vault 下的凭证通过独立的 Forward Credential API 管理,不在 Vault 响应中内联返回。

Binding info

Forward 在 Vault 响应中携带的引用聚合。
字段类型说明
agent_template_countinteger当前绑定该 Vault 的 Template 数量

列表分页字段

字段类型说明
dataVault 对象 数组当前页记录
has_moreboolean是否还有下一页
next_pagestring | null下一页向后游标(推荐使用);has_more=true 时等于当前页 last_id,否则为 null
first_idstring | null当前页第一条记录 ID
last_idstring | null当前页最后一条记录 ID
请求侧的三种游标参数 page / after_id / before_id 互斥,同时提供多个返回 400;推荐使用 page,语义等价于 after_id
Vault 数据结构 - Qoder