Docs
api
Cloud Delivery(UCDN)
RefreshNewUcdnDomainCache

Refresh Cache - RefreshNewUcdnDomainCache

Overview

Refresh Cache

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is RefreshNewUcdnDomainCache.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
TypestringRefresh type, ‘file’ represents file refresh, ‘dir’ represents path refresh, ‘m3u8’ represents m3u8 refresh.Yes
UrlList.NstringThe URL that needs to be refreshed, n starts from the natural number 0, when refreshing multiple URL lists, a maximum of 100 can be submitted at a time. It must start with ‘http://domain/‘. The directory should end with ’/’, for example, to refresh all files in directory a, the format is: http://abc.ucloud.cn/a/; 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.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=RefreshNewUcdnDomainCache
&ProjectId=CExXKOKn
&Type=file
&UrlList.n=JgkGaBpD
&IsDcdn=true

Response Example

{
  "Action": "RefreshNewUcdnDomainCacheResponse",
  "RetCode": 0,
  "TaskId": "rDPEYeEH"
}