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.
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.
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.
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
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.