Path:/profile_platform/openApi/v2/cdpMeta/labelSystem/label/list
Method: GET
Path-parameters:
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
subjectId | Int | 否 | 11 | 主体id |
Header:
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
X-Tenant | Int | 是 | 1 | 项目id |
Response:
{ "code":0, "msg":"成功", "data":[ { "id":4, "name":"autotest_quanliang03181231", "orgId":1, "projectId":1, "descr":"", "dataSecurityLevel":null, "labelType":"rule", "dataTypeName":"string", "domainId":-2, "position":3, "entityId":1, "entityType":"baseid", "computeType":"offline", "isMautag":0, "syncParams":{ "scheduleConf":{ "frequency":"d", "scheduleTime":"02:00:00" }, "syncType":1 }, "conf":{ "layers":[ { "filter":{ "operator":"And", "filters":[ { "operator":"And", "filters":[ { "operator":"=", "tagId":3, "value":0 } ] } ] }, "name":"标签值1" } ] }, "taskId":100000018, "dimMetId":282, "labelRangeRules":null, "status":0, "createApiTask":false, "realtimeTaskId":null, "realtimeStatus":null, "owner":"admin", "createTime":"2023-03-18 12:42:47", "updater":"admin", "updateTime":"2023-03-18 12:42:50", "abiDimMetId":0, "lastSuccessTaskInstanceId":1192, "latestRunDate":"2023-04-25", "userNum":5124, "values":null } ] }
字段含义说明
data 返回的是一个 JSON array, 针对关键字段进行说明:同查询标签基本信息API
bc
为创建的 RangersClient, 其初始化请参考使用说明, 各语言的 SDK 都提供了类似的接口
调用(Python)::
res = bc.request('/finder/openApi/v2/cdpMeta/labelSystem/label/list', headers={'x-Tenant': "1"}) print(res.content) print(json.loads(res.content))
返回结果:
{ "code":0, "msg":"成功", "data":[ { "id":2, "name":"\xe6\xb3\xa8\xe5\x86\x8c", "orgId":1, "projectId":1, "descr":"", "dataSecurityLevel":null, "labelType":"rule", "dataTypeName":"string", "domainId":-2, "position":1, "entityId":1, "entityType":"baseid", "computeType":"offline", "isMautag":0, "syncParams":{ "scheduleConf":{ "frequency":"d", "scheduleTime":"00:00:00" }, "syncType":1 }, "conf":{ "layers":[ { "filter":{ "operator":"And", "filters":[ { "operator":"And", "filters":[ { "eventId":25, "eventDatasourceId":19, "eventType":0, "period":{ "last":1, "todayIncluded":false, "interval":"Day", "type":"Last" }, "eventName":"register", "operator":"Done", "aggregate":{ "method":"Count", "condition":{ "operator":"!=", "value":0 } } } ] } ] }, "name":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1" } ] }, "taskId":2, "dimMetId":334, "labelRangeRules":null, "status":0, "createApiTask":false, "realtimeTaskId":null, "realtimeStatus":null, "owner":"admin", "createTime":"2023-06-25 19:26:14", "updater":"admin", "updateTime":"2023-06-25 19:26:16", "abiDimMetId":0, "lastSuccessTaskInstanceId":1058, "latestRunDate":"2023-06-25", "userNum":874, "realtimeCompensateTaskId":null, "values":null } ] }