All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

GetRefreshOrPreloadQuota

Last updated:2021-03-17 11:09:08

GetRefreshOrPreloadQuota

Description

You can call this operation to query the maximum number of URLs and directories that you can refresh or prefetch, and the remaining number of URLs and directories you can refresh and prefetch on the current day.

  • Note:
    • Kingsoft Cloud CDN provides the RefreshCaches and PreloadCaches operations to refresh and prefetch content.
  • Limits:
    • This operation supports only the POST request method.

Request syntax

The API request contains the specified directory /2016-09-01/content/GetRefreshOrPreloadQuota, common request headers, and operation-specific request parameters. For more information, see the sample request.

Response parameters

Parameter Type Description
RefreshUrlQuota Long The maximum number of file URLs that you can refresh.
RefreshDirQuota Long The maximum number of directory URLs that you can refresh.
PreloadUrlQuota Long The maximum number of URLs that you can prefetch.
RefreshUrlSurplus Long The remaining number of file URLs that you can refresh on the current day.
RefreshDirSurplus Long The remaining number of directory URLs that you can refresh on the current day.
PreloadUrlSurplus Long The remaining number of URLs you can prefetch on the current day.

Examples

Sample request

POST method:

POST /2016-09-01/content/GetRefreshOrPreloadQuota
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
X-Action: GetRefreshOrPreloadQuota
X-Version: 2016-09-01

{
}

Sample response

{
  "RefreshUrlQuota": 555,
  "RefreshDirQuota": 100,
  "PreloadUrlQuota": 36,
  "RefreshUrlSurplus": 55,
  "RefreshDirSurplus": 55,
  "PreloadUrlSurplus": 55
}

Error codes

To help you quickly locate issues, Kingsoft Cloud CDN summarizes the error codes. For more information, see Usage notes.

On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback