List Prefetches

This API is used to list url prefetches under website accleration domain or filedownload service.

1. Request Definition

  • API URL
https://cdn-api.swiftfederation.com/v1.1/services/{serviceId}/prefetches  
https://cdn-api.swiftfederation.com/v1.1/services/{serviceId}/prefetches?page={page}
  • Request Method
GET
  • Request Header

Refer to HTTP Request Headers

  • Request Parameter

Request Parameter Data Format: HTTP URL Param or Query String

Field Required Type Description
page Optional int Page number for listing prefetches, default is 1. Page size is 50 request urls.
  • Request Parameter Example
page=1


2. Response Definition

  • Response Header

Refer to HTTP Response Headers

  • Response Body
Field Type Description
totalPages int Total pages of prefetch urls, page size is 50 request urls.
page int Current page of listing prefetch urls.
urls PrefetchURL[] List of prefetch url with id, serviceId, created time and status.
PrefetchURL Definition
id string UUID of prefetch URL request.
serviceId long Service id of prefetch url, it is domain or file download serivce id.
url string Full prefetch URL request.
created string Time of prefetch url request created in iso8601 format.
status string Shows the progress of prefetch. Could be "COMPLETE"/"FAILED"/"PENDING".
  • Response Body Example
{
    "totalPages": 2,
    "page": 1,
    "urls": [
        {
            "id": "uuid123",
            "serviceId": 10000,
            "url": "https://cdn.example1.com/resources/load.js?v=1.2.0",
            "created": "2018-01-31T10:30:57Z",
            "status": "COMPLETE"
        },
        {
            "id": "uuid124",
            "serviceId": 10000,
            "url": "https://cdn.example1.com/resources/load2.js?v=1.2.0",
            "created": "2018-01-31T10:30:58Z",
            "status": "COMPLETE"
        },
        {
            "id": "uuid125",
            "serviceId": 10000,
            "url": "https://cdn.example1.com/resources/load3.js?v=1.2.0",
            "created": "2018-01-31T10:30:59Z",
            "status": "COMPLETE"
        }
    ]
}
© 2019 Conversant Solutions Pte Ltd. All rights reserved.            Updated 2019-06-06 10:11:13

results matching ""

    No results matching ""