POST
/
security
/
resources
curl --request POST \
  --url https://api.gcore.com/security/resources \
  --header 'APIKey: <api-key>' \
  --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
}'

Authorizations

APIKey
string
header
required

API key for authentication.

Body

application/json