Body
application/json
curl --request POST \
--url https://api.___serverhost___/security/resources \
--header 'Content-Type: application/json' \
--data '{
"name": "ddosprotection1.com",
"aliases": [
{
"alias_data": "alias1.ddosprotection1.com"
}
],
"origins": [
{
"origin_data": "4.3.2.1"
}
],
"rate_limier_rules": [
{
"method": "GET",
"path": "helloworld",
"value": 2
},
{
"method": "POST",
"path": "api",
"value": 10,
"test_cookie": false
},
{
"method": "GET",
"path": "docs",
"value": 10,
"test_cookie": false
}
],
"is_waf_enabled": false
}'
curl --request POST \
--url https://api.___serverhost___/security/resources \
--header 'Content-Type: application/json' \
--data '{
"name": "ddosprotection1.com",
"aliases": [
{
"alias_data": "alias1.ddosprotection1.com"
}
],
"origins": [
{
"origin_data": "4.3.2.1"
}
],
"rate_limier_rules": [
{
"method": "GET",
"path": "helloworld",
"value": 2
},
{
"method": "POST",
"path": "api",
"value": 10,
"test_cookie": false
},
{
"method": "GET",
"path": "docs",
"value": 10,
"test_cookie": false
}
],
"is_waf_enabled": false
}'
Was this page helpful?