视频分析服务 VAS-获取作业列表:响应示例

时间:2023-11-01 16:16:45

响应示例

状态码: 200

获取服务作业列表成功

{  "count" : 1,  "tasks" : [ {    "id" : "53e4xxxxxxxxxxxxxxxxxxxxxxb55b3e",    "name" : "task-test",    "creator" : "user_test",    "project_id" : "b722xxxxxxxxxxxxxxxxxxxxxxeb4674",    "description" : "hello world",    "service_name" : "face-detect",    "service_version" : "1.0",    "service_title" : {      "en" : "Face Detect",      "zh" : "人脸检测"    },    "edge_pool_id" : "549cxxxxxxxxxxxxxxxxxxxxxx77a2a5",    "created_at" : "2021-01-01T00:00:00Z",    "updated_at" : "2021-01-01T00:00:10Z",    "state" : "RUNNING",    "input" : {      "type" : "edgecamera",      "data" : [ {        "id" : "dd8xxxxx-xxxx-xxxx-xxxx-xxxxxx2f5bcb"      } ]    },    "output" : {      "dis" : {        "stream_name" : "dis-test"      }    },    "service_config" : {      "common" : {        "image_compression_ratio" : 90,        "render_result_sw" : 0,        "video_sampling_interval" : 1      }    }  } ]}

状态码: 400

请求不合法

{  "error_code" : "IVA.0004",  "error_msg" : "The request param is invalid. The param [state] should be one of [PENDING, RECOVERING, STARTING, UPGRADING, CREATE_FAILED, START_FAILED, RUNNING, STOPPING, STOPPED, ABNORMAL, SUCCEEDED, FAILED, DELETING, FREEZING, FROZEN]"}

状态码: 404

指定的服务不存在

{  "error_code" : "IVA.0005",  "error_msg" : "The requested resource is NOT found. Service face-detect not found."}
support.huaweicloud.com/api-vas/vas_03_0162.html