[{"label":"Latest (6.4.0)","version":"latest"}]
vrealize-network-insight-api

Export NSX Recommended Rules

Description

Export recommended firewall rules based on the flow data gathered by vRealize Network Insight in NSX-V compatible format. The output will be a .zip file download.

Request

Request

URL

URL


post
https://vrni.example.com/api/ni/micro-seg/recommended-rules/nsx
Copy

Request Body

Request Body

RecommendedRulesRequest of type(s) application/json Optional

NSX Recommended Firewall Rules Request

{
	"group_1": {
		"entity": {
			"entity_id": "string",
			"entity_type": "VirtualMachine"
		}
	},
	"group_2": {
		"entity": {
			"entity_id": "string",
			"entity_type": "VirtualMachine"
		}
	},
	"include_external": false,
	"time_range": {
		"end_time": 1597247999,
		"start_time": 1597247025
	}
}
group_1 Optional

group_2 Optional

boolean
include_external Optional

When True, includes ungrouped endpoints outside defined scope


time_range Optional
Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK returns file of type(s) application/octet-stream
Errors

Errors

400

Bad Request


401

Unauthorized


500

Internal Error

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"group_1":{"entity":{"entity_id":"string","entity_type":"VirtualMachine"}},"group_2":{"entity":{"entity_id":"string","entity_type":"VirtualMachine"}},"include_external":false,"time_range":{"end_time":1597247999,"start_time":1597247025}}' https://vrni.example.com/api/ni/micro-seg/recommended-rules/nsx


[{"label":"Latest (6.4.0)","version":"latest"}]
vrealize-network-insight-api
Feedback

Was this page helpful?