Listing Clients
Service name: list_clients
Base URL
https://{SERVER}/api/?apikey={yourAPIkey}&service=list_clients
Description
Lists all clients. If the devicetype parameter is included, the list only shows only clients that have active devices of that type. Note: the dashboard_username field is populated where the deprecated Classic Client login was created.
Parameters
Optional parameters
Add optional parameters after the base URL.
https://{SERVER}/api/?apikey={yourAPIkey}&service=list_clients&optional_parameters={parameter-value}
Parameter  | Description  | Type  | Options  | Default  | 
|---|---|---|---|---|
devicetype  | The devicetype is optional but if used should be either "server" or "workstation" or "mobile_device".  | string  | server  | server  | 
Optional. Returns a description of the entered call, the available parameters, an example of its output, and returned fields with descriptions.  | boolean  | true  | 0  | 
Examples
List clients
https://{SERVER}/api/?apikey={yourAPIkey}&service=list_clients
Example response
<?xml version="1.0" ?>
<result created="2015-07-20T09:45:09+01:00" host="SERVER" status="OK">
    <items>
        <client>
            <name>Test Client</name>
            <clientid>123456789</clientid>
            <view_dashboard>1</view_dashboard>
            <view_wkstsn_assets>1</view_wkstsn_assets>
            <dashboard_username>[email protected]</dashboard_username>
            <timezone>Europe/London</timezone>
            <creation_date>2014-04-30</creation_date>
            <server_count>5</server_count>
            <workstation_count>20</workstation_count>
            <mobile_device_count>0</mobile_device_count>
            <device_count>25</device_count>
        </client>
        <client>
            <name>Test Client 2</name>
            <clientid>123456799</clientid>
            <view_dashboard>1</view_dashboard>
            <view_wkstsn_assets>1</view_wkstsn_assets>
            <dashboard_username>[email protected]</dashboard_username>
            <timezone>Europe/London</timezone>
            <creation_date>2014-11-18</creation_date>
            <server_count>0</server_count>
            <workstation_count>0</workstation_count>
            <mobile_device_count>21</mobile_device_count>
            <device_count>21</device_count>
        </client>
        ...more client nodes...
    </items>
</result>List clients for servers
https://{SERVER}/api/?apikey={yourAPIkey}&service=list_clients&devicetype=server
Example response
<?xml version="1.0" ?>
<result created="2015-07-20T09:45:09+01:00" host="SERVER" status="OK">
    <items>
        <client>
            <name>Test Client</name>
            <clientid>123456789</clientid>
            <view_dashboard>1</view_dashboard>
            <view_wkstsn_assets>1</view_wkstsn_assets>
            <dashboard_username>[email protected]</dashboard_username>
            <timezone>Europe/London</timezone>
            <creation_date>2014-04-30</creation_date>
            <server_count>5</server_count>
            <workstation_count>20</workstation_count>
            <mobile_device_count>0</mobile_device_count>
            <device_count>25</device_count>
        </client>
        <client>
            <name>Test Client 4</name>
            <clientid>123456791</clientid>
            <view_dashboard>1</view_dashboard>
            <view_wkstsn_assets>1</view_wkstsn_assets>
            <dashboard_username>[email protected]</dashboard_username>
            <timezone>Europe/London</timezone>
            <creation_date>2015-05-10</creation_date>
            <server_count>3</server_count>
            <workstation_count>0</workstation_count>
            <mobile_device_count>0</mobile_device_count>
            <device_count>3</device_count>
        </client>
        ...more client nodes...
    </items>
</result>List clients for workstations
https://{SERVER}/api/?apikey={yourAPIkey}&service=list_clients&devicetype=workstation
Example response
<result created="2015-07-20T09:36:25+01:00" host="SERVER" status="OK">
    <items>
        <client>
            <name>Test Client</name>
            <clientid>123456789</clientid>
            <view_dashboard>1</view_dashboard>
            <view_wkstsn_assets>1</view_wkstsn_assets>
            <dashboard_username>[email protected]</dashboard_username>
            <timezone>Europe/London</timezone>
            <creation_date>2014-04-30</creation_date>
            <server_count>5</server_count>
            <workstation_count>20</workstation_count>
            <mobile_device_count>0</mobile_device_count>
            <device_count>25</device_count>
        </client>
        <client>
            <name>Test Client 3</name>
            <clientid>123456797</clientid>
            <view_dashboard>1</view_dashboard>
            <view_wkstsn_assets>1</view_wkstsn_assets>
            <dashboard_username>[email protected]</dashboard_username>
            <timezone>Europe/London</timezone>
            <creation_date>2015-01-06</creation_date>
            <server_count>0</server_count>
            <workstation_count>8</workstation_count>
            <mobile_device_count>3</mobile_device_count>
            <device_count>11</device_count>
        </client>
        ...more client nodes...
    </items>
</result>List clients for mobile devices
https://{SERVER}/api/?apikey={yourAPIkey}&service=list_clients&devicetype=mobile_device
Example response
<result created="2015-07-20T09:36:25+01:00" host="SERVER" status="OK">
    <items>
        <client>
            <name>Test Client 2</name>
            <clientid>123456799</clientid>
            <view_dashboard>1</view_dashboard>
            <view_wkstsn_assets>1</view_wkstsn_assets>
            <dashboard_username>[email protected]</dashboard_username>
            <timezone>Europe/London</timezone>
            <creation_date>2014-11-18</creation_date>
            <server_count>0</server_count>
            <workstation_count>0</workstation_count>
            <mobile_device_count>21</mobile_device_count>
            <device_count>21</device_count>
        </client>
        <client>
            <name>Test Client 3</name>
            <clientid>123456797</clientid>
            <view_dashboard>1</view_dashboard>
            <view_wkstsn_assets>1</view_wkstsn_assets>
            <dashboard_username>[email protected]</dashboard_username>
            <timezone>Europe/London</timezone>
            <creation_date>2015-01-06</creation_date>
            <server_count>0</server_count>
            <workstation_count>8</workstation_count>
            <mobile_device_count>3</mobile_device_count>
            <device_count>11</device_count>
        </client>
        ...more client nodes...
    </items>
</result>Returned fields
| Field | Type | Can Be Empty | Description | 
|---|---|---|---|
| name | string | yes | Name of client | 
| clientid | integer | no | Unique identifier of client | 
| view_dashboard | integer (1 or 0) | no | Is dashboard access enabled for client? | 
| view_wkstsn_assets | integer (1 or 0) | no | If dashboard access is enabled for client, can client view workstations and assets (or servers only)? | 
| dashboard_username | string | yes | Username used to access client | 
| timezone | string | yes | Timezone of client | 
| creation_date | date | yes | Creation date of client | 
| server_count | integer | no | Total number of active servers for client | 
| workstation_count | integer | no | Total number of active workstations for client | 
| mobile_device_count | integer | no | Total number of active mobile devices for client | 
Updated 3 months ago