Before using an HTTP proxy server to access and manage cloud services, you must set the environment variables http_proxy and https_proxy.

Set the http_proxy environment variable

Select a configuration method for your system, and run the following command to set the http_proxy environment variable.

  • Linux, Unix, and macOS:
    export http_proxy=http://192.168.1.2:1234
    export http_proxy=http://proxy.example.com:1234
  • Windows:
    set  http_proxy=http://192.168.1.2:1234
    set  http_proxy=http://proxy.example.com:1234
    Note The setx command can be used to set environment variables permanently. After the configuration is complete, you must restart the terminal.

Set the https_proxy environment variable

Select a configuration method for your system, and run the following command to set the https_proxy environment variable.

  • Linux, Unix, and macOS:
    export https_proxy=http://192.168.1.2:5678
    export https_proxy=http://proxy.example.com:5678
  • Windows:
    set https_proxy=http://192.168.1.2:5678
    set https_proxy=http://proxy.example.com:5678