Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

create() - Add communication service to the configuration

Function:

BcAdminCommunicationService.create()

A communication service, whose properties you must pass to the MC-CLI in a dictionary, is added to the configuration.

Parameters:

props (Dictionary)

Dictionary with the key-value pairs for the properties that are to be assigned to the communication service. You can find the possible values for key in Properties of a communication service .
The properties host, install-path, cp-name, cp-network and, in the case of non-local communication services, admin-port and admin-pw must be specified. All the other properties are either optional or set to the default values.

Return:

(BcObject of type BcObjectType.COMMUNICATION_SERVICE)

The communication service added to the configuration.

Exceptions:

BcParameterException, BcObjectException, BcToolException

Example:

....
import BcAdminCommunicationService
...
creProps= {"host": "bchost01", "install-path": 
"/opt/ibm/sna/bin", "cp-name": "bccpn101", "cp-network": "P390",
"admin-port". "31002", "admin-pw": "admin"}
newCS=BcAdminCommunicationService.create(creProps)
...