Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

List All Tenants

JoeWinter edited this page Mar 20, 2015 · 1 revision

[Table of Contents](https://github.com/dell-oss/Doradus/wiki/Doradus Administration: Table-of-Contents) | [Previous](https://github.com/dell-oss/Doradus/wiki/Creating a New Tenant) | [Next](https://github.com/dell-oss/Doradus/wiki/List Tenant)
[Multi-Tenant Configuration](https://github.com/dell-oss/Doradus/wiki/Multi-Tenant Configuration): 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:

<tenant name="Doradus">

SmokeTest

App_Default

<tenant name="Bibliotecha">

App_Biblio

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"

]

}

}}

Clone this wiki locally