Using the TSWS REST API to integrate TrueSight data with other products
Prerequisites
- Installation of the following TrueSight Operations Management components:
- TrueSight Presentation Server
- TrueSight Infrastructure Management
- Installation of a client utility, such as Postmam
API versions
The REST API is versioned separately from the TrueSight Presentation Server. The API version provided with this version of the TrueSight Presentation Server is version 10.0. As necessary, newer versions of the API will be released with future product releases.
JSON format
JSON is used for both request and response bodies. Each API request must include the following content-type parameter in the request header:
Timestamps
All timestamps in response bodies are returned in ISO 8601 format:
Endpoints
The following table contains the endpoints in the TSWS REST API.
JSON Responses
The response body contains the results of all requests. In addition to the requested content, the response body also contains status content that describes the success or failure of the request.
- Successful requests are indicated by returned 2xx HTTP status codes.
- Failed requests are indicated by returned 4xx (client error) or 5xx (server error) HTTP status codes.
The response body also contains an object that contains details of the error, with the following fields:
Field | Meaning |
---|---|
statusCode | The HTTP request status code |
statusMsg | A description of the request statusCode |
responseMsg | Status of the response |
responseContent | Portion of the response that contains the specified content For unsuccessful requests, this field can also provide some detail or null. |
Here is an example request, resulting in the response 400 Bad Request: