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
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.
| Name | Type | Required | Example | Description |
| Ids | List | Yes | [1,2,3] | A list of OSS data IDs to process. Note Obtain the data IDs by calling the DescribeOssResultItems operation. |
| Operation | String | Yes | delete | The marking operation. Valid values:
|
| Stock | Boolean | Yes | true | Specifies whether the object is a stock object. Valid values:
|
| ResourceType | String | Yes | VIDEO | The type of object to mark. Valid values:
|
| Scene | String | No | porn | The detection scenario. Valid values:
|
Returned data
For more information about the response, see Response parameters.
Examples
http(s)://green.cn-shanghai.aliyuncs.com/?
Action=MarkOssResult&ServiceModule=open_api
&<Common request parameters>
{
"Ids": ["123"],
"Operation": "delete",
"Stock": true,
"ResourceType": "VIDEO"
}{
"code": "200",
"data": {
"Code": 200,
"Message": "OK"
},
"requestId": "@guid",
"successResponse": true
}