请求方式:GET
接口名称:queryDagByNid
请求地址:https://console.volcengine.com/cdp/open_platform/openapi
参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
Authorization | String | 是 | HMAC-SHA256 Credential=BDPP2952f97532xxxxxx/20240716/cn/openPlatform/request, SignedHeaders=host;x-content-sha256;x-date, Signature=131f3d297eb22a7xxxxxx | 详细介绍请查阅调用方式文档 |
X-Tenant | Int | 是 | 1 | 项目ID |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
ApiAction | String | 是 | queryDagByNid | 固定值,对应"请求说明"中的"接口名称" |
ApiVersion | String | 是 | 2023-06-20 | 固定值,版本号: 2023-06-20 |
bizType | String | 是 | label | 业务类型枚举Key |
nativeId | Int | 是 | 12345 | 业务结点原生ID |
无
下表仅列出返回参数中data字段内容。
根据业务ID&业务类型查询,未查询到的结点baseId为Null。
参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
nodes | Array[Object] | 见下方 nodes 说明 | DAG图中的结点列表 |
edges | Array[Object] | 见下方 edges 说明 | DAG图中的边列表 |
baseNodeId | String | "node_001" | 当前查询的基准结点ID |
degreeTotal | Int | 5 | 出入度总数 |
参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
id | String | "node_001" | 结点ID |
name | String | "用户标签A" | 结点名称 |
total | Int | 100 | 结点关联总数 |
status | Int | 0 | 结点状态 |
bizType | String | "label" | 业务类型 |
nativeId | String | "12345" | 业务结点原生ID |
参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
startId | String | "node_001" | 边的起始结点ID |
endId | String | "node_002" | 边的终止结点ID |
{ "code": 0, "msg": "成功", "data": { "nodes": [ { "id": "node_001", "name": "用户标签A", "total": 100, "status": 0, "bizType": "label", "nativeId": "12345" }, { "id": "node_002", "name": "用户分群B", "total": 50, "status": 0, "bizType": "segment", "nativeId": "67890" } ], "edges": [ { "startId": "node_001", "endId": "node_002" } ], "baseNodeId": "node_001", "degreeTotal": 5 } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
HTTP 状态码 | 错误码 | 错误信息 | 说明 |
|---|---|---|---|
400 | invalidParameter | PARAMETER INVALID | 参数非法,检查入参。 |