GET https://nsx_address/api/2.1/app/flow/flowstats?contextId={VM-ID}&flowType=TCP_UDP&startTime={start_time}&endTime={end_time}
GET https://{{nsxmanager}}/api/2.1/app/flow/flowstats?contextId=vm-42&flowType=TCP_UDP&startTime=1533130000&endTime=1533132230&pageSize=1024
"flowStatsTcpUdp": [
{
"startTime": 1651536000, <==== the returned start time
"endTime": 1533131815000, <==== the returned end time
"ruleId": 1001,
"blocked": 0,
"protocol": 6,
"direction": 2,
"sessions": 26,
"sourcePackets": 51,
"destinationPackets": 51,
"sourceBytes": 3060,
"destinationBytes": 4488,
"source": "192.168.1.20",
"destination": "192.168.1.11",
"destinationPort": 8080
},
VMware NSX Data Center for vSphere 6.x
This issue is resolved in VMware NSX Data Center for vSphere 6.4.2
Impact/Risks: