VMware Networking Community
KingstonBlack
Contributor
Contributor

Using VMware NSX Automation SDK for Java via a proxy

Hi,

For my customer, I've been using VMware NSX Automation SDK for Java to automate provisioning of NSX-T resources.  Creating an ApiClient via ApiClients.newRestClient() has been straightforward and I am able to achieve what I need to with the stubs it creates.

However, one immovable requirement that my customer has is that connection from the provisioner to NSX-T must be via an HTTP proxy, but I can't see any facility in the SDK for configuring this.

I've managed to achieve what I need using reflection to set the `proxy` field in the Apache HTTP client used by the SDK.  It works without any issues, but feels like an ugly and brittle solution to what should in my mind be a simple configuration option.  What am I missing?

Thanks in advance.

Labels (1)
0 Kudos
0 Replies