Retrieving the list of tenants


The tenant API uses the GET method to obtain the list of tenants from the TrueSight Presentation Server. The permissions granted for the administrator who makes the request determines which tenants appear in the JSON response. For example, an administrator for the Acme account could not see the tenants in the Calbro account.

TSWS APIs that use the POST method

API Endpoints

Description

Obtains the authToken required to perform all other operations

Retrieves configuration data of monitor instances

Retrieves performance data of monitor instances

TSWS APIs that use the GET method

API Endpoints

Description

Retrieves a list of monitored devices

Retrieves a list of monitored instances 

Retrieves a list of monitor types 

Retrieves a list of tenants 

Before you begin

You must have used the login API to obtain the authToken, which authenticates the user performing the operation. For details, see TSWS-authentication.

Request syntax

GET https://<PresentationServerHostName>/tsws/10.0/api/omprovider/tenants

Request parameters

Element

Description

authToken

Value of the authToken generated through the login API

Sample request with REST client

  1. Enter the URL for the tenant list API. The generic format is:
    https://<PresentationServerHostName>/tsws/10.0/api/omprovider/tenants
  2. Add a new header.
  3. Select Authorization as the header type.
  4. Enter the text authToken followed by the authToken generated through the login API. See TSWS-authentication.
  5. Click Send.

tenantAPI.png

 

JSON response content

The tenant API request returns the following tenant information in the JSON response:

Object

Description

tenantList

List of tenants that the authorized user can access

tenantId

Tenant name

 

 

Sample JSON response

tenantAPI_response.png