NSX-T Data Center REST API

Delete the packet capture session by session id.

Before calling this method, terminate any running capture session.

Request:

Method:
DELETE
URI Path(s):
/policy/api/v1/infra/pktcap/session/{session-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

DELETE https://<nsx-mgr>/policy/api/v1/infra/pktcap/session/a257b981-1a1c-4b95-b16c-8646e85ce8f0

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
PktCaptureSession+

Example Response:

{ "request": { "node": "3e76be3a-12d9-4fb3-ae6e-3c78cb0dba4e", "capsource": "UI", "cappoint": "VMNIC", "capmode": "STANDALONE", "direction": "INPUT", "capvalue": "vmnic0", "capamount": 20000, "capduration": 600 }, "sessionid": "7ca02e64-646c-463d-838c-319c6c68f68c", "sessionname": "7ca02e64-646c-463d-838c-319c6c68f68c", "sessionstatus": "FINISHED", "starttime": 1763704945482, "endtime": 1763704947233, "_protection": "NOT_PROTECTED" }

Required Permissions:

crud

Feature:

tools_packet_capture

Additional Errors: