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 Console (opens in a new tab)Yes
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/ (opens in a new tab)". Directories should end with "/", for example, to refresh all files in directory a, the format is: http://abc.ucloud.cn/a/ (opens in a new tab); to refresh all img.png files in directory a, the format is http://abc.ucloud.cn/a/img.png (opens in a new tab). 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.surfercloud.com/?Action=BatchRefreshNewUcdnDomainCache
&ProjectId=xxxx
&Type=xYdynueZ
&UrlList.n=UqIHhRZT

Response Example

{
  "Action": "BatchRefreshNewUcdnDomainCacheResponse",
  "RetCode": 0,
  "TaskId": "nwyImnXy"
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved