Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

getProxies() - Read the proxies assigned to the communication service

Function:

BcAdminCommunicationService.getProxies()

Reads all the proxies to which the specified communication service is assigned and returns a dictionary with proxy names and proxy objects (bc_object (BcObject of type BcObjectType.PROXY)).

Parameters:

bc_object (BcObject of type BcObjectType.COMMUNICATION_SERVICE)

Communication service whose proxy assignment is to be read.

Return:

Dictionary with the name-object pairs of all the proxies to which the communication service is assigned.

Exceptions:

BcObjectException, BcToolException

Note:

The list of proxy names can also be read via the proxies property.

Example:

...
import BcAdminCommunicationService
...
getProps={"host": "bchost01", "install-path":"/opt/ibm/sna/bin"} 
cs_obj=BcAdminCommunicationService.getObject(getProps) 
proxyDicn=BcAdminCommunicationService.getProxies(cs_obj) 
for proxy_name, proxy_obj in proxyDicn.iteritems():
  print "handle proxy " + proxy_name
...