All Products
Search
Document Center

CDN:DescribePreloadDetailById

Last Updated:Mar 28, 2024

Queries the prefetch details of a task, including the prefetch progress of all resources in the task. Only users who are included in the whitelist can use this operation. If your bandwidth is greater than 100 Gbit/s, contact your business manager to apply for the whitelist.

Operation description

  • You can query data within the last 3 days.
  • You can call this operation up to 30 times per second per account.

Debugging

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

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
TaskIdstringYes

Queries the details of a preload task by task ID. You can query one task ID at a time.

15423123921

Response parameters

ParameterTypeDescriptionExample
object
TotalCountlong

The number of queried tasks.

1
RequestIdstring

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

E9D3257A-1B7C-414C-90C1-8D07AC47BCAC
UrlDetailsobject []

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

TaskIdstring

The ID of the task that you want to query.

You can call the PushObjectCache operation to query task IDs. Then, you can use the task IDs to query task status.

You can query one task ID at a time.

14286878547
Domainstring

The domain name for prefetching resources.

example.com
CreationTimestring

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

2022-11-23T02:26:56Z
EndTimestring

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

2022-11-23T02:27:00Z
RetCodestring

The turned error code. A value of 0 indicates that the task succeeded.

0
Processstring

The progress of the prefetch task, which indicates the number of points of presence (POPs) on which the prefetch task is completed.

100%
Statusstring

The status of the task. Valid values:

  • Complete
  • Refreshing
  • Failed
Complete
Urlsobject []

The completion details of all URL resources in the task.

Urlstring

The URL of the prefetched resource.

/abc.jpg
Successstring

The success percentage, which indicates the number of POPs on which the resource is prefetched.

47%
Descriptionstring

The details of resource prefetch.

  • If the resource is prefetched on all POPs, "Successfully preloaded" is returned.
  • If the resource fails to be prefetched on some POPs, the failure details separated by vertical bars (|) are returned.
Successfully preloaded

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError message
400InvalidTaskId.MalformedThe specified TaskId is invalid.
400DomainNameOverLimitA maximum of 500 domains are supported for each request.
400InvalidTaskId.MalformedThe count of taskIds should be 1.
400InvalidParametersThe parameters you provided are invalid.
400InvalidTimeThe query time cannot exceed the last 3 days.
429TooManyRequestsToo many requests, please try again later

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

Change history

Change timeSummary of changesOperation
2023-03-23The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 429