列出指定 Identity 和 Template 上的 Memory Store 挂载。
列出指定
Identity 级 Service Account Token 只能查询自己所属的 identity,查询其他 identity 返回
HTTP 200 OK
尚未创建过 Session 且没有任何显式挂载时返回空列表 —— 系统默认库是在首次创建 Session 时自动配的。
(identity, template) 上所有活跃的 Memory Store 挂载,包含系统在 Session 创建时自动配的默认库。
系统默认库始终排第一,是唯一 access=read_write 的挂载;其余显式挂载按挂载时间升序排列,全部为 read_only。
挂载数量受上限约束(10 + 默认槽位),因此本接口不接受分页参数,has_more 恒为 false。
路径
GET /api/v1/forward/identities/{identity_id}/templates/{template_id}/memory_stores
请求头
| 头部 | 必选 | 说明 |
|---|---|---|
Authorization | 是 | Bearer <PAT、admin SAT 或该 identity 的 SAT> |
403。
路径参数
| 参数 | 类型 | 必选 | 说明 |
|---|---|---|---|
identity_id | string | 是 | Identity ID(idn_...)。 |
template_id | string | 是 | Template ID(tmpl_...)。 |
示例请求
示例响应
HTTP 200 OK
空列表响应
尚未创建过 Session 且没有任何显式挂载时返回空列表 —— 系统默认库是在首次创建 Session 时自动配的。
响应字段解释
| 字段 | 类型 | 说明 |
|---|---|---|
data | array | Memory Store 挂载对象数组。 |
first_id | string/null | 当前页第一条挂载的 memory_store_id。 |
last_id | string/null | 当前页最后一条挂载的 memory_store_id。 |
has_more | boolean | 恒为 false,挂载数量受上限约束。 |
错误码
| HTTP | type | 触发条件 |
|---|---|---|
| 400 | invalid_request_error | 路径参数非法。 |
| 401 | authentication_error | 缺少或无效的认证令牌。 |
| 403 | permission_error | Identity 级 SAT 试图查询其他 identity。 |
| 404 | not_found_error | Identity 或 Template 不存在或不可见。 |
| 500/502/503 | api_error | Forward 或依赖服务失败。 |