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.
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: |
| 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; |
| 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. |
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.
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"
}
{
"Response": {
"RequestId": "591c01a2-af21-4c09-af23-8f7d96832d01"
}
}
Delete the limit of cn2.test-***a.online.
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"
}
{
"Response": {
"RequestId": "67a3d9f3-b852-4f6e-af7d-cc66ebc4fb08"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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. |
피드백