Replies: 2 comments 1 reply
-
Netbox doesn't support authorization in the URL. Basic Auth uses a header as well. The output you got is from the user friendly /api page which renders in a browser if you do not supply the correct Content-Type. 301 permanent redirect might be because you missed a required trailing slash after your request? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Is there any option to support with basic auth instead of token?
basic auth is the only option that I can to with The BIGIP product
בתאריך יום ו׳, 20 באוג׳ 2021 ב-17:13 מאת Stefan de Kooter <
***@***.***>:
… Netbox doesn't support authorization in the URL. Basic Auth uses a header
as well. The output you got is from the user friendly /api page which
renders in a browser if you do not supply the correct Content-Type.
301 permanent redirect might be because you missed a required trailing
slash after your request?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6993 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVIC6AKREFWRHVOIUVWSEITT5ZPIXANCNFSM5CNYBGDQ>
.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have netbox with the version of 2.9.8.
I have a load balancer (F5), which need to connect to IPAM for getting an ip address for a VIP.
I have a problem that the F5 only support connection to an api with basic auth, and not with a token.
I tried to push the authorization token into the url : POST <netbox_ip>/api?Authorization?: Token /ipam/prefixes/id/available-ips/
but when i do that im getting an response 301 Moved Permanently and the it redirect it into a GET <netbox_ip>/api?Authorization?: Token /ipam/prefixes/id/available-ips/
and I didnt get any ip address but the following response:
{"circuits":"http://NETBOX_IP/api/circuits/","dcim":"http://NETBOX_IP/api/dcim/","extras":"http://NETBOX_IP/api/extras/","ipam":"http://NETBOX_IP/api/ipam/","plugins":"http://NETBOX_IP/api/plugins/","secrets":"http://NETBOX_IP/api/secrets/","tenancy":"http://NETBOX_IP/api/tenancy/","users":"http://NETBOX_IP/api/users/","virtualization":"http://NETBOX_IP/api/virtualization/"}
I can also send a pcap file so you can see the whole traffic
Beta Was this translation helpful? Give feedback.
All reactions