Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
AntonioM
New Contributor

401 Error running Ansible playbook

Hi,

 

I'm running an Ansible playbook to create a large number of objects in Fortigate. I'm using API token authentication.

At some point I always get the error below:

 

{"http_status": 401, "raw": ".......Unauthorized....This server could not verify that you\nare authorized to access the document\nrequested.  Either you supplied the wrong\ncredentials (e.g., bad password), or your\nbrowser doesn't understand how to supply\nthe credentials required.

 

It seems like the session expires. How can I fix this?

Thanks.

2 REPLIES 2
dbu
Staff
Staff

Hi @AntonioM ,

 

What profile does the user have ? Could you please try with super_admin user and share the outcome?


Regards!

Regards!
If you have found a solution, please like and accept it to make it easily accessible for others.
AntonioM
New Contributor

Hi @dbu ,

 

I'm using a REST-API administrator with read-write permissions. Previously I also used a super-admin user and I got the same error.

 

Regards

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors