This is the documentation page for an unsupported version of Zabbix.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.

apiinfo.version

Description

string apiinfo.version(array)

This method allows to retrieve the version of the Zabbix API.

This method is only available to unauthenticated users and must be called without the auth parameter in the JSON-RPC request.

Paraméterek

(tömb) A metódus üres tömböt fogad el.

Visszatérési értékek

(string) A Zabbix API verzióját adja vissza.

A Zabbix 2.0.4-től kezdve az API verziója megegyezik a Zabbix verziójával.

Példák

Retrieving the version of the API

Retrieve the version of the Zabbix API.

Request:

{
           "jsonrpc": "2.0",
           "method": "apiinfo.version",
           "params": [],
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": "4.0.0",
           "id": 1
       }

Forrás

CAPInfo::version() az ui/include/classes/api/services/CAPIInfo.php-ban.