tencent cloud

APIs

ModifyPrefetchOriginLimit

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-11-25 17:00:01

1. API Description

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

This API is used to configure origin-pull rate limiting. This feature is in allowlist beta test.
This API is used to create, modify, and delete preheated origin-pull rate limits. Each account supports up to 100 limits.

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: ModifyPrefetchOriginLimit.
Version Yes String Common Params. The value used for this API: 2022-09-01.
Region No String Common Params. This parameter is not required.
ZoneId Yes String Zone ID.
DomainName Yes String Acceleration domain name.
Area Yes String Acceleration region restricted by origin-pull rate limiting.
During preheating, the acceleration region will be subject to the configured Bandwidth value limit. Valid values:
  • Overseas: global availability zone (excluding the Chinese mainland);
  • MainlandChina: Chinese mainland availability zone.
  • Bandwidth Yes Integer Origin-pull bandwidth limit.
    Upper limit of bandwidth for returning to the origin during preheating. Value range: 100-100,000. Unit: Mbps.
    Enabled Yes String Origin-pull rate limiting control switch.
    Used to enable/delete this origin-pull speed limit. Valid values:
  • on: Enable restriction;
  • off: Delete restriction.
  • 3. Output Parameters

    Parameter Name Type Description
    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 Creating an Origin-Pull Bandwidth Limit

    Create an origin-pull bandwidth limit for preheating cn2.test-***a.online, with the preheated global availability zone (excluding Chinese mainland) acceleration region configured at 100 Mbps.

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: ModifyPrefetchOriginLimit
    <Common request parameters>
    
    {
        "ZoneId": "zone-3***j8tqd",
        "DomainName": "cn2.test-***a.online",
        "Area": "Overseas",
        "Bandwidth": 100,
        "Enabled": "on"
    }

    Output Example

    {
        "Response": {
            "RequestId": "591c01a2-af21-4c09-af23-8f7d96832d01"
        }
    }

    Example2 Delete the origin-pull bandwidth limit

    Delete the limit of cn2.test-***a.online.

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: ModifyPrefetchOriginLimit
    <Common request parameters>
    
    {
        "ZoneId": "zone-3***j8tqd",
        "DomainName": "cn2.test-***a.online",
        "Area": "Overseas",
        "Bandwidth": 100,
        "Enabled": "off"
    }

    Output Example

    {
        "Response": {
            "RequestId": "67a3d9f3-b852-4f6e-af7d-cc66ebc4fb08"
        }
    }

    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 Operation failed.
    FailedOperation.CreatePrefetchOriginLimitFailed Failed to create the preheated origin-pull rate limiting configuration. Try again later or submit a ticket.
    FailedOperation.PrefetchOriginLimitCountExceeded Exceeded the quantity limit. Unable to create more. Delete unnecessary configurations or submit a request to elevate the quantity limit.
    FailedOperation.PrefetchOriginLimitNotFound The corresponding preheated origin-pull rate limiting configuration was not found. Please confirm whether the configuration exists and try again.
    InternalError.BackendError Error in background processing.
    InternalError.DomainConfig Failed to get configuration.
    InvalidParameter Parameter error.
    InvalidParameter.DomainAreaNotSupportPrefetchOriginLimitArea Domain Acceleration Region: the preheated origin-pull rate limiting region configuration is not supported. Adjust it and resubmit.
    InvalidParameter.DomainNotFound The domain name does not exist or does not belong to this account.
    InvalidParameter.PrefetchOriginLimitAreaInvalid The preheated origin-pull rate limiting region parameter is invalid. Adjust the region and resubmit.
    InvalidParameter.PrefetchOriginLimitBandwidthTooLarge The preheated origin-pull rate limiting bandwidth value is too large. Adjust it and resubmit.
    InvalidParameter.PrefetchOriginLimitBandwidthTooSmall The preheated origin-pull rate limiting bandwidth value is too low. Adjust it and resubmit.
    InvalidParameter.PrefetchOriginLimitEnabledInvalid The preheated origin-pull rate limiting control switch parameter is invalid. Adjust the region and resubmit.
    InvalidParameter.ZoneAreaNotSupportPrefetchOriginLimitArea Site acceleration region: preheating origin-pull rate limiting is not supported for this regional configuration. Adjust it and resubmit.
    OperationDenied.NotInPrefetchOriginLimitWhiteList Not in the preheated origin-pull rate limiting configuration allowlist. Submit a ticket.
    ResourceInUse.PrefetchOriginLimitAlreadyExists The preheated origin-pull rate limiting configuration already exists and cannot be recreated. Please check whether the corresponding configuration has been created.
    UnauthorizedOperation.CamUnauthorized Unauthorized Cam operation.
    UnauthorizedOperation.NoPermission The sub-account does not have operation permissions. Add the required permissions and try again.
    UnauthorizedOperation.Unknown Unknown error occurs on the real server.

    Bantuan dan Dukungan

    Apakah halaman ini membantu?

    masukan