Logo
API_DOC API Documentation

Create a rate policy

POST https://{{host}}/appsec/v1/configs/{{configId}}/versions/{{versionNumber}}/rate-policies

For more information on the JSON to modify these settings, visit: https://developer.akamai.com/api/cloud_security/application_security/v1.html#postratepolicies

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status





Curl
curl -X POST 'https://host/appsec/v1/configs/configId/versions/versionNumber/rate-policies' -H 'Content-Type: application/json' -d '{"matchType":"path","type":"WAF","name":"Test_Paths 2","description":"AFW Test Extensions","averageThreshold":5,"burstThreshold":10,"clientIdentifier":"ip","useXForwardForHeaders":true,"requestType":"ClientRequest","sameActionOnIpv6":false,"path":{"positiveMatch":true,"values":["/login/","/path/"]},"pathMatchType":"Custom","pathUriPositiveMatch":true,"fileExtensions":{"positiveMatch":false,"values":["3g2","3gp","aif","aiff","au","avi","bin","bmp","cab"]},"hostnames":["www.ludin.org"],"additionalMatchOptions":[{"positiveMatch":true,"type":"IpAddressCondition","values":["198.129.76.39"]},{"positiveMatch":true,"type":"RequestMethodCondition","values":["GET"]}],"queryParameters":[{"name":"productId","values":["BUB_12","SUSH_11"],"positiveMatch":true,"valueInRange":false}]}'

ENDPOINTS