Domain name for API request: vm.tencentcloudapi.com.
This API is used to query the task queue. You can filter moderation tasks by multiple types of business information, such as business type, moderation result, and task status.
Default request rate limit: 20 requests/sec.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: DescribeTasks. |
Version | Yes | String | Common Params. The value used for this API: 2021-09-22. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
Limit | No | Integer | This parameter indicates the number of tasks to be displayed on each page of the task list. Default value: 10. |
Filter | No | TaskFilter | This parameter indicates the input parameter of the task filter. You can filter tasks by business type, file type, processing suggestion, and task status. For the specific parameter content, see the detailed description of the TaskFilter data structure. |
PageToken | No | String | This parameter indicates the Token information used during pagination. It is automatically generated by the system and will be passed to the next generated page for easy and fast pagination. When you turn to the last page, this field will be empty. |
StartTime | No | Timestamp ISO8601 | This parameter indicates the start time of the task list in ISO 8601 timestamp format. Default value: 3 days ago. If this parameter is passed in, tasks between this time point and EndTime will be filtered out.Note: this parameter is used together with Filter to filter tasks in no particular order. |
EndTime | No | Timestamp ISO8601 | This parameter indicates the end time of the task list in ISO 8601 timestamp format. Default value: empty. If this parameter is passed in, tasks between StartTime and this time point will be filtered out.Note: this parameter is used together with Filter to filter tasks in no particular order. |
Parameter Name | Type | Description |
---|---|---|
Total | String | This field is used to return the total number of queried tasks in the format of int string.Note: This field may return null, indicating that no valid values can be obtained. |
Data | Array of TaskData | This field is used to return the detailed data of the tasks on the current page. For the specific output content, see the detailed description of the TaskData data structure.Note: This field may return null, indicating that no valid values can be obtained. |
PageToken | String | This field is used to return the Token information used during pagination. It is automatically generated by the system and will be passed to the next generated page for easy and fast pagination. When you turn to the last page, this field will be empty.Note: This field may return null, indicating that no valid values can be obtained. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
This example shows you how to view the list of moderation tasks.
POST / HTTP/1.1
Host: vm.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeTasks
<Common request parameters>
{
"Filter": {
"Type": "VIDEO"
}
}
{
"Response": {
"Total": "1",
"Data": [
{
"TaskId": "task-video-XwxJtbkKXWgCt8AZ",
"DataId": "data_test_01",
"BizType": "1001",
"Name": "Test video",
"Status": "FINISH",
"Type": "VIDEO",
"Suggestion": "Block",
"Labels": [
{
"Label": "Porn",
"Suggestion": "Block",
"Score": 99
},
{
"Label": "Hot",
"Suggestion": "Block",
"Score": 70
}
],
"MediaInfo": {
"Codecs": "h264 aac",
"Duration": 36,
"Width": 352,
"Height": 640
},
"InputInfo": {
"Type": "URL",
"Url": "https://cms.myqcloud.com/video/test.mp3",
"BucketInfo": null
},
"CreatedAt": "2020-07-13T11:47:01.925Z",
"UpdatedAt": "2020-07-13T11:47:25.840Z"
}
],
"PageToken": "4765-48dXwxJtbkKXW8d3eb",
"RequestId": "8d3e4765-48db-40b5-8fdb-aaf1d7225a60"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
AuthFailure | CAM signature/authentication error. |
DryRunOperation | DryRun operation, which means the DryRun parameter is passed in yet the request will still be successful. |
FailedOperation | Operation failed. |
InternalError | Internal error. |
InvalidParameter | Parameter error. |
InvalidParameterValue | Invalid parameter value. |
LimitExceeded | The quota limit has been reached. |
MissingParameter | Missing parameter. |
OperationDenied | Operation denied. |
RequestLimitExceeded | The number of requests exceeds the frequency limit. |
ResourceInUse | The resource is occupied. |
ResourceInsufficient | Insufficient resource. |
ResourceNotFound | The resource doesn’t exist. |
ResourceUnavailable | The resource is unavailable. |
ResourcesSoldOut | The resources have been sold out. |
UnauthorizedOperation | Unauthorized operation. |
UnknownParameter | Unknown parameter error. |
UnsupportedOperation | Unsupported operation. |
本页内容是否解决了您的问题?