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

Pinned topic REST delete computer

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


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

The documentation!/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 


Updated on 2014-02-04T09:29:06Z at 2014-02-04T09:29:06Z by JesperLarsen