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

查询单个作业

功能介绍

该API用于查询并显示单个作业详情。

调试

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

URI

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

    参数

    是否必选

    类型

    说明

    project_id

    String

    项目ID。

    task_id

    String

    作业ID。

请求

请求样例

GET /v2/6204a5bd270343b5885144cf9c8c158d/services/c-vehicle-detection-edge/tasks/8656efdafebf440bb7008f174db6c567

响应

  • 响应样例
    {
        "id":"8656efdafebf440bb7008f174db6c567",
        "name":"vehicledetection-edge-task",
        "creator":"user_test",
        "project_id":"1f793beac00d4801874db741cbfe10fa",
        "description":null,
        "service_version":"3.0",
        "edge_pool_id":"8dcf5ec7bc4d4a26aa1d3e1bb5ed2b5a",
        "resource_order_id":"840a5cf90d4a4bbaa71f251dfe8fe64e",
        "created_at":"2020-09-18T03:35:03Z",
        "updated_at":"2020-09-18T03:35:51Z",
        "state":"RUNNING",
        "input":{
            "type":"edgecamera",
            "data":[
                {
                    "id":"aec5857c-222f-4aa9-be39-23654e118886",
                    "index":0
                }
            ]
        },
        "output": {
            "webhook":{
                "url":"https://apigw.xx.com/api/mqs/sit",
                "headers":{
                    "content-type":"application/json"
                }
            }
        },
        "service_config":{
            "common":{
                "target_roi":"{"lines":[{"data":[[50,756],[100,616]],"properties":{"type":0}},{"data":[[50,256],[100,116]],"properties":{"type":1}}],"polygons":[{"data":[[487,465],[1850,450],[1905,1013],[515,1050]]}]}",
                "license_plate":{
                    "local_city":"B",
                    "local_province":"津"
                },
                "output_image_sw":1,
                "image_compression_ratio":100
            }
        }
    }
  • 响应参数说明

    参数名称

    字段类型

    描述信息

    task

    Object

    作业详情,定义见Task参数结构说明

返回值

  • 正常

    200

  • 异常

    返回值

    说明

    400 Bad Request

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

    401 Unauthorized

    鉴权失败。

    403 Forbidden

    没有操作权限。

    404 Not Found

    找不到资源。

    500 Internal Server Error

    服务内部错误。

    503 Service Unavailable

    服务不可用。

分享:

    相关文档

    相关产品