Description |
This article describes an alternative of the API URL for /api/v2/cmdb/system/status. When an API client sends a request with a URL /api/v2/cmdb/system/status to a FortiGate running on v7.4.4, it returns API error 404 indicating the API server cannot find the requested resource for the API URL.
root@ted:/home/ted/Desktop# curl -k -X GET "https://<FGT IP>:443/api/v2/cmdb/system/status?global=1&access_token=<api token>" -H "accept: application/json" "status": "error", } |
Scope | FortiGate v7.4.4 |
Solution |
It is possible to replace the depreciated API URL /api/v2/cmdb/system/status with a new URL /api/v2/monitor/system/status.
root@ted:/home/ted/Desktop# curl -k -X GET "https://<FGT IP>:443/api/v2/monitor/system/status?global=1&access_token=<api token>" -H "accept: application/json" "http_method":"GET", "model_name":"FortiGate", },
|