Call the ExportOssResult operation to export the results of OSS violation detection to a file.
Usage notes
You can call this operation to export the results of OSS violation detection to a file. For more information about how to construct an HTTP request, see Request structure. You can also use a pre-built HTTP request. For more information, see SDK overview.
Billing: This operation is free of charge.
QPS limits
You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
Request parameters
For more information about common request parameters, see Common parameters.
| Name | Type | Required | Example | Description |
| Stock | Boolean | Yes | true | Specifies whether to export historical results.
|
| ResourceType | String | No | VEDIO | The object type of the results to export.
|
| Scene | String | No | porn | The detection scenario of the results to export.
|
| StartDate | String | No | 2018-09-04 14:17:56 +0800 | The start time of the results to export. The format is yyyy-MM-dd HH:mm:ss Z. |
| EndDate | String | No | 2018-10-04 14:17:56 +0800 | The end time of the results to export. The format is yyyy-MM-dd HH:mm:ss Z. |
| MinScore | Float | No | 90.01 | (For image objects only) The minimum threat score of the results to export. |
| MaxScore | Float | No | 99.01 | (For image objects only) The maximum threat score of the results to export. |
| Suggestion | String | No | block | The recommended action for the results to query. Valid values:
Note This parameter is required when Stock is set to true. |
| Bucket | String | No | 123 | The OSS bucket where the object to export is stored. |
| QueryId | String | No | @guid | The ID of the query request for the object to export. |
| TotalCount | Integer | No | 1000 | The total number of results. |
| PageSize | Integer | No | 20 | The number of entries per page. |
| CurrentPage | Integer | No | 1 | The current page number. |
Response data
For more information about the response, see Response parameters.
| Name | Type | Example | Description |
| FileUrl | String | https://example.com/tfs/xxx.txt | The URL of the returned file. |
Examples
http(s)://green.cn-shanghai.aliyuncs.com/?
Action=ExportOssResult&ServiceModule=open_api
&<Common request parameters>
{
"Stock": true
}{
"code": "200",
"data": {
"FileUrl": "https://example.com/tfs/xxx.txt"
},
"requestId": "@guid",
"successResponse": true
}