systemstatus_server_list_count

This counts the servers for system status.

See Also

Count APIs

Argument

Required

Type

Description

servertype

no

string

An array object where each value is an active type.

To get a list of the servertypes, call the API systemstatus_servertype_list.

servertype=>policyserver

servertype=>nsrouter

servertype=>webadmin

servertype=>nsreporter

servertype=>netsnmpd

servertype=>proxy

servertype=>remotectl

servertype=>dirsync

active

no

boolean

A Boolean variable of whether the request server to be added is active or not. You can use a value of true or 1 for active and everything else defaults to non-active.

format

no

string

The format of the output for the API: text, json or xml. The default is text.

callback

no

string

This only works with Direct APIs. This is a JavaScript function that should be called after the API is completed. This function will be called with the response of the API.  Please note: It can only be used when requesting this API via AJAX request.  More Information can be found here.

Example

servername/webadmin/api/systemstatus_server_list_count.php?servertype=VALUE

Output:

OK: 1

 

Version: 6.2.3