查询作业列表
功能介绍
该API用于查询并显示边缘人脸提取的作业列表。
调试
您可以在API Explorer中调试该接口。
URI
- URI格式
GET /v2/{project_id}/services/c-face-edge/tasks
- 参数说明
参数
是否必选
类型
说明
project_id
是
String
项目ID。
请求
- 请求样例
GET /v2/{project_id}/services/c-face-edge/tasks
- 请求参数请参见queryOption(作业列表查询参数)。
响应
- 响应样例
{ "count":2, "tasks":[ { "id":"a066974ae7334649a37257242c5fa4c3", "name":"人脸提取-T4M-edge-0", "creator":"user_test", "project_id":"1f793beac00d4801874db741cbfe10fa", "description":"face detection task test", "service_version":"3.0", "edge_pool_id":"e9bf9ebe497d4c9bb2e65d1f99fe1ff9", "resource_order_id": "840a5cf90d4a4bbaa71f251dfe8fe64e", "created_at":"2020-09-10T07:41:59Z", "updated_at":"2020-09-10T07:42:04Z", "state":"RUNNING", "input":{ "type":"edgecamera", "data":[ { "id":"5213039b-698f-4347-8ced-ef0d14605c0b", "index":0 } ] }, "output":{ "webhook":{ "url":"https://apigw.xx.com/api/mqs/sit", "headers":{ "content-type":"application/json" }, "data_category":[ "FaceImage", "OriginImage" ] } }, "service_config":{ "common":{ "detection_max_size":800, "detection_min_size":120, "origin_image_send_sw":0, "face_first_send_threshold":0, "face_must_send_sw":0, "face_repeat_send_sw":1, "face_repeat_send_mode":"PERIOD", "face_repeat_send_step":1, "face_repeat_send_interval":1, "target_roi": "{"polygons":[{"data":[[100,100],[1800,100],[1800,1000],[100,1000]]}]}", "image_compression_ratio":90 } } }, { "id":"8d7c029b01c64abf9630f40b7dbfb067", "name":"人脸提取-T4M-edge-0", "creator":"user_test", "project_id":"1f793beac00d4801874db741cbfe10fa", "description":"face detection task test", "service_version":"3.0", "edge_pool_id":"e9bf9ebe497d4c9bb2e65d1f99fe1ff9", "resource_order_id": "840a5cf90d4a4bbaa71f251dfe8fe64e", "created_at":"2020-09-10T06:56:56Z", "updated_at":"2020-09-10T07:01:43Z", "state":"RUNNING", "input":{ "type":"edgecamera", "data":[ { "id":"5213039b-698f-4347-8ced-ef0d14605c0b" } ] }, "output":{ "webhook":{ "url":"https://apigw.xx.com/api/mqs/sit", "headers":{ "content-type":"application/json" }, "data_category":[ "FaceImage", "OriginImage" ] } }, "service_config":{ "common":{ "detection_max_size":800, "detection_min_size":120, "origin_image_send_sw":0, "face_first_send_threshold":0, "face_must_send_sw":0, "face_repeat_send_sw":1, "face_repeat_send_mode":"PERIOD", "face_repeat_send_step":1, "face_repeat_send_interval":1, "target_roi": "{"polygons":[{"data":[[100,100],[1800,100],[1800,1000],[100,1000]]}]}", "image_compression_ratio":90 } } } ] }
- 响应参数说明
参数名称
字段类型
描述信息
count
Int
符合查询条件的总条目数
tasks
List<Task>
符合查询条件和分页条件的条目集合
返回值
- 正常
- 异常
返回值
说明
400 Bad Request
请求错误,具体返回错误码请参考错误码。
401 Unauthorized
鉴权失败。
403 Forbidden
没有操作权限。
404 Not Found
找不到资源。
500 Internal Server Error
服务内部错误。
503 Service Unavailable
服务不可用。