Fortinet white logo
Fortinet white logo

FortiLAN Cloud User Guide

Calling APIs

Calling APIs

All APIs require access token be included as bearer authentication. This is an example to query FortiAPs deployed in various logical networks in an account:

$ curl -H "Authorization: Bearer $access_token" https://fortilan.forticloud.com/api/v1/inventory/deployed/

This is an example to query all networks existing in an account.

$ curl -H "Authorization: Bearer $access_token" https://fortilan.forticloud.com/api/v1/networks/

Calling APIs

Calling APIs

All APIs require access token be included as bearer authentication. This is an example to query FortiAPs deployed in various logical networks in an account:

$ curl -H "Authorization: Bearer $access_token" https://fortilan.forticloud.com/api/v1/inventory/deployed/

This is an example to query all networks existing in an account.

$ curl -H "Authorization: Bearer $access_token" https://fortilan.forticloud.com/api/v1/networks/