All Products
Search
Document Center

CDN:DescribePreloadDetailById

Last Updated:Oct 26, 2026

Queries the details of a prefetch task, including the prefetch progress of all resources under the task. This API operation requires whitelist approval. If your bandwidth exceeds 100 Gbit/s, you can apply for whitelist approval through your account manager.

Operation description

  • You can query data within the last 3 days (inclusive).

  • The rate limit for a single user is 30 calls per second.

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

cdn:DescribePreloadDetailById

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

TaskId

string

Yes

The ID of the prefetch task. You can specify only one task ID in a single call.

15423123921

Response elements

Element

Type

Description

Example

object

TotalCount

integer

The total number of queried tasks.

1

RequestId

string

The ID of the request. You can use the ID to locate logs and troubleshoot issues.

E9D3257A-1B7C-414C-90C1-8D07AC47BCAC

UrlDetails

array<object>

The task details, including the task ID, start and end time, domain name, success rate, status, returned error code, and completion details of all URL resources.

array<object>

TaskId

string

The ID of the task to be queried.

You can call the PushObjectCache operation to obtain the ID of the prefetch task from the response, and then query the prefetch status of the origin server resources by using the task ID.

You can specify only one task ID in a single call.

14286878547

Domain

string

The domain name of the prefetched resource.

example.com

CreationTime

string

The time when the task object was created. The time is displayed in UTC.

2022-11-23T02:26:56Z

EndTime

string

The time when the task object ended. The time is displayed in UTC.

2022-11-23T02:27:00Z

RetCode

string

The returned error code. A value of 0 indicates success.

0

Process

string

The completion progress of the task in percentage. This value indicates the percentage of edge nodes on which the prefetch task is completed.

100%

Status

string

The status of the task. Valid values:

  • Complete: The task is completed.

  • Refreshing: The task is in progress.

  • Failed: The task failed.

Complete

Urls

array<object>

The completion details of all URL resources under the task.

object

Url

string

The URL of the prefetched resource.

/abc.jpg

Success

string

The success rate in percentage. This value indicates the percentage of edge nodes on which the resource is successfully prefetched.

47%

Description

string

The resource prefetch details.

  • If all edge nodes succeed, "Successfully preloaded" is returned.

  • If there are failed edge nodes, the failed details are returned, separated by "|".

Successfully preloaded

Examples

Success response

JSON format

{
  "TotalCount": 1,
  "RequestId": "E9D3257A-1B7C-414C-90C1-8D07AC47BCAC",
  "UrlDetails": [
    {
      "TaskId": "14286878547",
      "Domain": "example.com",
      "CreationTime": "2022-11-23T02:26:56Z",
      "EndTime": "2022-11-23T02:27:00Z",
      "RetCode": "0",
      "Process": "100%",
      "Status": "Complete",
      "Urls": [
        {
          "Url": "/abc.jpg\n",
          "Success": "47%",
          "Description": "Successfully preloaded"
        }
      ]
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidTaskId.Malformed The specified TaskId is invalid.
400 DomainNameOverLimit A maximum of 500 domains are supported for each request.
400 InvalidParameters The parameters you provided are invalid.
400 InvalidTime The query time cannot exceed the last 3 days.
429 TooManyRequests Too many requests, please try again later

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.