Topic
  • 5 replies
  • Latest Post - ‏2014-04-08T07:08:06Z by JesperLarsen
JesperLarsen
JesperLarsen
34 Posts

Pinned topic REST delete computer

‏2014-02-04T09:26:11Z |

Hey

Im trying to delete (or at least mark it for deletion) a computer through the REST API.

The documentation  https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Tivoli%20Endpoint%20Manager/page/RESTAPI%20Computer says i can delete it by doing a DELETE.

DELETE /api/computer/12958949

But when i try, i get a "404, resource not found" as response. :

HTTP/1.1 404 Not Found
Content-Type: text/plain; charset=UTF-8
Content-Length: 34

Requested resource does not exist.
I know that the computer is not deleted (as it is not marked as deleted in the database), and i can retrieve it  perfectly by using a GET on the same resource:
GET /api/computer/12958949

response looks perfectly valid:

HTTP/1.1 200 OK
Accept: application/xml
Content-Type: application/xml
schema-file: BESAPI.xsd
Transfer-Encoding: chunked
................... and a lot of XML containing the Computer Resource

Have anyone seen this issue?

Im pretty sure this was working in the 9.0.649, but now running 9.0.787 on the servers 

/Jesper

  • mcalvi91
    mcalvi91
    37 Posts

    Re: REST delete computer

    ‏2014-02-04T13:50:29Z  

    is it deleted in the console?

  • JesperLarsen
    JesperLarsen
    34 Posts

    Re: REST delete computer

    ‏2014-02-04T14:18:48Z  
    • mcalvi91
    • ‏2014-02-04T13:50:29Z

    is it deleted in the console?

    When doing it through the REST API, No, it does not get deleted.

    But when I go in the Management Console, right-clicks the device and selects "Remove From Database", it is gone right away.

  • JesperLarsen
    JesperLarsen
    34 Posts

    Re: REST delete computer

    ‏2014-02-21T09:37:23Z  

    Ok, got an answer back from IBM Support.

    It seems the delete-computer-feature is not supported through the REST API, so the above link im refering to does no longer state it is possible to delete a computer in the IEM through the REST API.

  • mcalvi91
    mcalvi91
    37 Posts

    Re: REST delete computer

    ‏2014-04-07T19:45:03Z  

    Ok, got an answer back from IBM Support.

    It seems the delete-computer-feature is not supported through the REST API, so the above link im refering to does no longer state it is possible to delete a computer in the IEM through the REST API.

    Did you hear if there is an ETA for this?

    The API URL is back to showing it will be deleted.

     

    "Description: Marks a computer as deleted in the database.
    Request: URL is all that is required."

  • JesperLarsen
    JesperLarsen
    34 Posts

    Re: REST delete computer

    ‏2014-04-08T07:08:06Z  
    • mcalvi91
    • ‏2014-04-07T19:45:03Z

    Did you hear if there is an ETA for this?

    The API URL is back to showing it will be deleted.

     

    "Description: Marks a computer as deleted in the database.
    Request: URL is all that is required."

    Hey

    Yes, IBM re-introduced the feature in v. 9.1.something... I have not had a chance to test it though, as we use MDM and the mobile Agents are not 9.1 compliant... and this morning it seems like a serious vulnerability in the OpenSSL used by the IEM server 9.1 (https://www.ibm.com/developerworks/community/blogs/a1a33778-88b7-452a-9133-c955812f8910/entry/security_bulletin_ibm_endpoint_manager_9_1_1065_openssl_tls_heartbeat_read_overrun_vulnerability?lang=en) suggests I will not upgrade to 9.1 in near future :-o