I'm getting old ... :-(
Yes, you are right ....
And it also works as expected for the object of which I'm using the key.
Original Message:
Sent: Jan 31, 2025 01:20 AM
From: Sebastian Nagy
Subject: CASM 17.4 REST delete rest_access
Hi Peter,
Can you please make sure that you use the URL you get back in the response body when your get the key? That link uses the ID in the DB of the session, not the Access Key. In your sample URL it seems you are using the Access Key itself.
Regards,
Sebastian
Original Message:
Sent: Jan 31, 2025 01:06 AM
From: Peter Schmidt
Subject: CASM 17.4 REST delete rest_access
Hi Hema,
again I tried it using another key an now also left body blanc.
It does not change it:
- Invalid number of rows (0) affected by the operation. Expecting (1).
- stdlog:
- Trying to update unavailable session in history
0 animations pending from now to 01/31/2025 07:30:43; 0 backlogged
Session History is Empty
Thanks and regards,
Peter
Original Message:
Sent: Jan 31, 2025 12:43 AM
From: Hemalatha Simhadri
Subject: CASM 17.4 REST delete rest_access
Hi Peter,
When you send a POST request to get new access key, this is how the response comes.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rest_access id="400008" REL_ATTR="400008" COMMON_NAME="971478066">
<link href="http://<hostname>:8050/caisd-rest/rest_access/400008" rel="self"/>
<access_key>971478066</access_key>
<expiration_date>1738906612</expiration_date>
</rest_access>
It works with and without the body as <rest_access/>
Hope this helps.
Thanks & Regards,
Hema.
Original Message:
Sent: Jan 30, 2025 05:56 AM
From: Peter Schmidt
Subject: CASM 17.4 REST delete rest_access
Hi,
via POSTMAN I'm trying to delete a rest_acces key (X-AccessKey)
I can list all rest_access datasets via GET win0860:8050/caisd-rest/rest_access
When I'm trying to delete one of the rest_access Keys I get 409 conflict and Invalid number of rows (0) affected by the operation. Expecting (1).
I'm trying:
DELETE http://win0860:8050/caisd-rest/rest_access/774905576
with another X-AccessKey
body has <rest_access/>
Authorization is No Auth
stdlog shows: Trying to update unavailable session in history
What else I should try?
Regards,
Peter