Description |
This article describes how to create immediate maintenance via API. |
Scope |
FortiMonitor, Maintenance via API. |
Solution |
FortiMonitor offers API functionality and with that, users can perform different operations. For example, creating/deleting/viewing instances, fetching and creating users' details, creating/viewing maintenance, etc.
To view the API collection and how it works, refer to the document.
Creating immediate maintenance via API can be quite handy. Below is an example, of the JSON query which can be executed through the FortiMonitor's swagger-based API page.
The mandatory fields are: 1) Name. 2) Target (if it's for a specific instance). 3) Either use "Duration" (describes for how long the maintenance should be active) or use "original_end_time" (parameter value must be in UTC, following the format: YYYY-MM-DD HH:MM:SS).
With the above example, if by entering the server_id, users should be able to add immediate maintenance which will be active for 10 minutes. If using Postman or invoking the API through code, refer to the documentation for more details. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2023 Fortinet, Inc. All Rights Reserved.