Get Rate Limit
Retrieves rate limit for 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 | Service ID. |
Response
Response Body
| Parameter | Type | Description |
|---|---|---|
| timeWindow | Integer | Time to apply the limit (in seconds). |
| requestLimit | Integer | The maximum number of requests allowed from the same user IP within the specified time frame. |
| 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 can be empty or invalid. |
| 400 | InvalidService.IdIncorrect | Service id is empty or invalid. |
| 400 | ServiceId.IdPermission | ServiceId can not 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
}