Management Plane API > Security > Services > Firewall

Create a firewall profile.

Create a firewall profile with values provided. It creates profile based
resource_type in the payload.

Request:

Method:
POST
URI Path(s):
/api/v1/firewall/profiles
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
FirewallCpuMemThresholdsProfile+
FirewallDnsProfile+
FirewallFloodProtectionProfile+
FirewallSessionTimerProfile+

Example Request:

POST https://<nsx-mgr>/api/v1/firewall/profiles { "resource_type": "FirewallSessionTimerProfile", "display_name": "Firewall SessionTimer Profile 01", "tcp_first_packet": 120, "tcp_opening": 30, "tcp_established": 43200, "tcp_closing": 900, "tcp_finwait": 20, "tcp_closed": 10, "udp_first_packet": 60, "udp_single": 30, "udp_multiple": 60, "icmp_first_packet": 20, "icmp_error_reply": 10 }

Successful Response:

Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
FirewallCpuMemThresholdsProfile+
FirewallDnsProfile+
FirewallFloodProtectionProfile+
FirewallSessionTimerProfile+

Example Response:

{ "resource_type": "FirewallSessionTimerProfile", "id": "7e5d3a8c-8aa8-4df6-9a0f-b0456575b233", "display_name": "Firewall SessionTimer Profile 01", "tcp_first_packet": 120, "tcp_opening": 30, "tcp_established": 43200, "tcp_closing": 900, "tcp_finwait": 20, "tcp_closed": 10, "udp_first_packet": 60, "udp_single": 30, "udp_multiple": 60, "icmp_first_packet": 20, "icmp_error_reply": 10, "_last_modified_user": "admin", "_last_modified_time": 1463555187453, "_revision": 0 }

Required Permissions:

crud

Feature:

firewall_general

Additional Errors: