Skip to navigation
IP Firewall ProfileCreate an IP firewall profile

Create an IP firewall profile

Beta

Required permissions Beta Learn more

IpFirewallProfile + Create

Roles: Administrator

Creates a new IP firewall profile.

The provided profile content is validated before creation. Rules use a line-oriented text format: <ACTION> <PROTOCOL> <DIRECTION> <ADDRESS...> [PORTS:...] [# COMMENT]. Only rules with OUT are enforced. Rules are evaluated top to bottom, and the first matching rule wins. If no rule matches, traffic is denied by default.

Use the dry_run query parameter to validate the profile without persisting it.

Authentication

AuthorizationBearer

An auth_token should be provided to authenticate a session.

To obtain an auth_token, see the /api/v1/authenticate POST request.

Query parameters

dry_runbooleanOptionalDefaults to false

When set to true, validates the profile rules without creating the profile. Returns validation results only.

Request

This endpoint expects an object.
namestringRequired
Name of the IP firewall profile.
profilestringRequired

Firewall rules in line-oriented text format, one rule per line. Each rule follows the syntax: <ACTION> <PROTOCOL> <DIRECTION> <ADDRESS...> [PORTS:...] [# comment].

descriptionstringOptional
Description of the IP firewall profile.
profile_file_namestringOptional
Original file name of the uploaded profile.

Response

Dry-run validation only (dry_run=true and validation succeeded)

validation_issuesobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
422
Unprocessable Entity Error