REST Session Logout
search cancel

REST Session Logout

book

Article ID: 204504

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager

Issue/Introduction

After creating a session in REST via a POST method to "rest_access" how to logout of the given session?

Environment

Release : 17.1

Component : CA SERVICE MANAGEMENT

Resolution

One will need to issue a DELETE directive to delete the given rest_access key and thus logout of the session.

An example is given under heading "Example Delete an Access Key" in the following documentation:

https://techdocs.broadcom.com/us/en/ca-enterprise-software/business-management/ca-service-management/17-3/reference/ca-service-desk-manager-reference-commands/technical-reference/rest-http-methods.html#concept.dita_571265def7bea5a79bc6e3bba4cd061d4d03b036_CASDMResourceExamples

The following screencaps in SOAPUI demonstrates the initial session being created via a POST method to "rest_access", then application of the DELETE method to close/logout of the session (entry is removed from the usp_rest_access database table)

Creation of the session/access key via a POST method to "rest_access"

Logout of the given session by deleting the REST Access Key

Additional Information

The user in the above example, "TestUser1" has a role assigned to its Access Type (go into the given Access Type, access its "Roles" tab, to see entry "REST Web Service API Role") in which the role's Function Access on "admin" is set to "Modify".  Without this setting, the user cannot leverage the DELETE method to close/logout of the session via "rest_access".

Attachments