REST webservices : delete access_key
search cancel

REST webservices : delete access_key

book

Article ID: 187784

calendar_today

Updated On:

Products

CA Service Desk Manager CA Service Management - Service Desk Manager

Issue/Introduction

In the documentation , it is explained how to delete and access_key but it seems not to work. 
See :
 
Example Delete an Access Key
This REST API example demonstrates how to delete a CA SDM access key.
The following example shows the request:
DELETE /caisd-rest/rest_access/1201703106 HTTP/1.1 Host: hostname
 
The following example shows the response:
HTTP/1.1 204 No Content Content-Type: application/xml;charset=UTF-8 Content-Length: 0

Environment

Release : 17.2

Component : Svc Desk Web Services

 

Cause

In above example the number 1201703106 seems to be the access_key but it is not.
 

Resolution

DELETE /caisd-rest/rest_access/1201703106
where 1201703106 is the access_key

does not work

It is needed to run :

DELETE /caisd-rest/rest_access/400001
where 400001 is the id for the access_key