Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

getAssignment() - Read the openUTM-LU62 Gateway or communication service assigned to the proxy cluster

Function:

BcAdminProxyCluster.getAssignment()

Reads the CICS component (openUTM-LU62 Gateway or communication service) that is assigned to the specified proxy cluster and returns a dictionary containing the element (name, object).

Parameters:

bc_object (BcObject of type BcObjectType.PROXY_CLUSTER)

Proxy cluster object whose CICS component is to be read.

comp_type (String)

Type of component BcObjectType.LU62GATEWAY.toString() or BcObjectType.COMMUNICATION_SERVICE.toString().

Return:

Dictionary with one element containing the read component (name and BcObject of type BcObjectType.LU62GATEWAY or BcObjectType.COMMUNICATION_SERVICE).

Exceptions:

BcObjectException, BcParameterException

Note:

The relevant component of the master proxy is read. It is possible that other components are assigned to other proxies in this cluster. These can be read using the proxy function getAssignment() in BcAdminProxy.

Example:

...
import BcAdminLu62Gateway 
import BcAdminProxyCluster
... 
clstr_obj=BcAdminProxyCluster.getObject("BCCluster") 
gw_dicn=BcAdminProxyCluster.getAssignment(clstr_obj, "lu62gateway") 
gw_name=gw_dicn.keys()[0]
gw_obj=gw_dicn[gw_name]
...