Get Rate Limit
The API is used to retrieve the rate limit configuration for a website acceleration service.
Request
Request-Line
GET /cdn/v1.0/services/{serviceId}/rateLimit HTTP/1.1
Request Parameters
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceId | Integer | Mandatory | The unique identifier of the service. |
Response
Response Body
| Parameter | Type | Description |
|---|---|---|
| timeWindow | Integer | Time window for rate limiting (in seconds). |
| requestLimit | Integer | Maximum number of requests allowed from the same client IP within the specified time window. |
| ignoreUrlPath | Boolean | Ignore URLs, apply a single limit for all URLs from the same user IP. Default is false. |
| ignoreQueryString | Boolean | Ignore Query String when counting requests. Default is false. |
Status Codes, Error Codes and Error Messages
| Status Code | Error Code | Error Message |
|---|---|---|
| 400 | InvalidCustomer.IdEmpty | Customer ID cannot be empty or invalid. |
| 400 | InvalidService.IdIncorrect | Service ID is empty or invalid. |
| 400 | InvalidService.IdPermission | Service ID cannot be found or unknown. |
Examples
Get Rate Limit
Request
GET /cdn/v1.0/services/228672/rateLimit HTTP/1.1
Successful Response Body
{
"timeWindow": 30,
"requestLimit": 50,
"ignoreUrlPath": true,
"ignoreQueryString": true
}