Proxy
c8y has first class support for corporate proxies. The proxy can either be configured globally by using environment variables, or by using parameters.
Setting proxy using environment variables​
- Shell
- PowerShell (native)
- PowerShell (PSc8y)
export HTTP_PROXY=http://10.0.0.1:8080
export NO_PROXY=localhost,127.0.0.1,edge01.server
export HTTP_PROXY=http://10.0.0.1:8080
export NO_PROXY=localhost,127.0.0.1,edge01.server
$env:HTTP_PROXY = "http://10.0.0.1:8080"
$env:NO_PROXY = "localhost,127.0.0.1,edge01.server"
Overriding proxy settings for individual commands​
The proxy environment variables can be ignore for individual commands by using the noProxy
parameter.
- Shell
- PowerShell (native)
- PowerShell (PSc8y)
c8y devices list --noProxy
c8y devices list --noProxy
New-DeviceCollection -NoProxy
Or, the proxy settings can be set for a single command by using the proxy
parameter:
- Shell
- PowerShell (native)
- PowerShell (PSc8y)
c8y devices list --proxy "http://10.0.0.1:8080"
c8y devices list --proxy "http://10.0.0.1:8080"
New-DeviceCollection -Proxy "http://10.0.0.1:8080"