Docs
api
Cloud Delivery(UCDN)
PrefetchNewUcdnDomainCache

Submit prefetch task - PrefetchNewUcdnDomainCache

Overview

Submit prefetch task

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is PrefetchNewUcdnDomainCache.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
UrlList.NstringPreheat the URL list, where n starts from the natural number 0. The UrlList.n field must start with “http://domain/“. For example, to refresh the img.png file in directory a, the format is http://abc.ucloud.cn/a/img.png. Please correctly submit the domain name that needs to be refreshed. You can submit 1000 at a time, and it should be called at least every 10 seconds.Yes

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
TaskIdstringThe task id corresponding to the submitted urlNo

Example

Request Example

https://api.dezai.com/?Action=PrefetchNewUcdnDomainCache
&ProjectId=xxxxx
&UrlList.0=http://abc.ucloud.cn/a/1.apk
&UrlList.1=http://abc.ucloud.cn/a/2.apk
&IsDcdn=false

Response Example

{
  "Action": "PrefetchNewUcdnDomainCacheResponse",
  "RetCode": 0,
  "TaskId": "IhrznXRB"
}