Download OpenAPI specification:
Cluster-internal read endpoints used by ontology-query after it resolves a published knowledge-network model to a physical Vega resource.
Vega is the final policy enforcement point. Before every physical read it verifies that the managed proxy account is active, still belongs to the stated knowledge network, and currently has the exact resource permission in bkn-safe. These checks are not cached.
Only schema inspection and filtered resource-data queries are exposed. This surface does not provide resource discovery, raw SQL, write, administration, build, or task operations.
All identity and BKN context headers are trusted workload credentials. They must be supplied only by ontology-query over the cluster-internal network; they are not accepted as end-user authentication on the public API.
Cluster-internal endpoint used by bkn-backend after it derives a binding target from the
candidate model. The caller identity is the effective delegator returned by bkn-safe
preflight. Vega rechecks exactly the requested view_detail or query_data operation and
returns only the resource identity, name, and schema. It does not expose the unrestricted
internal resource detail API.
| id required | string Physical Vega resource ID |
| operation required | string Enum: "view_detail" "query_data" |
| X-Account-ID required | string |
| X-Account-Type required | string Value: "user" |
{- "id": "string",
- "name": "string",
- "schema_definition": [
- {
- "name": "string",
- "type": "string",
- "display_name": "string",
- "description": "string",
- "original_name": "string",
- "original_type": "string",
- "original_description": "string",
- "features": [
- {
- "name": "string",
- "display_name": "string",
- "feature_type": "keyword",
- "description": "string",
- "ref_property": "string",
- "is_default": true,
- "is_native": true,
- "config": { }
}
], - "attributes": { }
}
]
}Requires view_detail. Only an object_type child may use this
operation. The response deliberately omits resource metadata other than
schema_definition.
| id required | string Physical Vega resource ID |
| X-Account-ID required | string Active managed proxy account ID |
| X-Account-Type required | string Value: "app" |
| x-bkn-caller-id required | string Original end-user or workload caller ID |
| x-bkn-caller-type required | string Original caller account type |
| x-bkn-kn-id required | string Knowledge network managed by the proxy account |
| x-bkn-child-type required | string Enum: "object_type" "relation_type" "metric" |
| x-bkn-child-id required | string Published knowledge-network child ID |
| x-bkn-proxy-version required | integer <uint64> >= 1 Current positive version of BKN's knowledge-network-to-proxy mapping, used for trusted-context validation and audit correlation |
| x-bkn-target-type required | string Value: "resource" |
| x-bkn-target-id required | string Must exactly match the resource ID in the path |
| x-bkn-operation required | string Value: "view_detail" |
| x-bkn-execution-id | string Optional upstream execution identifier included in the audit event |
{- "schema_definition": [
- {
- "name": "string",
- "type": "string",
- "display_name": "string",
- "description": "string",
- "original_name": "string",
- "original_type": "string",
- "original_description": "string",
- "features": [
- {
- "name": "string",
- "display_name": "string",
- "feature_type": "keyword",
- "description": "string",
- "ref_property": "string",
- "is_default": true,
- "is_native": true,
- "config": { }
}
], - "attributes": { }
}
]
}Requires query_data. object_type, relation_type, and metric
children may use this operation. X-HTTP-Method-Override must be GET;
write overrides are rejected before authorization and physical access.
| id required | string Physical Vega resource ID |
| X-Account-ID required | string Active managed proxy account ID |
| X-Account-Type required | string Value: "app" |
| x-bkn-caller-id required | string Original end-user or workload caller ID |
| x-bkn-caller-type required | string Original caller account type |
| x-bkn-kn-id required | string Knowledge network managed by the proxy account |
| x-bkn-child-type required | string Enum: "object_type" "relation_type" "metric" |
| x-bkn-child-id required | string Published knowledge-network child ID |
| x-bkn-proxy-version required | integer <uint64> >= 1 Current positive version of BKN's knowledge-network-to-proxy mapping, used for trusted-context validation and audit correlation |
| x-bkn-target-type required | string Value: "resource" |
| x-bkn-target-id required | string Must exactly match the resource ID in the path |
| x-bkn-operation required | string Value: "query_data" |
| x-bkn-execution-id | string Optional upstream execution identifier included in the audit event |
| X-HTTP-Method-Override required | string Value: "GET" |
object 过滤条件,结构由 | |
object (PagingRequest) 首次请求使用 offset 和 limit;cursor 续页以 cursor 定位,need_total 可携带但不会覆盖首次请求冻结值,其余查询参数不得重传。 | |
Array of objects (SortField) 排序字段。派生逻辑视图的非聚合查询支持保留元字段 | |
| output_fields | Array of strings 指定输出字段列表。派生逻辑视图的非聚合查询可指定 |
| binary_mode | string Default: "metadata" Enum: "metadata" "content" Binary 字段的返回形式。省略时按 |
| ignore_local_index | boolean Default: false 是否跳过可用的本地索引并查询表的原始数据源;默认 |
| need_total | boolean Default: false 是否在响应里携带 total_count。cursor 首次请求的值会被冻结;续页携带的值被忽略。 |
object (Aggregation) | |
Array of objects (GroupByItem) | |
object (HavingClause) |
{- "filter_condition": { },
- "paging": {
- "mode": "cursor",
- "offset": 0,
- "limit": 1,
- "keep_alive_sec": 60,
- "cursor": "string"
}, - "sort": [
- {
- "field": "string",
- "direction": "asc"
}
], - "output_fields": [
- "string"
], - "binary_mode": "metadata",
- "ignore_local_index": false,
- "need_total": false,
- "aggregation": {
- "property": "string",
- "aggr": "count",
- "alias": "string"
}, - "group_by": [
- {
- "property": "string",
- "description": "string",
- "calendar_interval": "minute"
}
], - "having": {
- "field": "__value",
- "operation": "==",
- "value": null
}
}{- "query_source": "local_index",
- "entries": [
- {
- "_id": "string"
}
], - "total_count": 0,
- "paging": {
- "next_cursor": "string",
- "expires_at_sec": 0
}, - "warnings": [
- "string"
]
}