Read Packet Capture Session

Read Packet Capture Session

Get the packet capture status information by session id.

Request
URI
GET
https://nsxmanager.your.domain/api/v1/pktcap/session/{session-id}
COPY
Path Parameters
string
session-id
Required

Packet capture session id


Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns PacketCaptureSession of type(s) application/json
{
    "sessionid": "string",
    "filelocation": "string",
    "filesize": 0,
    "sessionname": "string",
    "errormsg": "string",
    "endtime": 0,
    "request": {
        "node": "string",
        "cappoint": "string",
        "capduration": 0,
        "capamount": 0,
        "capsource": "string",
        "filtertype": "string",
        "direction": "string",
        "capfilesize": 0,
        "options": {
            "values": [
                {
                    "name": "string",
                    "value": "string"
                }
            ]
        },
        "streamport": 0,
        "caprate": 0,
        "capvalue": "string",
        "streamaddress": "string",
        "capmode": "string"
    },
    "starttime": 0,
    "sessionstatus": "string"
}
string
sessionid
Required

Packet capture session id

string
filelocation
Optional

Packet capture file location

integer As int32 As int32
filesize
Optional

Packet capture file Size in bytes

string
sessionname
Optional

Packet capture session name

string
errormsg
Optional

Error messasge in capture

integer As int64 As int64
endtime
Optional

Timestamp when session was stopped in epoch millisecond

request
Required

request

integer As int64 As int64
starttime
Optional

Timestamp when session was created in epoch millisecond

string
sessionstatus
Required

Packet capture session status

Possible values are : CREATED, STARTED, STOPPED, FINISHED, ERROR,

400
Returns BadRequest of type(s) application/json
{
    "details": "string",
    "related_errors": [
        "ApiError Object"
    ],
    "module_name": "string",
    "error_message": "string",
    "error_code": 0
}
object
error_data
Optional

Additional data about the error

string
details
Optional

Further details about the error

array of ApiError
related_errors
Optional

Other errors related to this error

string
module_name
Optional

The module name where the error occurred

string
error_message
Optional

A description of the error

integer As int64 As int64
error_code
Optional

A numeric error code


403
Returns Forbidden of type(s) application/json
{
    "details": "string",
    "related_errors": [
        "ApiError Object"
    ],
    "module_name": "string",
    "error_message": "string",
    "error_code": 0
}
object
error_data
Optional

Additional data about the error

string
details
Optional

Further details about the error

array of ApiError
related_errors
Optional

Other errors related to this error

string
module_name
Optional

The module name where the error occurred

string
error_message
Optional

A description of the error

integer As int64 As int64
error_code
Optional

A numeric error code


404

Not Found

Operation doesn't return any data structure

412
Returns PreconditionFailed of type(s) application/json
{
    "details": "string",
    "related_errors": [
        "ApiError Object"
    ],
    "module_name": "string",
    "error_message": "string",
    "error_code": 0
}
object
error_data
Optional

Additional data about the error

string
details
Optional

Further details about the error

array of ApiError
related_errors
Optional

Other errors related to this error

string
module_name
Optional

The module name where the error occurred

string
error_message
Optional

A description of the error

integer As int64 As int64
error_code
Optional

A numeric error code


500
Returns InternalServerError of type(s) application/json
{
    "details": "string",
    "related_errors": [
        "ApiError Object"
    ],
    "module_name": "string",
    "error_message": "string",
    "error_code": 0
}
object
error_data
Optional

Additional data about the error

string
details
Optional

Further details about the error

array of ApiError
related_errors
Optional

Other errors related to this error

string
module_name
Optional

The module name where the error occurred

string
error_message
Optional

A description of the error

integer As int64 As int64
error_code
Optional

A numeric error code


503
Returns ServiceUnavailable of type(s) application/json
{
    "details": "string",
    "related_errors": [
        "ApiError Object"
    ],
    "module_name": "string",
    "error_message": "string",
    "error_code": 0
}
object
error_data
Optional

Additional data about the error

string
details
Optional

Further details about the error

array of ApiError
related_errors
Optional

Other errors related to this error

string
module_name
Optional

The module name where the error occurred

string
error_message
Optional

A description of the error

integer As int64 As int64
error_code
Optional

A numeric error code