TSWS authentication
The TrueSight Web Service (TSWS) token API (POST)
is meant for authenticating a user identified by username, password, and tenant information provided through the request. It uses the POST method to perform the authentication and returns an authToken value in the JSON response. The user is identified for performing the subsequent operations by this authToken and must be specified in all subsequent TSWS API requests.
API Endpoints | Description |
---|---|
token | Obtains the authToken required to perform all other operations |
configdata | Retrieves configuration data of monitor instances |
perfdata | Retrieves performance data of monitor instances |
API Endpoints | Description |
---|---|
devices | Retrieves a list of monitored devices |
instances | Retrieves a list of monitored instances |
monitortypes | Retrieves a list of monitor types |
tenants | Retrieves a list of tenants |
Request syntax
https://<PresentationServerHostName>/tsws/api/v10.1/token
Request parameters
Element | Description |
---|---|
username | User name performing the operation |
password | Password to authenticate the user |
tenantName | Tenant name as it appears in the TrueSight Presentation Server Example: * |
The request parameters in JSON format:
{
"username": "<user name>",
"password": "<password>",
"tenantName": "<tenant name>"
}
Sample request with REST client
JSON response content
The JSON response includes an authToken if the authentication is successful. You must use this authToken value for subsequent requests.
Object | Description |
---|---|
authToken | Value that you specify in subsequent TrueSight Web Services operations |
authPassed | Value returned by the API. This can be either true or false. True indicates a successful operation and false indicates a failed operation. |
status | Status returned by the API. For example, if the status code is 200, the status returned is OK. |
Sample JSON response and troubleshooting authentication API
The response information follows the standard HTTP response status codes. The following table contains Sample JSON response and the associated troubleshooting tips:
Status code | Description | Sample JSON | Troubleshooting tips |
---|---|---|---|
200 | Success |
| Not applicable. |
401 | Invalid credentials |
| Specify valid credentials and try again. |
500 | Internal Server error |
| Try after some time or contact the TrueSight Presentation Server administrator. |
503 | Remedy SSO is not accessible |
| Try after some time or contact the TrueSight Presentation Server administrator. |
400 | Missing username |
| Specify a value for the username parameter. |
400 | Missing password |
| Specify a value for the password parameter. |
400 | Missing tenant |
| Specify a value for the tenant parameter. |
Comments
I believe it's important to also detail which header values should be used. e.g. -H 'Content-Type: application/json'
Log in or register to comment.