Mark OSS detection results

Updated at:

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 limit

The queries per second (QPS) limit for this API is 10 per user. Exceeding this limit triggers throttling, which can impact your business. Plan your calls accordingly.

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
}