GET
/
resources
/
{resource_id}
Get Resource
curl --request GET \
  --url https://api.___serverhost___/security/resources/{resource_id}
{
  "id": 1,
  "name": "ddosprotection1.com",
  "active": true,
  "client": 2,
  "enabled": true,
  "created": "2017-12-01T09:54:46.441Z",
  "updated": "2018-12-01T10:21:30.738Z",
  "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_botprotect": 0,
  "service_hsts": 0,
  "service_waf": "0",
  "service_client_id": 2,
  "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
}

Path Parameters

resource_id
integer
required

Resource ID.

Response

200 - application

Successful.

The response is of type object.