FortiFlex API
API Documentation: FNDN
Base URL: https://support.fortinet.com/ES/api/fortiflex/v2/
Authentication: API key-based authentication
API Benefits:
- Programmatic control over all FortiFlex operations
- Integration with CI/CD pipelines
- Automated scaling based on metrics
- Custom billing and reporting solutions

- REST – Representational State Transfer - https://restcookbook.com/ –> good explanations
- HTTP Protocol and REST Architecture are intertwined
- The HTTP Response Codes are (should be) indicative of the status of the REST API call
- REST APIs are typically REST-ish as they do not fully/correctly implement the REST Architecture
- REST call Operations can be defined by a combination of Idempotency and Safety
- Most Common REST API calls – Idempotency: when then same request provides the same results or state
HTTP Method | Idempotent | Safe |
---|---|---|
GET | ||
POST | ||
PUT | ||
DELETE | ||
PATCH |
- FortiFlex API is REST-ish
- All FortiFlex API calls are POSTs, some calls should be GETs or PUTs
Anatomy of a REST API Query
