CiscoDevNet / intersight-python

Cisco Intersight Python
Apache License 2.0
12 stars 4 forks source link

Include proxy in Authentication example #59

Closed 3191110276 closed 2 months ago

3191110276 commented 4 months ago

The Authentication example does not include any proxy settings right now. It would be ideal if the function included the option for setting a proxy.

For example:

def get_api_client(api_key_id, api_secret_file = None, private_key_string=None, endpoint="https://intersight.com", proxy=""):
   ...
   if proxy != "":
      configuration.proxy = proxy

   return intersight.ApiClient(configuration)
the-akhil-nair commented 2 months ago

Thank you for the suggestion. Following PR will allow end user to mention the proxy for their network configuration: https://github.com/cisco-intersight/intersight_python_examples/pull/15

Closing the issue as the examples are updated now.