Logout

post

/{versionId}/admin/logout

Use this (POST) method to logout and 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

Example of Accessing the API with cURL

The following example shows how to logout by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL.

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

Example of Accessing the API with Python

The following example shows how to logout by submitting a POST request on the REST resource using Python. This example assumes the cookie variable contains a valid authentication cookie. For an example of authenticating with Python, see Authenticate.

import requests
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