GetOssCheckTaskInfo
Queries the details of an OSS scan task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-greenweb:GetOssCheckTaskInfo |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ParentTaskId |
string |
No |
The ID of the parent task. |
P_AAA** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
{@link PortalResponse |
||
| RequestId |
string |
The ID assigned by the backend to uniquely identify a request. You can use this ID to troubleshoot issues. |
AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE**** |
| TaskId |
string |
The ID of the task. |
xxxx-xxx |
| TaskName |
string |
The name of the task. |
Document inventory task 20240914100517757 |
| Buckets |
string |
The buckets. |
[{\"Bucket\":\"aileshijie\",\"Region\":\"cn-hangzhou\"}] |
| Status |
integer |
The status of the task. |
1 |
| StartTime |
string |
The start time. The format is YYYY-MM-DD HH:mm:ss. |
2023-08-21 16:08:38 |
| EndTime |
string |
The end time. The format is YYYY-MM-DD HH:mm:ss. |
2025-07-09 10:30:00 |
| SearchNum |
integer |
The number of scan tasks. |
100 |
| FinishNum |
integer |
The number of completed items. |
56 |
| MediaType |
integer |
The media asset type. |
1 |
| Config |
object |
The configuration. |
|
| ScanNoFileType |
boolean |
Specifies whether to scan images without file name extensions. |
true |
| ScanService |
array |
The code of the scan service. |
|
|
string |
The code of the scan service. |
oss_baselineCheck |
|
| DistinctHistoryTasks |
boolean |
Specifies whether to deduplicate historically scanned tasks. |
true |
| StartTime |
string |
The start time. The format is YYYY-MM-DD HH:mm:ss. |
2023-08-21 16:08:38 |
| EndTime |
string |
The end time. The format is YYYY-MM-DD HH:mm:ss. |
2025-07-09 10:30:00 |
| ScanLimit |
integer |
The limit on the number of items to scan. |
100 |
| PrefixFilterType |
string |
The prefix filter type. |
all |
| PrefixFilters |
array |
The prefixes. |
|
|
string |
The prefixes. |
ugc/img |
|
| Priority |
integer |
The priority. |
1 |
| TaskCycle |
integer |
The scheduling cycle. |
1 |
| ExecuteDate |
integer |
The execution date of the scheduled task. The value is an integer, such as 1. |
1 |
| ExecuteTime |
string |
The expected execution time of the scheduled task. The format is YYYY-MM-DD HH:mm:ss. |
2025-07-09 10:30:00 |
| ScanResourceType |
integer |
The type of files to scan. |
0 |
| ScanServiceInfos |
array<object> |
The scan service information. |
|
|
object |
The scan service information. |
||
| IsCopy |
boolean |
Specifies whether to copy. |
false |
| ServiceCode |
string |
The service code. |
oss_baselineCheck |
| ServiceName |
string |
The service name. |
Content moderation |
| CopyFrom |
string |
The primary service. |
oss_baselineCheck |
| CallbackId |
integer |
The callback notification ID. |
188 |
| Freeze |
boolean |
Specifies whether to freeze. |
true |
| FreezeType |
string |
The freeze type. |
ACL |
| FreezeHighRisk1 |
boolean |
Specifies whether to freeze high-risk images. |
true |
| FreezeMediumRisk1 |
boolean |
Specifies whether to freeze medium-risk images. |
true |
| FreezeHighRisk2 |
boolean |
Specifies whether to freeze high-risk audio and text files. |
true |
| FreezeMediumRisk2 |
boolean |
Specifies whether to freeze medium-risk audio and text files. |
false |
| FreezeRestorePath |
string |
The transfer path. |
test |
| Referer |
string |
The Referer, which indicates the source site of the request. |
https://www.aliyun.com/ |
| UserFreezeConfig |
object |
The user freeze configuration. |
|
| FreezeType |
string |
The freeze type. |
ACL |
| FreezeRestorePath |
string |
The transfer directory. |
test |
| BucketPrefixFilterConfig |
object |
The filter configuration for each bucket. The key is the bucket name, and the value is the filter configuration, which includes prefix and suffix filters and a list of filtered characters. |
{"sample-bucket":{"PrefixFilterType":"all","PrefixFilters":["testprefix1"]}} |
|
object |
The filter configuration. |
||
| PrefixFilterType |
string |
The prefix filter type. |
all |
| PrefixFilters |
array |
The prefix list. |
|
|
string |
The prefix. |
testprefix1 |
|
| ObjectNum |
integer |
The total number of files in the bucket. |
100 |
| IsInc |
boolean |
Specifies whether the task is a scheduled scan task. |
false |
| TaskType |
string |
The type of the task. |
increment |
| LastExecuteDate |
string |
The last execution time of the scheduled task. The format is YYYY-MM-DD HH:mm:ss. |
2025-07-09 10:30:00 |
| NextExecuteDate |
string |
The next execution time of the scheduled task. The format is YYYY-MM-DD HH:mm:ss. |
2025-07-08 10:30:00 |
Examples
Success response
JSON format
{
"RequestId": "AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****",
"TaskId": "xxxx-xxx\n",
"TaskName": "Document stock task 20240914100517757",
"Buckets": "[{\\\"Bucket\\\":\\\"aileshijie\\\",\\\"Region\\\":\\\"cn-hangzhou\\\"}]",
"Status": 0,
"StartTime": "2023-08-21 16:08:38\n",
"EndTime": "2025-07-09 10:30:00",
"SearchNum": 100,
"FinishNum": 56,
"MediaType": 1,
"Config": {
"ScanNoFileType": true,
"ScanService": [
"oss_baselineCheck"
],
"DistinctHistoryTasks": true,
"StartTime": "2023-08-21 16:08:38\n",
"EndTime": "2025-07-09 10:30:00",
"ScanLimit": 100,
"PrefixFilterType": "all",
"PrefixFilters": [
"ugc/img"
],
"Priority": 1,
"TaskCycle": 1,
"ExecuteDate": 1,
"ExecuteTime": "2025-07-09 10:30:00\n",
"ScanResourceType": 0,
"ScanServiceInfos": [
{
"IsCopy": false,
"ServiceCode": "oss_baselineCheck",
"ServiceName": "Content moderation.",
"CopyFrom": "oss_baselineCheck"
}
],
"CallbackId": 188,
"Freeze": true,
"FreezeType": "ACL",
"FreezeHighRisk1": true,
"FreezeMediumRisk1": true,
"FreezeHighRisk2": true,
"FreezeMediumRisk2": false,
"FreezeRestorePath": "test",
"Referer": "https://www.aliyun.com/",
"UserFreezeConfig": {
"FreezeType": "ACL",
"FreezeRestorePath": "test"
},
"BucketPrefixFilterConfig": {
"key": {
"PrefixFilterType": "all",
"PrefixFilters": [
"testprefix1"
]
}
}
},
"ObjectNum": 100,
"IsInc": false,
"TaskType": "increment",
"LastExecuteDate": "2025-07-09 10:30:00\n",
"NextExecuteDate": "2025-07-08 10:30:00\n"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.