To log out and terminate a VMware Cloud Director API session, delete the Session you created when you logged in.
The logout request, like all other authenticated requests, must include the authorization header, as shown in Logging Out.
Prerequisites
Verify that you are logged in.
Procedure
- ♦ Make a DELETE request specifying the href of the current Session object.
Example: Logging Out
This example deletes the current user's Session, which logs the user out.
Request:
DELETE https://vcloud.example.com/api/session
Response:
204 No Content