更新时间:2022-03-17 GMT+08:00
分享

查询作业列表

功能介绍

该API用于查询并显示边缘入侵检测的作业列表。

调试

您可以在API Explorer中调试该接口。

URI

  • URI格式
    GET /v2/{project_id}/services/c-intrusiondetection-edge/tasks
  • 参数说明

    参数

    是否必选

    类型

    说明

    project_id

    String

    项目ID。

请求

响应

  • 响应样例
    {
        "count":1,
        "tasks":[
            {
                "id":"cb088e91e03b4e4a87d55bbaae1debe0",
                "name":"intrusion-T4M-edge_0",
                "creator":"user_test",
                "project_id":"1f793beac00d4801874db741cbfe10fa",
                "description":"intrusion task test",
                "service_version":"3.0",
                "edge_pool_id":"42deafda231942cd810b592b9ed933dc",
                "resource_order_id":"840a5cf90d4a4bbaa71f251dfe8fe64e",
                "created_at":"2020-09-18T12:29:53Z",
                "updated_at":"2020-09-18T12:29:53Z",
                "state":"RUNNING",
                "input":{
                    "type":"edgecamera",
                    "data":[
                        {
                            "id":"6233039b-698f-4347-8ced-ef0d14605c0b",
                            "index":0
                        }
                    ]
                },
                "output":{
                    "webhook":{
                        "url":"https://apigw.xx.com/api/mqs/sit",
                        "headers":{
                            "content-type":"application/json"
                        }
                    }
                },
                "service_config":{
                    "common":{
                        "car_detection_sw":0,
                        "person_detection_sw":1,
                        "detection_min_size":60,
                        "detection_max_size":1080,
                        "line_detection_sw":1,
                        "region_detection_sw":1,
                        "loitering_detection_sw":0,
                        "image_compression_ratio":90,
                        "render_result_sw":1,
                        "target_roi": "{"lines":[{"data":[[560,680],[1185,506]],"properties":{"side1_name":"Side1","side2_name":"Side2"}}],"polygons":[{"data":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}",
                        "render_roi_sw":1
                    }
                }
            }
        ]
    }
  • 响应参数说明

    参数名称

    字段类型

    描述信息

    count

    Int

    符合查询条件的总条目数。

    tasks

    List<Task>

    符合查询条件和分页条件的条目集合。

返回值

  • 正常

    200

  • 异常

    返回值

    说明

    400 Bad Request

    请求错误,具体返回错误码请参考错误码

    401 Unauthorized

    鉴权失败。

    403 Forbidden

    没有操作权限。

    404 Not Found

    找不到资源。

    500 Internal Server Error

    服务内部错误。

    503 Service Unavailable

    服务不可用。

分享:

    相关文档

    相关产品