День добрый
использую Zabbix 6.2
при выполнении запроса
curl -X POST -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "maintenance.create",
"params": {
"name": "Maintenance for landing service",
"maintenance_type": 0,
"active_since": 1678099200, // Unix timestamp for July 5, 2023, 12:00 UTC
"active_till": 1678106400, // Unix timestamp for July 5, 2023, 14:00 UTC
"groupids": [],
"hostids": [],
"tags": [
{
"tag": "systemid",
"value": "landing"
}
},
"auth": "**",
"id": 1
}' https://zabbix.**/api_jsonrpc.php
при выполнении получаю ошибку
{"jsonrpc":"2.0","error":{"code":-32700,"message":"Parse error","data":"Invalid JSON. An error occurred on the server while parsing the JSON text."},"id":null}
использую Zabbix 6.2
при выполнении запроса
curl -X POST -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "maintenance.create",
"params": {
"name": "Maintenance for landing service",
"maintenance_type": 0,
"active_since": 1678099200, // Unix timestamp for July 5, 2023, 12:00 UTC
"active_till": 1678106400, // Unix timestamp for July 5, 2023, 14:00 UTC
"groupids": [],
"hostids": [],
"tags": [
{
"tag": "systemid",
"value": "landing"
}
},
"auth": "**",
"id": 1
}' https://zabbix.**/api_jsonrpc.php
при выполнении получаю ошибку
{"jsonrpc":"2.0","error":{"code":-32700,"message":"Parse error","data":"Invalid JSON. An error occurred on the server while parsing the JSON text."},"id":null}
Comment