API Reference

Learn how to access UNLOQ end points

POST /firewalls/:id/target

Create firewall target for a given rule

POST https://api.unloq.io/v1/firewalls/:id/target
Headers:
   Authorization: Bearer {your application API Key}
URL parameters
  • id (string, required) - The rule id.
Body parameters
  • target_type (enum) - Required. Available options are: 'ALL', 'DEVICE', 'API_KEY', 'TOKEN_KEY', 'APPROVAL', 'AUTHENTICATION', 'AUTHORIZATION', 'ENCRYPTION_KEY'.
Result format (200 OK)
{
  "type": "api.application.firewall.create",
  "result": {
    "id": "12345678",
    "type": "ALLOW",
    "is_logged": false,
    "entity_type": "APPLICATION",
    "entity_id": "1234",
    "account_id": "123",
    "country": {
      "code": "US",
      "name": "United States"
    },
    "created_at": "2016-11-17T13:31:08.000Z"
  }
}
      

Have a question? You can always send us an email at support@unloq.io, or contact us on chat.

For security related concerns, please visit our Security page.