-
Type:
Documentation task
-
Resolution: Change request declined
-
Priority:
Trivial
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Hello!
I can not get the "itemid" value by zabbix API Test.
I think there is no problem in token and hostid.
curl -X POST "http://10.113.184.14/zabbix/api_jsonrpc.php" {color}
-H "Content-Type: application/json" {color}
--data-binary '{
"jsonrpc": "2.0",
"method": "item.get",
"params": {
"output": ["itemid", "name", "hostid"],
"hostids": 11080,
"sortfield": "name"
},
"auth": "f618f4820729eb9f13a921f425b1d437",
"id": 1
}'
However I got the following error message.
I would appreciate if you can advise me any tips to slove this.
{"jsonrpc":"2.0","error":\{"code":-32600,"message":"Invalid request.","data":"Invalid parameter \"/\": unexpected parameter \"auth\"."},"id":1}