Hi, I'm developing a Python script for Fortimail. From your Fortimail REST API Reference, can you explain how can I utilize the API to login to Fortimail (Local Password-based authentication)? What should be the format to put username and password for login?
URL: http(s)://host_or_ip/api/v1/AdminLogin/
Method: POST
JSON: {“name”: “admin”, “password”: “****”}
For example, for proxy it could be like "https":"username:password@localhost:port_number"
If you can provide me an example of line of code in Python, I'd be much appreciated.
Pat
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
No one? Please....
Please post results if you find them out of this forum - I'd be very interested as well.
Thanks.
FCNSP
-------------------------------------
"They have us surrounded again, those poor bastards."
-Unnamed Medic
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1688 | |
1087 | |
752 | |
446 | |
227 |
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.