Forum Discussion
BIG-IQ Rest API: basic authentication failure
Hello,
Please bare with me as I'm new to F5 product. I ran into authentication failure when attempting to make a Rest API call to the Big-IQ. Here are what happening: after bringing up a Big-IQ VM, I was able to login and apply the license to activate it. I was able to navigate through pages in the GUI. However, when I attempted to make a simple Rest API call using the same username/password to login to the GUI, it always failed with "401 Authorization Required". Nothing fancy, I'm using the basic authentication as following:
$ curl -k -u admin:admin -H "Content-Type:application/json" -X GET
401 Authorization Required
webd
I tried different API and got the same error. I also tried to Base64 encode the credentials and explicitly specified it as an HTTP header, but it failed the same way:
$ curl -k -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Content-Type:application/json" -X GET
Did I miss something in order to grant API access permission for the account? Btw, I'm using a trial license and the account has Administrator role. Thanks in advance!
4 Replies
- Stanislas_Piro2
Cumulonimbus
Hi,
Are you using trial or evaluation license?
if you are using trial license with trial virtual appliance, the version is 11.3 which does not support REST icontrol.
if you are using an evaluation license, which version did you install?
- Khang_307109
Nimbostratus
I decided to try the earlier version (BigIQ version 5.0). Basic authentication worked just fine. I'm able to make Rest API calls with no issues. I'm wondering if anyone runs into the same issue with BigIQ v5.1?
I did. Same thing.
/Patrik
Basic authentication is disabled by default since 5.1:
https://support.f5.com/csp/article/K43725273
/Patrik
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
