Skip to main content

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

ParameterTypeRequiredDescription
serviceIdIntegerMandatoryService ID.

Response

Response Body

ParameterTypeDescription
timeWindowIntegerTime to apply the limit (in seconds).
requestLimitIntegerThe maximum number of requests allowed from the same user IP within the specified time frame.
ignoreUrlPathBooleanIgnore URLs, apply a single limit for all URLs from the same user IP. Default is false.
ignoreQueryStringBooleanIgnore Query String when counting requests. Default is false.

Status Codes, Error Codes and Error Messages

Status CodeError CodeError Message
400InvalidCustomer.IdEmptyCustomer id can be empty or invalid.
400InvalidService.IdIncorrectService id is empty or invalid.
400ServiceId.IdPermissionServiceId 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
}