Docs
api
Cloud Delivery(UCDN)
Batch Refresh New Ucdn Domain Cache

[Deprecated] Batch Refresh Cache - BatchRefreshNewUcdnDomainCache

Overview

Batch Refresh Cache

💡 This interface is about to be deprecated, use RefreshNewUcdnDomainCache to refresh the cache.

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is BatchRefreshNewUcdnDomainCache.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, and the sub-account must be filled in. Please refer to the GetProjectList interface.No
TypestringRefresh type, ‘file’ represents file refresh, ‘dir’ represents path refresh.Yes
UrlListstringList of URLs to be refreshed, described in JSON format. When refreshing multiple URL lists, a maximum of 1000 can be submitted at a time. Each domain must start with “http://domain/“. Directories should end with ”/”, for example, to refresh all files in directory a, the format is: http://abc.ucloud.cn/a/; to refresh all img.png files in directory a, the format is http://abc.ucloud.cn/a/img.png. Please correctly submit the domain to be refreshed.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=BatchRefreshNewUcdnDomainCache
&ProjectId=xxxx
&Type=xYdynueZ
&UrlList.n=UqIHhRZT

Response Example

{
  "Action": "BatchRefreshNewUcdnDomainCacheResponse",
  "RetCode": 0,
  "TaskId": "nwyImnXy"
}