All Products
Search
Document Center

Cloud Firewall:DescribeDownloadTask

Last Updated:Sep 02, 2024

Queries file download tasks, including the task information and download URLs.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-cloudfirewall:DescribeDownloadTasklist
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
LangstringNo

The language of the content within the response. Valid values:

  • zh (default): Chinese
  • en: English
zh
PageSizestringNo

The number of entries per page. Default value: 10. Maximum value: 50.

10
CurrentPagestringNo

The page number.

1
TaskTypestringNo

The type of the task. For more information about task types, see the descriptions in the "DescribeDownloadTaskType" topic. If you do not specify this parameter, all files are queried by default.

InternetFirewallAsset

Response parameters

ParameterTypeDescriptionExample
object
TotalCountinteger

The total number of tasks.

132
RequestIdstring

The ID of the request.

3F2BED13-F3D0-5984-80D6-D5F298CFEA88
Tasksarray<object>

The tasks.

object

The task information.

TaskIdstring

The task ID.

1111
TaskNamestring

The name of the task.

Internet Boundary Firewall Assets - IPv4
Statusstring

The status of the task. Valid values:

  • finish
  • start
  • error
  • expire: The task file is invalid and cannot be downloaded.
finish
FileURLstring

The URL of the OSS file.

https://cfw-table-download-cn.oss-cn-hangzhou.aliyuncs.com/%E4%BA%92%E8%81%94%E7%BD%91%E8%BE%B9%E7%95%8C%E9%98%B2%E7%81%AB%E5%A2%99%E8%B5%84%E4%BA%A7-IPv4_1069.csv?Expires=1708583913&OSSAccessKeyId=****&Signature=******%3D
FileSizestring

The size of the file.

24.04KB
CreateTimelong

The time when the task was created. The value is a UNIX timestamp. Unit: seconds.

1706595827
ExpireTimelong

The time when the task expires. The value is a UNIX timestamp. Unit: seconds.

1714371828
TaskTypestring

The type of the task.

InternetFirewallAsset

Examples

Sample success responses

JSONformat

{
  "TotalCount": 132,
  "RequestId": "3F2BED13-F3D0-5984-80D6-D5F298CFEA88",
  "Tasks": [
    {
      "TaskId": "1111",
      "TaskName": "Internet Boundary Firewall Assets - IPv4",
      "Status": "finish",
      "FileURL": "https://cfw-table-download-cn.oss-cn-hangzhou.aliyuncs.com/%E4%BA%92%E8%81%94%E7%BD%91%E8%BE%B9%E7%95%8C%E9%98%B2%E7%81%AB%E5%A2%99%E8%B5%84%E4%BA%A7-IPv4_1069.csv?Expires=1708583913&OSSAccessKeyId=****&Signature=******%3D",
      "FileSize": "24.04KB",
      "CreateTime": 1706595827,
      "ExpireTime": 1714371828,
      "TaskType": "InternetFirewallAsset"
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history