Querying the Job List
Function
Query and display the video content moderation job list.
URI
- URI format:
GET /v2/{project_id}/services/video-moderation/tasks - Parameters
Parameter
Mandatory
Type
Description
project_id
Yes
String
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.
Request Parameters
- Example request
GET /v2/6204a5bd270343b5885144cf9c8c158d/services/video-moderation/tasks
- For details about the request parameters, see queryOption.
Response Parameters
- Example response
{ "count": 1, "tasks": [ { "id": "f18320e61e4c4dc685aa2dfc22a28dc5", "name": "moderation-task", "description": "description", "input": { "data": [ { "bucket": "obs-iva", "index": 0, "path": "input/demo.mp4" } ], "type": "obs" }, "output": { "obs": { "bucket": "obs-iva", "path": "output/" } }, "service_config": { "common": { "categories": "porn", "frame_interval": 5, "text_categories": "porn,politics", "upload": "false", "use_ocr": "true", "use_sis": "true" } }, "service_version": "1.2", "state": "RUNNING", "created_at": "2018-06-12T13:00:00Z", "updated_at": "2018-06-13T13:00:01Z" } ] } - Response parameters
Parameter
Type
Description
tasks
Array of taskDetail
Job details. For details, see task.detail.
count
Integer
Total number of records that meet the search criteria
Status Codes
- Normal
- Abnormal
Status Code
Description
400 Bad Request
Request error. For details about the returned error code, see Error Codes.
401 Unauthorized
Authentication failed.
403 Forbidden
No operation permission.
404 Not Found
The requested resource was not found.
500 Internal Server Error
Internal service error.
503 Service Unavailable
Service unavailable.
Last Article: Creating a Job
Next Article: Querying a Single Job
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.