NSX-T Data Center REST API

Associated URIs:

API Description API Path

Create an new packet capture session


Create an new packet capture session on given node with specified options
POST /api/v1/pktcap/session

Get the status of packet capture session


Get the packet capture status information by session id.
GET /api/v1/pktcap/session/{session-id}

Restart the packet capture session


Restart the packet capture session
POST /api/v1/pktcap/session/{session-id}?action=restart

Delete the packet capture session by session id.


Before calling this method, terminate any running capture session.
POST /api/v1/pktcap/session/{session-id}?action=delete

Terminate the packet capture session by session id


Terminate the packet capture session by session id.
POST /api/v1/pktcap/session/{session-id}?action=terminate

Get packet capture file


You must provide the request header
"Accept:application/octet-stream" when calling this API.
The capture file can only be found in MP which receives the capture request.
GET /api/v1/pktcap/session/{session-id}/capturefile

Get the information of all packet capture sessions


Get the information of all packet capture sessions.
GET /api/v1/pktcap/sessions

Delete all the packet capture sessions


Delete all the packet capture sessions.
POST /api/v1/pktcap/sessions?action=delete