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

Function:

BcAdminProxy.getAssignment()

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

Parameters:

bc_object (BcObject of type BcObjectType.PROXY)

Proxy 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

Example:

...
import BcAdminLu62Gateway 
import BcAdminProxy
... 
proxy_obj=BcAdminProxy.getObject("BCProxy") 
gw_dicn=BcAdminProxy.getAssignment(proxy_obj, "lu62gateway") 
gw_name=gw_dicn.keys()[0]
gw_obj=gw_dicn[gw_name]
...