List Tenants
This request returns a list of tenant objects.
Resource
GET /tenants[?parameters]
Parameters
Name | Type | Description |
---|---|---|
|
String |
Select tenants whose name matches this string. |
|
String |
Select tenants whose resellerName field matches this string. |
|
Integer |
The maximum number of objects to return. Default: 15. |
|
[ascending|decending] |
Sort results in descending or ascending order. Default: ascending. |
|
[id] |
Return tenants with ID smaller than this ID. |
|
[id] |
Return tenants with ID larger than this ID. |
|
[String] |
Additional search fields. The fields isTemplate and active are supported: |
|
[String] |
Include fields to the result. include=[included fields] |
Payload
None
Response
List Response < Tenant >
Context
Authorization |
Master |
Configuration |
Multi-tenant |
Errors
HTTP code | Xelion code | Description |
---|---|---|
403 |
10101 |
Resource not accessable. User is not a master tenant administrator. |
404 |
10060 |
No multi-tenant configuration. |
Example
GET https://xelion.nl/api/v1/master/tenants?after=0&limit=2
{
"data": [
{
"object": {
"commonName": "pbx1",
"oid": "1",
"active": true,
"subDatabaseName": "pbx1",
"objectType": "XCCTenant"
},
"links": [
{
"rel": "self",
"href": "http://www.xelion.nl/api/v1/master/tenants/1",
"method": "GET"
}
]
},
{
"object": {
"commonName": "pbx2",
"oid": "2",
"active": true,
"subDatabaseName": "pbx2",
"objectType": "XCCTenant"
},
"links": [
{
"rel": "self",
"href": "http://www.xelion.nl/api/v1/master/tenants/2",
"method": "GET"
}
]
}
],
"meta": {
"links": [
{
"rel": "refresh",
"href": "http://www.xelion.nl/api/v1/master/tenants",
"method": "GET"
},
{
"rel": "next",
"href": "http://www.xelion.nl/api/v1/master/tenants?after=2",
"method": "GET"
},
{
"rel": "previous",
"href": "http://www.xelion.nl/api/v1/master/tenants?before=1",
"method": "GET"
}
],
"paging": {
"previousId": "1",
"nextId": "2"
}
}
}