tencent cloud

Feedback

DescribePurgeQuota

Last updated: 2022-02-23 10:16:38

1. API Description

Domain name for API request: ecdn.tencentcloudapi.com.

This API is used to query the usage quota of the purge API.

Note:

If you have migrated your ECDN service to CDN, you can use the corresponding CDN API.

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.
This document describes the parameters for Signature V1. It's recommended to use the V3 signature, which provides higher security. Note that for Signature V3, the common parameters need to be placed in the HTTP Header. See details.

Parameter Name Required Type Description
Action Yes String Common parameter. The value used for this API: DescribePurgeQuota.
Version Yes String Common parameter. The value used for this API: 2019-10-12.
Region No String Common parameter. This parameter is not required for this API.

3. Output Parameters

Parameter Name Type Description
UrlPurge Quota URL purge usage and quota.
PathPurge Quota Directory purge usage and quota.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 DescribePurgeQuota

Input Example

https://ecdn.tencentcloudapi.com/?Action=DescribePurgeQuota
&<Common request parameters>

Output Example

{
  "Response": {
    "RequestId": "6f5a231e-f629-42fa-a9f0-5a9ebc127c04",
    "UrlPurge": {
      "Batch": 1000,
      "Total": 10000,
      "Available": 10000
    },
    "PathPurge": {
      "Batch": 20,
      "Total": 100,
      "Available": 100
    }
  }
}

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
FailedOperation.EcdnConfigError Failed to update the domain name configuration. Please try again or contact customer service for assistance.
InternalError.EcdnSystemError System error. Please submit a ticket for troubleshooting.
InvalidParameter.EcdnInterfaceError Internal API error. Please submit a ticket for troubleshooting.
InvalidParameter.EcdnParamError Parameter error. Please see the sample parameters in the documentation.
ResourceNotFound.EcdnDomainNotExists This domain name does not exist under the account. Please check and try again.
ResourceNotFound.EcdnUserNotExists The ECDN service has not been activated. Please activate it first before using this API.
UnauthorizedOperation.EcdnCamUnauthorized No CAM policy is configured for the sub-account.
UnauthorizedOperation.EcdnMigratedCdn Please go to the CDN console for operation.
UnauthorizedOperation.EcdnUserIsSuspended The acceleration service has been suspended. Please restart it and try again.