GetStockOssCheckTasksList

Updated at:

Queries the list of OSS scan tasks.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-greenweb:GetStockOssCheckTasksList

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

StartTime

string

No

The start time. Format: YYYY-MM-DD HH:mm:ss.

2023-06-17 02:08:00

EndTime

string

No

The end time. Format: YYYY-MM-DD HH:mm:ss.

2023-06-18 02:08:00

MediaType

integer

No

The media asset type.

1

PageSize

integer

No

The number of entries per page.

10

CurrentPage

integer

No

The current page number.

1

Sort

object

No

The sort field.

{"StartTime":"desc"}

string

No

The sort field.

{}

RegionId

string

No

The region ID.

cn-shanghai

IsInc

boolean

No

Specifies whether the task is a scheduled scan task.

false

TaskType

string

No

The task type.

batch

Response elements

Element

Type

Description

Example

object

The response body.

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****

TotalCount

integer

The total number of records.

10

PageSize

integer

The number of entries per page.

10

CurrentPage

integer

The current page number.

1

Items

array<object>

The data on the current page.

array<object>

The data on the current page.

TaskId

string

The task ID.

P_XHDUS

TaskName

string

The task name.

Image scheduled task 20231205135716797

Buckets

string

The buckets.

tmp

Status

integer

The task status.

4

StartTime

string

The start time. Format: YYYY-MM-DD HH:mm:ss.

2023-12-21 15:30:19

EndTime

string

The end time. Format: YYYY-MM-DD HH:mm:ss.

2024-01-10 11:42:31

SearchNum

integer

The number of scan tasks.

10

FinishNum

integer

The number of completed items.

2

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.

baselineCheck

DistinctHistoryTasks

boolean

Specifies whether to deduplicate historically scanned tasks.

false

StartTime

string

The start time. Format: YYYY-MM-DD HH:mm:ss.

2023-12-21 15:30:19

EndTime

string

The end time. Format: YYYY-MM-DD HH:mm:ss.

2024-01-10 11:42:31

ScanLimit

integer

The scan limit.

10

PrefixFilterType

string

The prefix filter type.

all

PrefixFilters

array

The prefixes.

string

The prefixes.

dir1,dir2

Priority

integer

The priority.

1

TaskCycle

integer

The scheduling date. The value is an integer, such as 1.

0

ExecuteTime

string

The expected execution time of the scheduled task. Format: HH:mm:ss.

02:00:00

ExecuteDate

integer

The execution date of the scheduled task. The value is an integer, such as 1.

1

ScanResourceType

integer

The type of files to scan.

0

ScanServiceInfos

array<object>

The scan service information.

object

IsCopy

boolean

Specifies whether to copy.

false

ServiceCode

string

The service code.

baselineCheck_01

ServiceName

string

The service name.

General baseline check

CopyFrom

string

The primary service.

baselineCheck

CallbackId

integer

The callback notification ID.

3942

Freeze

boolean

Specifies whether to freeze.

false

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.

true

FreezeRestorePath

string

The transfer path.

/backup

UserFreezeConfig

object

The manual freeze configuration.

FreezeType

string

The freeze type.

ACL

FreezeRestorePath

string

The transfer path.

/backup

Referer

string

The Referer header for hotlink protection.

https://www.aliyun.com/

ObjectNum

integer

The total number of files in the bucket.

10

NextExecuteDate

string

The last execution time of the scheduled task. Format: HH:mm:ss.

02:00:00

LastExecuteDate

string

The next execution time of the scheduled task. Format: HH:mm:ss.

02:00:00

IsInc

boolean

Specifies whether the task is a scheduled scan task.

false

TaskType

string

The task type.

batch

Examples

Success response

JSON format

{
  "RequestId": "AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****",
  "TotalCount": 10,
  "PageSize": 10,
  "CurrentPage": 1,
  "Items": [
    {
      "TaskId": "P_XHDUS",
      "TaskName": "ImageScheduledTask20231205135716797",
      "Buckets": "tmp",
      "Status": 4,
      "StartTime": "2023-12-21 15:30:19",
      "EndTime": "2024-01-10 11:42:31",
      "SearchNum": 10,
      "FinishNum": 2,
      "MediaType": 0,
      "Config": {
        "ScanNoFileType": true,
        "ScanService": [
          "baselineCheck"
        ],
        "DistinctHistoryTasks": false,
        "StartTime": "2023-12-21 15:30:19",
        "EndTime": "2024-01-10 11:42:31",
        "ScanLimit": 10,
        "PrefixFilterType": "all",
        "PrefixFilters": [
          "dir1,dir2"
        ],
        "Priority": 1,
        "TaskCycle": 0,
        "ExecuteTime": "02:00:00",
        "ExecuteDate": 1,
        "ScanResourceType": 0,
        "ScanServiceInfos": [
          {
            "IsCopy": false,
            "ServiceCode": "baselineCheck_01",
            "ServiceName": "General baseline detection.",
            "CopyFrom": "baselineCheck"
          }
        ],
        "CallbackId": 3942,
        "Freeze": false,
        "FreezeType": "ACL",
        "FreezeHighRisk1": true,
        "FreezeMediumRisk1": true,
        "FreezeHighRisk2": true,
        "FreezeMediumRisk2": true,
        "FreezeRestorePath": "/backup",
        "UserFreezeConfig": {
          "FreezeType": "ACL",
          "FreezeRestorePath": "/backup\n"
        },
        "Referer": "*"
      },
      "ObjectNum": 10,
      "NextExecuteDate": "02:00:00\n",
      "LastExecuteDate": "02:00:00\n",
      "IsInc": false,
      "TaskType": "batch"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.