string apiinfo.version(array)
该方法用于获取 Zabbix API 版本。
auth参数的情况下调用。
(array) 该方法接受一个空的数组。
(string) 返回 Zabbix API 的版本。
获取 Zabbix API 版本。
请求:
{ "jsonrpc": "2.0", "method": "apiinfo.version", "params": [], "id": 1 }
响应:
{ "jsonrpc": "2.0", "result": "4.0.0", "id": 1 }
CAPIInfo::version() in frontends/php/include/classes/api/services/CAPIInfo.php.
string apiinfo.version(array)
This method allows to retrieve the version of the Zabbix API.
auth parameter in the JSON-RPC request.
(array) The method accepts an empty array.
(string) Returns the version of the Zabbix 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 }
CAPIInfo::version() in frontends/php/include/classes/api/services/CAPIInfo.php.