Seitenhierarchie
Zum Ende der Metadaten springen
Zum Anfang der Metadaten


1. Query a tenant by id

URL: https://123.123.123.123/tenants/$ID.json

Methode: GET

Response: JSON


Response on successful API call
{
    "tenant": {
        "Tenant": {
            "id": "1",
            "container_id": "4",
            "description": "it-novum",
            "is_active": "1",
            "date": null,
            "number_users": "0",
            "max_users": "0",
            "number_hosts": "0",
            "max_hosts": "0",
            "number_services": "0",
            "max_services": "0",
            "firstname": "itnovum",
            "lastname": "Consultant",
            "street": "Edelzeller Str. 44",
            "zipcode": "36043",
            "city": "Fulda",
            "created": "2015-10-21 17:55:55",
            "modified": "2015-10-21 17:55:55"
        },
        "Container": {
            "id": "4",
            "containertype_id": "2",
            "name": "it-novum",
            "parent_id": "1",
            "lft": "6",
            "rght": "21"
        }
    }
}


2. Query all existing tenants

URL: https://123.123.123.123/tenants.json

Methode: GET

Response: JSON


Response on successful API call
{
    "all_tenants": [
        {
            "Tenant": {
                "id": "1",
                "container_id": "4",
                "description": "it-novum",
                "is_active": "1",
                "date": null,
                "number_users": "0",
                "max_users": "0",
                "number_hosts": "0",
                "max_hosts": "0",
                "number_services": "0",
                "max_services": "0",
                "firstname": "itnovum",
                "lastname": "Consultant",
                "street": "Edelzeller Str. 44",
                "zipcode": "36043",
                "city": "Fulda",
                "created": "2015-10-21 17:55:55",
                "modified": "2015-10-21 17:55:55",
                "name": "it-novum"
            },
            "Container": {
                "id": "4",
                "containertype_id": "2",
                "name": "it-novum",
                "parent_id": "1",
                "lft": "6",
                "rght": "21"
            }
        }
    ]
}
  • Keine Stichwörter