Submit prefetch task - PrefetchNewUcdnDomainCache
Overview
Submit prefetch task
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is PrefetchNewUcdnDomainCache . | Yes |
PublicKey | string | The user’s public key can be obtained from Console | Yes |
Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
ProjectId | string | Project ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface. | No |
UrlList.N | string | Preheat 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 Name | Type | Description Information | Required |
---|---|---|---|
RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
Action | string | Operation command name. | Yes |
Message | string | Returns an error message, providing detailed description when RetCode is non-zero. | No |
TaskId | string | The task id corresponding to the submitted url | No |
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"
}