Logout

post

/{versionId}/admin/logout

Terminate a valid user session. This method allows the SDM server to reclaim resources, remove the session cookie and close the session. All established sessions must be closed when they are completed by using this method.

Request

Path Parameters
Back to Top

Response

200 Response

204 Response

Successfully processed the request with no content.

401 Response

The request is not authorized.

404 Response

The REST API version of your input request cannot be found.
Back to Top

Examples

Examples of Accessing the API

See Authenticate for how to acquire a session cookie.

The following example shows how to logout using curl.

curl -X POST \
    -b sessionid.txt \
    --header "Accept: application/xml" \
    "https://example.com:8443/rest/v1.3/admin/logout"

The following example shows how to logout using Python.

import requests
from lxml import etree
url = "https://example.com:8443/rest/v1.3/admin/logout"
headers = { "Accept":"application/xml", "Cookie":cookie }
resp = requests.post(url, headers=headers)

Example of the Response Body

This endpoint does not return a response body.

Back to Top