CA Service Management

 View Only
  • 1.  CASM 17.4 REST delete rest_access

    Posted 11 days ago
    Edited by Peter Schmidt 11 days ago

    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



  • 2.  RE: CASM 17.4 REST delete rest_access

    Broadcom Employee
    Posted 10 days ago

    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>
    For deletion use the request as: http://<hostname>:8050/caisd-rest/rest_access/400008" and use different X-AccessKey as the header and body part is optional. 
    It works with and without the body as <rest_access/>
    Hope this helps.
    Thanks & Regards,
    Hema.



  • 3.  RE: CASM 17.4 REST delete rest_access

    Posted 10 days ago

    Good morning Hema,

    many thanks for your reply.

    I already tried with second access_key getting the same problem.

    For me it does not make sense that I cannot release access_key when I'm ready with operations.

    But I'll try again as soon as possible whether it makes difference to leave body clear.

    Thanks and regards,

    Peter




  • 4.  RE: CASM 17.4 REST delete rest_access

    Posted 10 days ago

    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




  • 5.  RE: CASM 17.4 REST delete rest_access

    Broadcom Employee
    Posted 10 days ago

    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




  • 6.  RE: CASM 17.4 REST delete rest_access

    Posted 10 days ago

    Good morning Sebastian,

    I'm getting old ... :-(

    Yes, you are right ....

    And it also works as expected for the object of which I'm using the key.

    Many, many thanks,

    Peter