Cumulocity API Services / com.softwareag.jc.cumulocity.services.api / CumulocityConnectionFactory / connection

connection

fun connection(tenant: String, serverInstance: String): CumulocityConnectionFactory.CumulocityConnection

Returns a connection object for the given tenant and instance

Parameters

tenant - the tenant that you registered with cumulocity e.g. frpresales

serverInstance - the url of the instance to which you want to connect e.g. cumulocity.com

Return
CumulocityConnection an instance that you can use to connect and run the services as shown above