Skip to Main Content
Cumulocity IoT Feedback Portal
Status Future consideration
Created by John Fisher
Created on May 8, 2023

Export/Import Device Management->Device protocol XML resource mapping

If a user configures a bunch of Lwm2m XMLs and links each resource with MEAs or custom actions inside one tenant, this work cannot be easily exported to another tenant and thus requires manually setting all of this again.

  • Attach files
  • Admin
    Aaron Raab
    Reply
    |
    Sep 8, 2023

    Hi John,

    sharing resources and configurations across tenants is something we in general want to improve – not only in regard to LwM2M. With this being a bigger and complex topic, this is unfortunately nothing that we can provide in the next month. Until then, we would propose to use the following workaround:


    First you can extract the object resource mapping from the source tenant:

    GET /service/lwm2m-agent/objectResourceMappings

    This will return the full list of object resource mappings in an array as response.


    Then for each particular object resource mapping, you can create the object mapping in target tenant with

    POST /service/lwm2m-agent/objectResourceMappings/json

    endpoint. Make sure this is queried with the credentials of the target tenant and also the "id" field from the json should be removed when sending the request.


    Best regards,

    Aaron

  • Admin
    Aaron Raab
    Reply
    |
    May 31, 2023

    Hi John,

    thank you very much for raising your idea! We are currently in the process of collecting LwM2M related ideas, which we will discuss next week. I will keep you updated within this comment section.