Export OSS detection results

更新时间:
复制 MD 格式

Call the ExportOssResult operation to export the results of OSS violation detection to a file.

Usage notes

API operation: ExportOssResult
Note You can export up to 5,000 records at a time. The exported file is a .txt file. Each line in the file represents one record. Each record contains the following information: the name of the scanned OSS bucket, the scanned OSS file (key), the scan score, and the recommended action (suggestion). The fields are separated by tab characters (\t).

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.

The request body is a struct. The following table describes its parameters.
NameTypeRequiredExampleDescription
StockBooleanYestrueSpecifies whether to export historical results.
  • true: Export historical results.
  • false: Export incremental results.
ResourceTypeStringNoVEDIOThe object type of the results to export.
  • IMAGE: image
  • VEDIO: video
SceneStringNopornThe detection scenario of the results to export.
  • porn: pornography
  • terrorism: politically sensitive content
StartDateStringNo2018-09-04 14:17:56 +0800The start time of the results to export. The format is yyyy-MM-dd HH:mm:ss Z.
EndDateStringNo2018-10-04 14:17:56 +0800The end time of the results to export. The format is yyyy-MM-dd HH:mm:ss Z.
MinScoreFloatNo90.01(For image objects only) The minimum threat score of the results to export.
MaxScoreFloatNo99.01(For image objects only) The maximum threat score of the results to export.
SuggestionStringNoblockThe recommended action for the results to query. Valid values:
  • block: We recommend blocking the request.
  • review: Manually review the content.
  • pass: Allow the content.
Note This parameter is required when Stock is set to true.
BucketStringNo123The OSS bucket where the object to export is stored.
QueryIdStringNo@guidThe ID of the query request for the object to export.
TotalCountIntegerNo1000The total number of results.
PageSizeIntegerNo20The number of entries per page.
CurrentPageIntegerNo1The current page number.

Response data

For more information about the response, see Response parameters.

The Data field in the response body is a JSON array. Each element contains the following fields:
NameTypeExampleDescription
FileUrlStringhttps://example.com/tfs/xxx.txtThe URL of the returned file.

Examples

Request example
http(s)://green.cn-shanghai.aliyuncs.com/?
Action=ExportOssResult&ServiceModule=open_api
&<Common request parameters>
{
  "Stock": true
}
Response example
{
  "code": "200",
  "data": {
    "FileUrl": "https://example.com/tfs/xxx.txt"
  },
  "requestId": "@guid",
  "successResponse": true
}