REST delete computer

(imported topic written by JesperLarsen)

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

(imported comment written by mcalvi91)

is it deleted in the console?

(imported comment written by JesperLarsen)

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.

(imported comment written by JesperLarsen)

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.

(imported comment written by mcalvi91)

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."

(imported comment written by JesperLarsen)

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