Mark OSS detection results

更新时间:
复制 MD 格式

You can call the MarkOssResult API to manually mark the status of an OSS scan result based on its Data ID. You can mark a result as normal and ignore it, mark it as non-compliant and delete it, or mark it as normal and restore it.

Usage notes

API operation: MarkOssResult
Note Before you call this operation, obtain the data IDs of the scan results by calling the DescribeOssResultItems operation.

You can call this operation to mark OSS detection results. For more information about how to construct an HTTP request, see Request structure. You can also use an SDK to call this operation. 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 the common request parameters that must be included in a request, see Common parameters.

The request body is a struct. The following table describes the parameters.
NameTypeRequiredExampleDescription
IdsListYes[1,2,3]A list of OSS data IDs to process.
Note Obtain the data IDs by calling the DescribeOssResultItems operation.
OperationStringYesdeleteThe marking operation. Valid values:
  • ignore: Ignores the object.
  • delete: Deletes the object.
  • unfreeze: Restores the object.
StockBooleanYestrueSpecifies whether the object is a stock object. Valid values:
  • true: The object is a stock object.
  • false: The object is an incremental object.
ResourceTypeStringYesVIDEOThe type of object to mark. Valid values:
  • IMAGE: Image
  • VIDEO: Video
SceneStringNopornThe detection scenario. Valid values:
  • porn: Pornography
  • terrorism: Terrorism-related content

Returned data

For more information about the response, see Response parameters.

Examples

Sample request
http(s)://green.cn-shanghai.aliyuncs.com/?
Action=MarkOssResult&ServiceModule=open_api
&<Common request parameters>
{
  "Ids": ["123"],
  "Operation": "delete",
  "Stock": true,
  "ResourceType": "VIDEO"
}
Sample response
{
  "code": "200",
  "data": {
    "Code": 200,
    "Message": "OK"
  },
  "requestId": "@guid",
  "successResponse": true
}