Create a firewall rule
POST https://api-authenticator.iwelcome.com/v1/firewalls
Headers:
Authorization: Bearer {your application API Key}
Content-Type: application/json
type (enum) - 'ALLOW' or 'DENY' - Required.
ip_range (ip) - Optional.country (string) - Optional. Country code, min 2 and max 5 characters.region (string) - Optional. Region code, min 2 and max 5 characters.is_logged (boolean) - Optional. Enable logging for failed attempts. Default is
falseauth (JSON) - Optional. Settings from the mail provider in JSON format.check_source (boolean) - Optional. Used with target type devices to check the IP of the device & browser. Default is
falseentity_type (enum) - Optional. Available types are: 'ORGANIZATION',
APPLICATION, MOBILE
{
"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.