Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

removeProxy() - Remove proxy from proxy cluster

Function:

BcAdminProxyCluster.removeProxy()

Removes the specified proxy from the proxy cluster and enters it in the list of individual (standalone) proxies.

Parameters:

bc_object (BcObject of type BcObjectType.PROXY_CLUSTER).

Proxy cluster in which the proxy is to be removed.

proxy_object (BcObject of type BcObjectType.PROXY).

Proxy that is to be removed from the cluster.

Return:

None

Exceptions:

BcObjectException, BcParameterException, BcToolException

Note:

  • If the specified proxy is the master proxy and the proxy cluster contains further proxies then the function call is rejected.

  • When the last proxy is removed from a cluster then the proxy cluster is also automatically removed.

Example:

...
import BcAdminProxyCluster
import BcAdminProxy
...
clstr_obj=BcAdminProxyCluster.getObject("BCCluster")
proxy_dicn=BcAdminProxyCluster.getList(clstr_obj, "proxy")
proxy_obj=proxy_dicn["BCProxy"]
BcAdminProxyCluster.removeProxy(clstr_obj,proxy_obj)
...