Cumulocity API Services / com.softwareag.jc.cumulocity.services.api / ManagedObjectService / get

get

fun get(id: String, responder: RequestResponder<ManagedObject>): Unit

Fetch the managed object using the cumulocity internal id

Parameters

id - internal id as generated by cumulocity

responder - callback function to which the RequestResponder<ManagedObject> instance will be communicated to

fun get(id: String, type: String, responder: RequestResponder<ManagedObject>): Unit

Fetch the managed object using the external id for the given type. Refer to the Device Management console in cumulocity to find the details on an assets external ids and types.

Parameters

id - external id registered in cumulocity

type - the label of the external id registered in Cumulocity

responder - callback function to which the RequestResponder<ManagedObject> instance will be communicated to