Get Group Flow Connections
Returns a paginated list of flow records between a specific pair of groups. Flows are first deduplicated by the 4-tuple of source VM, destination VM, destination port, and protocol. Each unique flow is then expanded across the cross-product of source and destination group memberships -- only rows where the source group matches source_id and the destination group matches destination_id are returned.
Notes:
start_time,src_site_id,dst_site_id,source_id, anddestination_idare all required.source_idanddestination_idare the NSX group realization UUIDs. Obtain them fromPOST /visualization/topology/groups-flow-topology.src_site_idanddst_site_idscope the query to the source and destination sites. For intra-site flows, set both to the same site ID.- Set
bidirectionaltotrueto include flows in both directions. Defaults tofalse(source -> destination only). filtersaccepts up to 300 filter entries.- To check whether any flows exist between two groups before fetching full details, use the lightweight
POST /visualization/flow-analysis/group-connections/flow-typeendpoint first.
Wrapper request for GroupConnections with restricted filter keys
{
"start_time": 1782170399106,
"page_size": 50,
"offset": 0,
"source_id": "2368d02d-bf5a-4920-b869-719c366d3864",
"destination_id": "7b321641-2beb-44f6-9181-7f8a4b4d94a0",
"bidirectional": true,
"src_site_id": "17f7c7e5-7f8c-490a-97e9-b9c9193c45e1",
"dst_site_id": "17f7c7e5-7f8c-490a-97e9-b9c9193c45e1"
}
success
{
"offset": 0,
"number_of_results": 24,
"total_result_count": 24,
"total_pages": 1,
"time_interval": {
"start_time": 1782170399106,
"end_time": 1782171906524
},
"results": [
{
"source": {
"groups": [
{
"id": "7b321641-2beb-44f6-9181-7f8a4b4d94a0",
"display_name": "R1_Z1_env11_app61_T1",
"reference_id": "/infra/domains/default/groups/bb421784-ef8a-344f-b9d2-b72556afa076"
}
],
"compute": {
"entity_type": "COMPUTE",
"compute_type": "VM",
"id": "503beb13-6b17-13c4-2ad8-4ef19e111de9",
"reference_id": "503beb13-6b17-13c4-2ad8-4ef19e111de9",
"name": "nano_vm1_clone_7560",
"config_events": [],
"highlight": false
},
"apps": [],
"flow_type": "UN_MICROSEGMENTED",
"rules": [
{
"id": "2"
}
],
"jump_to_rules": []
},
"destination": {
"groups": [
{
"id": "2368d02d-bf5a-4920-b869-719c366d3864",
"display_name": "R1_Z1_env32",
"reference_id": "/infra/domains/default/groups/25c93e59-e9c4-3be9-818b-8498548da8c9"
}
],
"compute": {
"entity_type": "COMPUTE",
"compute_type": "VM",
"id": "503bb635-b47e-87e3-0a29-2d9896ad6cad",
"reference_id": "503bb635-b47e-87e3-0a29-2d9896ad6cad",
"name": "nano_vm1_clone_1681",
"config_events": [],
"highlight": false
},
"apps": [],
"configured_services": [
"Service-TCP-20"
],
"protocol": "TCP",
"port": 20,
"flow_type": "UN_MICROSEGMENTED",
"rules": [
{
"id": "2"
}
],
"jump_to_rules": []
},
"flow_info": {
"last_session_start_time": 1782171247,
"last_session_end_time": 1782171324,
"flow_type": "UN_MICROSEGMENTED",
"is_active": false
}
},
{
"source": {
"groups": [
{
"id": "7b321641-2beb-44f6-9181-7f8a4b4d94a0",
"display_name": "R1_Z1_env11_app61_T1",
"reference_id": "/infra/domains/default/groups/bb421784-ef8a-344f-b9d2-b72556afa076"
}
],
"compute": {
"entity_type": "COMPUTE",
"compute_type": "VM",
"id": "503b7ac7-9607-93bb-be67-78fd60fe1f58",
"reference_id": "503b7ac7-9607-93bb-be67-78fd60fe1f58",
"name": "nano_vm5_clone_7568",
"config_events": [],
"highlight": false
},
"apps": [],
"flow_type": "ALLOWED",
"rules": [
{
"id": "2"
}
],
"jump_to_rules": [
{
"id": "196673"
}
]
},
"destination": {
"groups": [
{
"id": "2368d02d-bf5a-4920-b869-719c366d3864",
"display_name": "R1_Z1_env32",
"reference_id": "/infra/domains/default/groups/25c93e59-e9c4-3be9-818b-8498548da8c9"
}
],
"compute": {
"entity_type": "COMPUTE",
"compute_type": "VM",
"id": "503b886b-0640-8a75-a2ef-1a2ed98022cc",
"reference_id": "503b886b-0640-8a75-a2ef-1a2ed98022cc",
"name": "nano_vm7_clone_5856",
"config_events": [],
"highlight": false
},
"apps": [],
"configured_services": [
"SSH",
"vCentre Operations Standard 1.x",
"vCentre Operations Manager (vApp) 5.x"
],
"protocol": "TCP",
"port": 22,
"flow_type": "ALLOWED",
"rules": [
{
"id": "2"
}
],
"jump_to_rules": [
{
"id": "196673"
}
]
},
"flow_info": {
"last_session_start_time": 1782171364,
"last_session_end_time": 1782171336,
"flow_type": "ALLOWED",
"is_active": false
}
}
]
}
Bad Request
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Unauthorized
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Forbidden
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Failed
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Required
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Too Many Requests
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Error
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/intelligence/visualization/flow-analysis/group-connections