Get Rate Limit
Retrieve rate limit for website acceleration service.
Request
Request-Line
GET /waap/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 | Required | Description |
|---|---|---|---|
| timeFrame | Integer | Optional | Time to apply the limit (in seconds). |
| reqLimit | Integer | Optional | The maximum number of requests allowed from the same user IP within the specified time frame. |
| ignorePath | Boolean | Optional | Ignore URLs, apply a single limit for all URLs from the same user IP. |
| ignoreQuery | Boolean | Optional | Ignore Query String when counting requests. |
Status Codes, Error Codes and Error Messages
| Status Code | Error Code | Error Message |
|---|---|---|
| 400 | ServiceId.Invalid | ServiceId is empty or invalid. |
| 400 | RateLimit.OperationFailed | The rate limit operation failed. |
| 404 | ServiceId.NotFound | ServiceId is not found. |
Examples
Get Rate Limit
Request
GET /waap/v1.0/services/12345/rateLimit HTTP/1.1
Successful Response Body
{
"timeFrame": 60,
"reqLimit": 100,
"ignorePath": true,
"ignoreQuery": true
}