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 outbound service to the configuration

Function:

BcAdminOutboundService.create()

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

Parameters:

object_name

Name of the BeanConnect outbound service.

proxy_object
(BcObject of type BcObjectType.PROXY / BcObjectType.PROXY_CLUSTER)

Proxy or proxy cluster to which the outbound service is to be assigned.
The specification of a proxy_object of type BcObjectType.PROXY is not permitted if the proxy belongs to a proxy cluster. In this case, the proxy cluster object must be specified as a parameter here.

props (kw)

Dictionary with the key-value pairs for the properties that are to be assigned to the outbound service. You can find the possible values for key in Properties of an outbound service .

Return:

(BcObject of type BcObjectType.OUTBOUND_SERVICE)

The outbound service added to the configuration.

Exceptions:

BcParameterException, BcObjectException, BcToolException

Example:

...
import BcAdminOutboundService
import BcAdminProxy
...
proxy_obj=BcAdminProxy.getObject("BCProxy")
crPr={"desc":"created","dial-type":BcDef.TYPE DIALOG,\
                                         "reply-timer.sec": "90"}
os_obj=BcAdminOutboundService.create("OSRV",proxy_obj,props=crPr)
...