Create Firewall
POST https://infrahub-api.nexgencloud.com/v1/core/firewalls
Creates a firewall to which firewall rules can be added. A firewall containing firewall rules can be attached to one or more virtual machines to control inbound and outbound traffic. In the body of the request, include the name of the firewall, the ID of the environment within which the firewall will be created, and an optional description. To obtain the ID of the environment, make a request to the list environments endpoint.
Request body parameters
name string
Required
Name of the firewall.
A string with a maximum length of 50 characters.
environment_id integer
Required
The ID of the environment within which your firewall will be created.
description string
optional
An optional description of the firewall.