Description |
This article describes how to view or download the FortiPresence Rest API. |
Scope |
FortiPresence, API. |
Solution |
The above-mentioned is the URL that can provide us the details about the APIs, which can be used against the FortiPresence.
The FortiPresence REST API (Application Program Interface) provides a set of HTTP-based RESTful APIs that allow FortiPresence customers to retrieve the same management dashboard and report functions that can be performed from its web-based GUI (Graphical User Interface).
The base URL is as follows:
All FortiPresence REST APIs require a valid access token which must be obtained through authentication. https://presenceapi.fortinet.com/auth/token by POST-ing account or user login credentials in JSON format.
Example:
$ curl -X POST -k 'https://presenceapi.fortinet.com/auth/token' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"username":"API User ID","password":"API User password"}'
As a reply to the above query, the token will be received. https://support.fortinet.com/iam/#/users
The above URL is the place where the API users can be created and API userID and password will be generated for the API users automatically.
Select the username and use the 'Download credentials' button to download the 'API user ID” and “Password'. Which can be used on the above-mentioned API Example to get the token.
Follow the below procedure.
Bearer token value:
Example: If the Token value is 'g4uiPFVTiLvUKuahIdDvhVB8xMb66w' then the format is as follows. Bearer g4uiPFVTiLvUKuahIdDvhVB8xMb66w.
|
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 2024 Fortinet, Inc. All Rights Reserved.