获取某个 Identity 与 Template 的用户级配置。
HTTP 200 OK
401 响应的
请求头
| Header | 是否必填 | 说明 |
|---|---|---|
| Authorization | 是 | Bearer <PAT> |
路径参数
| 参数 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
identity_id | string | 是 | Forward Identity ID。 |
template_id | string | 是 | Forward Template ID。 |
示例请求
示例响应
HTTP 200 OK
响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
type | string | 固定为 config。 |
identity_config | object | 存储的用户级覆盖 DSL。 |
metadata | object | 业务元数据。 |
错误
| HTTP | Type | Code | 触发条件 |
|---|---|---|---|
| 404 | not_found_error | - | Identity、Template 或 Config 不存在。 |
| 401 | authentication_error | TOKEN_INVALID | PAT 无效或已过期。 |
message 字段因触发场景而异:
- PAT 无效或已过期:
invalid pt-token - 缺少 Authorization 请求头:
missing authorization token - Authorization 格式错误(非
Bearer <PAT>格式):invalid authorization format, expected Bearer
备注
- 要查看编译后的运行时配置,请使用 Get Effective Config。
- 资源 map 中的
enabled=false会禁用从 Template 继承的资源。