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