To log out and terminate a vCloud 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 Example: Logging Out.

Verify that you are logged in.

Make a DELETE request specifying the href of the current Session object.

This example deletes the current user's Session, which logs the user out.

Request:

DELETE https://vcloud.example.com/api/session
x-vcloud-authorization: cn9uYmdugN8E2j96+5Lqrc3YBvFsEgDHXzyfJrJ/6bM=

Response:

200 OK