Refresh Cache - RefreshNewUcdnDomainCache
Overview
Refresh Cache
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is RefreshNewUcdnDomainCache . | Yes |
PublicKey | string | The user's public key can be obtained from Console (opens in a new tab) | 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 |
Type | string | Refresh type, 'file' represents file refresh, 'dir' represents path refresh, 'm3u8' represents m3u8 refresh. | Yes |
UrlList.N | string | The 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/ (opens in a new tab)'. The directory 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 the img.png file in directory a, the format is http://abc.ucloud.cn/a/img.png (opens in a new tab). Please correctly submit the domain name that needs to be refreshed. | 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.surfercloud.com/?Action=RefreshNewUcdnDomainCache
&ProjectId=CExXKOKn
&Type=file
&UrlList.n=JgkGaBpD
&IsDcdn=true
Response Example
{
"Action": "RefreshNewUcdnDomainCacheResponse",
"RetCode": 0,
"TaskId": "rDPEYeEH"
}