FortiCloud Products
FortiCloud Products
rmittal
Staff
Staff
Article Id 341705
Description This article describes how to resolve an issue that users might face when using an API call with FortiEdge Cloud.
Scope FortiEdgeCloud.
Solution

Due to the recent migration of FortiLAN cloud to FortiEdge cloud, the API call also has to be modified by the users when performing an API call.

 

Previous API call:

 

curl https://customerapiauth.fortinet.com/api/v1/oauth/token/ -H 'Content-Type: application/json' -d '{\"username\": \"$api_id\", \"password\": \"$password\", \"client_id\": \"fortilancloud\", \"grant_type\": \"password\"}'

 

curl -H "Authorization: Bearer xxxxx" https:eu.fortilandcloud.com/api/v1/networks

 

New API Call:

 

curl https://customerapiauth.fortinet.com/api/v1/oauth/token/ -H 'Content-Type: application/json' -d '{\"username\": \"$api_id\", \"password\": \"$password\", \"client_id\": \"fortiedgecloud\", \"grant_type\": \"password\"}'

curl -H "Authorization: Bearer xxxxx https:eu.fortiedge.forticloud.com/api/v1/networks

 

Contributors