查询oss扫描任务详情
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-greenweb:GetOssCheckTaskInfo |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ParentTaskId |
string |
否 |
父任务 ID |
P_AAA** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
{@link PortalResponse |
||
| RequestId |
string |
后端分配的 ID,用于唯一标识一个请求。可用于定位问题 |
AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE**** |
| TaskId |
string |
任务 ID。 |
xxxx-xxx |
| TaskName |
string |
任务名称。 |
文档存量任务 20240914100517757 |
| Buckets |
string |
存储空间。 |
[{\"Bucket\":\"aileshijie\",\"Region\":\"cn-hangzhou\"}] |
| Status |
integer |
任务状态。 |
1 |
| StartTime |
string |
开始时间。具体格式为 YYYY-MM-DD HH:mm:ss |
2023-08-21 16:08:38 |
| EndTime |
string |
结束时间。具体格式为 YYYY-MM-DD HH:mm:ss |
2025-07-09 10:30:00 |
| SearchNum |
integer |
扫描任务数。 |
100 |
| FinishNum |
integer |
已完成数。 |
56 |
| MediaType |
integer |
媒资类型。 |
1 |
| Config |
object |
配置项 |
|
| ScanNoFileType |
boolean |
是否扫描无后缀图片。 |
true |
| ScanService |
array |
扫描服务 code |
|
|
string |
扫描服务 code |
oss_baselineCheck |
|
| DistinctHistoryTasks |
boolean |
是否对历史已检测任务去重。 |
true |
| StartTime |
string |
开始时间。具体格式为 YYYY-MM-DD HH:mm:ss |
2023-08-21 16:08:38 |
| EndTime |
string |
结束时间。具体格式为 YYYY-MM-DD HH:mm:ss |
2025-07-09 10:30:00 |
| ScanLimit |
integer |
扫描限制数量。 |
100 |
| PrefixFilterType |
string |
前缀过滤类型。 |
all |
| PrefixFilters |
array |
前缀。 |
|
|
string |
前缀。 |
ugc/img |
|
| Priority |
integer |
优先级。 |
1 |
| TaskCycle |
integer |
调度日期。 |
1 |
| ExecuteDate |
integer |
定时任务执行日期。整数类型,格式为单个数字如 1 |
1 |
| ExecuteTime |
string |
定时任务预计执行时间。具体格式为 YYYY-MM-DD HH:mm:ss |
2025-07-09 10:30:00 |
| ScanResourceType |
integer |
检测文件类型。 |
0 |
| ScanServiceInfos |
array<object> |
检测服务信息 |
|
|
object |
检测服务信息 |
||
| IsCopy |
boolean |
是否复制。 |
false |
| ServiceCode |
string |
服务 code。 |
oss_baselineCheck |
| ServiceName |
string |
服务名称。 |
内容检测 |
| CopyFrom |
string |
主服务。 |
oss_baselineCheck |
| CallbackId |
integer |
回调通知 ID |
188 |
| Freeze |
boolean |
是否冻结 |
true |
| FreezeType |
string |
冻结类型。 |
ACL |
| FreezeHighRisk1 |
boolean |
冻结高风险图片 |
true |
| FreezeMediumRisk1 |
boolean |
冻结中风险图片 |
true |
| FreezeHighRisk2 |
boolean |
冻结高风险语音、文本 |
true |
| FreezeMediumRisk2 |
boolean |
冻结中风险语音、文本 |
false |
| FreezeRestorePath |
string |
转存路径 |
test |
| Referer |
string |
Referer,即请求来源站点。 |
https://www.aliyun.com/ |
| UserFreezeConfig |
object |
用户冻结配置 |
|
| FreezeType |
string |
冻结类型 |
ACL |
| FreezeRestorePath |
string |
转存目录 |
test |
| BucketPrefixFilterConfig |
object |
每个桶对应的过滤配置。其中 key 为桶名称,value 为过滤配置(包含前缀/后缀过滤,过滤字符列表) |
{"sample-bucket":{"PrefixFilterType":"all","PrefixFilters":["testprefix1"]}} |
|
object |
过滤配置 |
||
| PrefixFilterType |
string |
前缀过滤类型。 |
all |
| PrefixFilters |
array |
前缀列表 |
|
|
string |
前缀 |
testprefix1 |
|
| ObjectNum |
integer |
bucket 总文件数 |
100 |
| IsInc |
boolean |
是否定时扫描任务。 |
false |
| TaskType |
string |
任务类型。 |
increment |
| LastExecuteDate |
string |
定时任务下次执行时间。具体格式为 YYYY-MM-DD HH:mm:ss |
2025-07-09 10:30:00 |
| NextExecuteDate |
string |
定时任务上次执行时间。具体格式为 YYYY-MM-DD HH:mm:ss |
2025-07-08 10:30:00 |
示例
正常返回示例
JSON格式
{
"RequestId": "AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****",
"TaskId": "xxxx-xxx\n",
"TaskName": "文档存量任务 20240914100517757",
"Buckets": "[{\\\"Bucket\\\":\\\"aileshijie\\\",\\\"Region\\\":\\\"cn-hangzhou\\\"}]",
"Status": 1,
"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": "内容检测",
"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"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。