GET
/
security
/
resources
curl --request GET \
  --url https://api.gcore.com/security/resources \
  --header 'APIKey: <api-key>'
[
  {
    "id": 1,
    "name": "ddosprotection1.com",
    "active": true,
    "client": 2,
    "enabled": true,
    "created": "2017-12-01 09:54:46.441966+00:00",
    "updated": "2018-12-01 10:21:30.738663+00:00",
    "is_waf_enabled": false,
    "is_redirect_to_https_enabled": true,
    "status": "active",
    "service_id": 1,
    "service_ip": "1.2.3.4",
    "aliases": [
      {
        "id": 2,
        "alias_id": 2,
        "alias_data": "alias1.ddosprotection1.com",
        "alias_ssl_expire": 0
      },
      {
        "id": 1,
        "alias_id": 1,
        "alias_data": "alias2.ddosprotection1.com",
        "alias_ssl_expire": 0
      }
    ],
    "origins": [
      {
        "id": 1,
        "origin_id": 1,
        "origin_data": "4.3.2.1",
        "origin_weight": 50,
        "origin_mode": "primary"
      }
    ],
    "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
      }
    ],
    "blacklists": [
      {
        "id": 10,
        "blacklist_id": 10,
        "blacklist_data": "11.111.111.111"
      }
    ],
    "whitelists": [
      {
        "id": 10,
        "whitelist_id": 10,
        "whitelist_data": "11.111.111.110"
      }
    ],
    "service_https2http": 0,
    "service_http2": 0,
    "service_ssl_expire": 0,
    "service_iphash": 0,
    "service_enable": 1,
    "service_geoip_mode": 0,
    "service_geoip_list": "",
    "service_methods": "",
    "service_forcessl": 0,
    "service_wwwredir": 0,
    "service_cdn": 0,
    "service_cdn_host": "",
    "service_cdn_proxy_host": "",
    "service_stream": 0,
    "service_global_whitelist": 1
  }
]

Authorizations

APIKey
string
header
required

API key for authentication.

Response

200 - application/json

Successful.

The response is of type object.