To log out of the NDR appliance, send the following request:
POST https://<IA_IP_address>:<port_number>/logout
Required header:
Cookie: px=<token>
Options
IA_IP_address—The IP address of the NDR appliance running the NDR API.
port_number—The port number of the NDR appliance running the NDR API.
token—This token authenticates the session. By default, the session times out after 24 hours.
Example
POST https://xxx.xxx.xxx.xxx:443/logout
Required header:
Cookie: px=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Log out: Response
HTTP/1.1 [Response Code] [Response Message] Date: [Date] Content-Type: [Content Type]
Response fields
Response code—A standard HTTP response code.
Response message—A standard HTTP response message.
Date—Standard HTML date format.
Content type—The response format.
Example
HTTP/1.1 200 OK Date: Wed, 16 Nov 2016 00:26:53 GMT Content-Type: text/plain; charset=utf-8
cURL code sample: Log out
curl -k -i https://xxx.xxx.xxx.xxx:443/logout -X POST --cookie "px=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
This cURL sample includes the following options:
-k—This option explicitly allows cURL to perform insecure SSL connections and transfers, which allows you to test your SSL connection without installing a CA certificate.-i—This option returns both the HTTP header and body of the response.https://xxx.xxx.xxx.xxx:443/logout—The authentication request URL. Replacexxx.xxx.xxx.xxxwith the IP address of your NDR appliance.--cookie "px=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"—This option specifies which session to end.
Results
This example logs out of the NDR appliance.