Thank you!!!!!
but the above code looks not correct
Yes, but it's better
Tell me with the code, I don’t understand something
That's not right.
It should look like this:
key:filter value: make a list (key:host value:its_value)
The answer I get is this
I need hostid and status their values, that is, 10402 and 0
Error "Segment: Start (93) + length (1) - 1 exceeds text length (57)"
Could you stop making new topics and use the topic you already made. I merged this.
Set the language of app inventor to English and then post your blocks again.
the problem is different
sorry, corrected
This is what I used to get value from json string:
the number in the csvPath means the item index in the list.
Yes. it works fine
my code
on execution I get an error
API request
{
"jsonrpc": "2.0",
"method": "host.update",
"params": {
"hostid": "10126",
"status": 0
},
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"id": 1
}
Answer
{
"jsonrpc": "2.0",
"result": {
"hostids": [
"10126"
]
},
"id": 1
}
https://www.zabbix.com/documentation/current/manual/api/reference/host/update
I don't need an answer. To avoid getting an error
I used the json response shown above

now the response is ?
{ "jsonrpc": "2.0", "result": { "hostids": [ "10126" ] }, "id": 1 }
the fact is that I only need hostid
I don't need hostids
Complete code
After this request, I need hostid and status
After that I don't need answers
In this example, we connect to Zabbix and activate the host or deactivate
How to discard the response in the last two requests?















