GET api/v{version}/TenantHosts
Gets the list of all configured host headers for each tenant that is in the system.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| version |
The requested API version |
string |
Required Default value is 2.0 |
Body Parameters
None.
Response Information
Resource Description
Returns the list of tenants and their host headers.
Collection of TenantHost| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
ID of this entry. |
integer |
None. |
| Tenant |
Gets or sets the name of the tenant. |
string |
None. |
| Host |
The host name to be associated with the tenant |
string |
None. |
Response Formats
application/json, text/json, application/problem+json
Sample:
[
{
"id": 1,
"tenant": "sample string 2",
"host": "sample string 3"
},
{
"id": 1,
"tenant": "sample string 2",
"host": "sample string 3"
}
]
application/xml, text/xml
Sample:
<ArrayOfTenantHost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.DR.Resources">
<TenantHost>
<Host>sample string 3</Host>
<Id>1</Id>
<Tenant>sample string 2</Tenant>
</TenantHost>
<TenantHost>
<Host>sample string 3</Host>
<Id>1</Id>
<Tenant>sample string 2</Tenant>
</TenantHost>
</ArrayOfTenantHost>