This function returns a list of accessible tenants (including tenant ID and names). The returned tenant list varies by the user privileges you use to log in. To retrieve a full list of all available tenants, you must log in with admin permissions.
Method |
URL |
Required authentication |
GET |
/V1/CMDB/Tenants |
Yes |
Name |
Description |
---|---|
Token*required |
The token can be obtained by sending a POST request to the log in session endpoint and provide valid credentials. Example: { |
Parameter |
Type |
Description |
Example |
---|---|---|---|
tenants |
array |
A list of all accessible tenants. |
{ |
tenantId |
string |
The tenant ID. |
|
tenantName |
string |
The tenant name. |
|
statusCode |
integer |
Code issued by NetBrain server indicating the execution result. |
|
statusDescription |
string |
The explanation of the status code. |