manage
create-proxy-config
Create the resources that are needed to provide your proxy configuration to IBM Software Hub.
- Required role
-
Instance administrator An instance administrator can run this command.
Extended description
If you have a cluster-wide proxy configuration, you can use the create-proxy-config command to generate configuration resources that
support the following types of connections:
httpProxyhttpsProxynoProxy
After you create the proxy configuration resources, you must apply the configuration by running
the cpd-cli
manage
enable-proxy command.
Syntax
cpd-cli manage create-proxy-config \
--cpd_instance_ns=<project-name> \
[--proxy_host=<proxy-server-hostname>] \
[--proxy_port=<proxy-server-port>] \
[--proxy_user=<proxy-server-username>] \
[--proxy_password=<proxy-server-password>] \
[--no_proxy=<comma-separated-list-of-domain-names
>] \
[-vv][-vv][-vvv]
Arguments
The create-proxy-config command has no arguments.
Options
| Option | Description |
|---|---|
--cpd_instance_ns |
The project (namespace) where you want to create or update the proxy
configuration. If there are any projects tethered to this project, the configuration will also apply
to the tethered projects.
|
--no_proxy |
5.1.1 and later This option is
available in IBM Software Hub Version 5.1.1 and later. A comma-separated list of domain names that should not be routed through the proxy server.
|
--proxy_host |
The host name or IP address of your proxy
server.
|
--proxy_password |
The password of the specified proxy server user, if the proxy server
requires authentication.
|
--proxy_port |
The port number to connect to on the proxy
server.
|
--proxy_user |
The name of a proxy server user, if the proxy server requires
authentication.
|
-v-vv-vvv |
Display verbose output. Options are listed from least verbose to the most verbose.
|
Examples
It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For details, see Setting up installation environment variables.
- Create the configuration resources for an HTTP proxy server that does not require authentication
-
cpd-cli manage create-proxy-config \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --proxy_host=${PROXY_HOST} \ --proxy_port=${PROXY_PORT} - Create the configuration resources for an HTTP proxy server that requires authentication
-
cpd-cli manage create-proxy-config \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --proxy_host=${PROXY_HOST} \ --proxy_port=${PROXY_PORT} \ --proxy_user=${PROXY_USER} \ --proxy_password=${PROXY_PASSWORD}