tencent cloud

Content Delivery Network

動向とお知らせ
製品アップデート情報
初心者ガイド
製品の説明
製品概要
製品の優位性
ユースケース
基本概念
使用制限
CDN性能説明(サンプリング)
購入ガイド
CDN 購入ガイド
クイックスタート
ゼロから始めるCDNの設定
ドメイン名のアクセス
CNAMEの設定
ドメイン名所有権の検証
ドメイン名アクセスに関するよくあるご質問
設定ガイド
ドメイン名管理
ドメイン名の設定
統計分析
更新予熱
ログサービス
サービスクエリー
オフラインキャッシュ
権限管理
権限設定
コンソールの権限に関する説明
サブアカウントまたはコラボレーターでリアルタイムログをアクティブ化する方法
プラクティスチュートリアル
CDN - CVM
CDN - COS
DNSPodクイック設定CNAME
APIドキュメン
History
Introduction
API Category
Content Management APIs
Real-time Log APIs
Service Query APIs
Data Query APIs
Making API Requests
Log Query APIs
StopCdnDomain
Configuration Management APIs
Obsoleted APIs
Other APIs
Data Types
Error Codes
よくある質問
機能特性に関する問題
課金に関する問題
ドメイン名アクセスの問題
キャッシュ設定の質問
更新とプリフェッチの質問
統計分析に関する問題
HTTPSに関してよくある質問
ノードネットワークの問題
障害に関する質問
障害処理
ステータスコードの説明と推奨する対処方法
異なるノードキャッシュのコンテンツが不一致
CDNにアクセスすると、ウェブページのアクセス速度が遅くなります
トラフィックのヒット率が低い場合
CDNドメイン名に突然、404エラーが発生しました
ページ表示の異常-アクセスクロスドメインエラー
リソースキャッシュは有効化されていません
用語集

PurgeUrlsCache

PDF
フォーカスモード
フォントサイズ
最終更新日: 2025-09-18 22:41:18

1. API Description

Domain name for API request: cdn.intl.tencentcloudapi.com.

This API is used to submit multiple URL purge tasks, which are carried out according to the current acceleration region of the domain names in the URLs.
By default, a maximum of 10,000 URLs can be purged per day for acceleration regions either within or outside Mainland China, and up to 1,000 tasks can be submitted at a time.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: PurgeUrlsCache.
Version Yes String Common Params. The value used for this API: 2018-06-06.
Region No String Common Params. This parameter is not required for this API.
Urls.N Yes Array of String List of URLs. The protocol header such as "http://" or "https://" needs to be included.
Area No String Purging region
The acceleration region of the acceleration domain name will be purged if this parameter is not passed in.
If mainland is passed in, only the content cached on nodes in the Chinese mainland will be purged.
If overseas is passed in, only the content cached on nodes outside the Chinese mainland will be purged.
The specified purging region should match the domain name acceleration region.
UrlEncode No Boolean Whether to encode Chinese characters for purge

3. Output Parameters

Parameter Name Type Description
TaskId String Purge task ID. URLs submitted in one request share a task ID.
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Submitting a URL purge task

Input Example

https://cdn.intl.tencentcloudapi.com/?Action=PurgeUrlsCache
&Urls.0=http://www.test.com/1.jpg
&<Common request parameters>

Output Example

{
    "Response": {
        "RequestId": "4d5a83f8-a61f-445b-8036-5636be640bef",
        "TaskId": "1533045796-i60rfmzm"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
AuthFailure.InvalidAuthorization Authentication error. Please check and try again.
InternalError.CamSystemError Authentication system internal error.
InternalError.CdnConfigError Failed to update the domain name configuration.
InternalError.CdnDbError Internal data error. Please submit a ticket for troubleshooting.
InternalError.CdnQueryParamError Internal error. Please try again or contact the customer service for assistance.
InternalError.CdnQuerySystemError Internal error. Please try again or contact the customer service for assistance.
InternalError.CdnSystemError System error. Please submit a ticket for troubleshooting.
InternalError.Error Service internal error. Please submit a ticket for troubleshooting.
InternalError.ProxyServer Internal service error. Please submit a ticket for troubleshooting.
InternalError.RouteError Internal service error. Please submit a ticket for troubleshooting.
InternalError.UnknownError Internal service error. Please submit a ticket for troubleshooting.
InvalidParameter.CdnHostInvalidStatus Invalid domain name status.
InvalidParameter.CdnInterfaceError Internal API error. Please submit a ticket for troubleshooting.
InvalidParameter.CdnParamError Parameter error. Please see the sample parameters in the documentation.
InvalidParameter.CdnPurgeWildcardNotAllowed Cache purge does not support wildcard domain names.
InvalidParameter.CdnStatInvalidDate Invalid date. Please see the sample date in the documentation.
InvalidParameter.CdnUrlExceedLength The URL exceeds the length limit.
LimitExceeded.CdnPurgeExceedBatchLimit The number of refreshed URLs exceeds the per-batch submission limit.
LimitExceeded.CdnPurgeExceedDayLimit The number of refreshed URLs exceeds the daily quota.
LimitExceeded.CdnPurgeUrlExceedBatchLimit The number of URLs to be purged exceeds the limit.
LimitExceeded.CdnPurgeUrlExceedDayLimit The number of URLs to be purged exceeds the daily limit.
ResourceNotFound.CdnHostNotExists Unable to find the domain name. Please make sure the domain name is correct.
ResourceNotFound.CdnUserNotExists The CDN service has not been activated. Please activate it first before using this API.
ResourceUnavailable.CdnHostIsNotOnline The domain name has been deactivated. Prefetch requests cannot be submitted.
UnauthorizedOperation.CdnCamUnauthorized No CAM policy is configured for the sub-account.
UnauthorizedOperation.CdnHostUnauthorized The sub-account has no access to the CDN-accelerated domain name.
UnauthorizedOperation.CdnUserAuthFail Fail to authenticate the CDN user.
UnauthorizedOperation.CdnUserAuthWait The CDN user is pending authentication.
UnauthorizedOperation.CdnUserIsSuspended The CDN service has been suspended. Please restart it and try again.
UnauthorizedOperation.EcdnMigratedCdn Please go to the CDN console for operation.
UnauthorizedOperation.OpNoAuth This operation is not supported currently. Please submit a ticket for assistance.
UnauthorizedOperation.OperationTooOften Too many calling attempts.

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック