Technical Tip: Verify FortiGuard service status of managed FortiGates through FortiManager API
Description
This article describes the FortiManager API request that collects the FortiGuard service status of the managed FortiGates.
Scope
FortiManager.
Solution
The following is the FortiManager request, which is equivalent to the output of the FortiGate CLI command 'get sys fortiguard-service status'.

 
Request:
"cid": 1,
"id": "1",
"result": [
{
"data": [
{
"response": {
"http_method": "GET",
"results": {
"fortiguard": {
"type": "cloud_service_status",
"supported": true,
"connected": false,
"has_connected": false,
"connection_issue": true,
"update_server_usa": false,
"next_scheduled_update": 1769532382,
"scheduled_updates_enabled": true
},
"forticare": {
"type": "cloud_service_status",
"status": "registered",
"registration_status": "registered",
"registration_supported": true,
"account": "emea_lab@fortilab.net",
"support": {
"enhanced": {
"status": "licensed",
"support_level": "24x7",
"expires": 1794528000
},
Troubleshooting:
The following commands can be used on the FortiManager CLI to debug the API Calls:
diagnose debug service httpd 255
diagnose debug service main 255
diagnose debug enable
Related article: