Nautobot with Apigee Gateway #2851
jeffkala
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The goal of this
show and tell
is simply to provide short details around using Google's Apigee services as a proxy to the Nautobot API.Tested configuration
http://<nautobot-url>/api/docs/
and click on the hyperlink on the page or navigate to swaggerThis will download the OpenAPI spec.
Back on the Apigee console when you use the Reverse Proxy mode you can directly upload the spec file, alternatively you can provide a url to the spec..
base path
(the base path in Apigee endpoint for this proxy) for Apigee to work. Then provide the target url (which would be your Nautobot instance).You can put in the target as
http://<nautobot-url>/api/
and this will work fine for standard interactions with the API via curl or home grown solutions. For example you might run this curl command.However; using the target with the appended
/api/
will breakpynautobot
and other SDKs. Because these SDKs take abase_url
and automatically append/api/
it will break the proxy API configuration. An error as seen below would happen.In order to fix this you can simply change the target in your Apigee configuration to
http://<nautobot-url>/
, once this is completed and the Apigee configuration is deployed, the SDKs will start working.This does mean you'd have to change the way you'd interact when are integrating directly with the API, to revisit the curl example above you'd now need to include
/api
in that url.Hopefully this helps some folks get started with Apigee if its a requirement for your deployment.
Beta Was this translation helpful? Give feedback.
All reactions