Get Removed CIs

This call returns the list of CIs removed in a specified time frame.

URL

/history/getRemovedCIs

Method

GET

Headers

Required:

Authorization: Bearer <token>

Note <token> is the token that is returned by the Authentication call.

Example:

Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0Njc5ODQ5MTcsImN1c3RvbWVyIjoxLCJ1c2VybmFtZSI6InN5c2FkbWluIn0.Ph8WHtzvpvfuH1j0CtwHqyBhX1uLlfhr0eQQ7m0_gT0

Request type

None

Response type

JSON

URL Parameters

Required:

[from]

The starting time for retrieving the events, measured in milliseconds. (Long)

[to]

The ending time for retrieving the events, measured in milliseconds. (Long)

Optional:

[ciType]

The CI Type. (String)

For example:

https://localhost:8443/rest-api/history/getRemovedCIs?from=1475223669000&to=1475323669000&ciType=host 

Payload

None

Success response

Response: 200

Content:

{
    "removedCis": [
        "495a4faf96729548a2603046dbf7efd9",
        "4c21a0fb4d6c0a69b99f34576c0efb67"
    ]
}

Error response

Status: 404, 500, or 400

Content:

{
  error: [string]
} 

Example:

Code: 404

Content:

{
   error: The server was not found.
}