Multi-Tenant Configuration : Managing Tenants : List All Tenants

List All Tenants
This command lists all existing tenants:
GET /_tenants
This command returns each tenant’s name and the list of applications owned by each tenant. An example response in XML is shown below:
<tenants>
<tenant name="Doradus">
<applications>
<value>SmokeTest</value>
<value>App_Default</value>
</applications>
</tenant>
<tenant name="Bibliotecha">
<applications>
<value>App_Biblio</value>
</applications>
</tenant>
</tenants>
As with all REST commands, a JSON response can be requested by adding ?format=json to the URI. Example:
GET /_tenants?format=json
Which returns:
{"tenants": {
"Doradus": {
"applications": [
"SmokeTest",
"App_Default"
]
},
"Bibliotecha": {
"applications": [
"App_Biblio"
]
}
}}