Available since version: 1.8
This function allows you to login to ZABBIX based on accepted parameters. This method mainly used for login from scripts with retrieving only authentication token. All parameters are mandatory.
| Parameter | Type | Description | Details |
|---|---|---|---|
| user | string | User login name | |
| password | string | User login password | |
| Parameter | Description |
|---|---|
| result | Operation successful. Result will contain authentication string. |
| error | In case of any errors |
Login in to ZABBIX by user alias "Admin" and password "zabbix":
{
"jsonrpc":"2.0",
"method":"user.login",
"params":{
"user": "Admin",
"password":"zabbix"
},
"id":1
}Retrieved user authentication token: