Delete the target with the given id

delete

https://EM_HOST:8080/em/api/targets/{targetId}

This api deletes the target with the given id. If an access point is given, then only that access point is deleted. If the target is an agent target, then also the monitored targets can be deleted. In case of a composite target the member targets can get deleted too.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Payload to delete a target
Show Source
Nested Schema : accessPoint
Match All
Show Source
  • NameTypePair
    A pair of name and type.
  • If only an access point is to be deleted this defines its name and type.
  • Example: { "name":"MyAccessPointName", "type":"MyAccessPointType" }
Nested Schema : NameTypePair
Type: object
A pair of name and type.
Show Source
Back to Top

Response

Supported Media Types

204 Response

OK, target got deleted

400 Response

in the case of a processing error like unsupported property given etc.
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

401 Response

client is not authenticated
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

404 Response

target not found or not authorized
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

500 Response

internal error serving the request
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

503 Response

indicates that a required service is not available.
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source
Back to Top