List Recommended Rules
Get recommended firewall rules based on the flow data gathered by Operations for Networks. This API provides service to retrieve recommended rules based on flow traffic that is observed between two groups OR for a single group based on all the inbound and outboud traffic for that group. In case two groups are provided, both the groups should be of same type. Currently supported groups are Application, Tier, NSXSecurityGroup, EC2SecurityGroup.
Recommended Rules Request
{
"group_1": {
"entity": {
"entity_id": "string",
"entity_type": "VirtualMachine",
"entity_name": "string"
}
},
"group_2": {
"entity": {
"entity_id": "string",
"entity_type": "VirtualMachine",
"entity_name": "string"
}
},
"time_range": {
"start_time": 1597247025,
"end_time": 1597247999
},
"include_external": false
}
When True, includes ungrouped endpoints outside defined scope
Success
{
"results": [
{
"sources": [
{
"entity_id": "string",
"entity_type": "VirtualMachine",
"entity_name": "string"
}
],
"destinations": [
{
"entity_id": "string",
"entity_type": "VirtualMachine",
"entity_name": "string"
}
],
"protocols": [
"string"
],
"port_ranges": [
{
"start": 0,
"end": 0
}
],
"action": "string"
}
],
"time_range": {
"start_time": 1597247025,
"end_time": 1597247999
}
}
Bad Request
{
"code": 0,
"message": "string",
"details": [
{
"code": 0,
"message": "string",
"target": [
"string"
]
}
]
}
code
message
Unauthorized
Internal Error