question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Management API : add a status section in device registration data

See original GitHub issue

Proposal : add a status section in the device payload returned by the device registry. This section is optional and written only by the device registry implementation. It can not be updated by the user. Any data inserted in the status section by the user in a PUT request will be ignored.

This section would be a json object at the root level off the device registration data :

{
  "enabled": true,
  "defaults": { … },
  "via": [ … ],
  "viaGroups": [ … ],
  "memberOf": [ … ],
  "ext":  { … },
  "status" : {
          created: $date-time
          last-update: $date-time
          last-user: $username
   }
}

It allows to have a overview of recent management activity for the devices. Screenshot : https://marvelapp.com/5gbji22/screen/68233009

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
kaniyancommented, Sep 15, 2020

FMPOV this status should not be only added to the device registration data and it should also be available to other device registry resources such as tenant and credentials.

As the credentials are part of the device, that doesn’t make much sense me. For the tenant, I agree.

We are offering separate rest methods for the credentials. FMPOV we are already treating them as different resource. Also credentials can be updated irrespective of the devices. Hence I think its also good to have a status section for the credentials.

0reactions
fkaltnercommented, Sep 10, 2020

Hi @ctron & @jbtrystram !

I am a bit confused about this issue: the model classes in Hono, i.e. the model for a device (https://github.com/eclipse/hono/blob/master/services/device-registry-base/src/main/java/org/eclipse/hono/service/management/device/Device.java) already contain that status property. This is not yet implemented as far as I can see which is why I took a look at it, since it would be the right place for two system-internal flags required for #2053 which must not be editable by a user.

So it seems like this issue has been implemented to some extent. What was the reason to introduce that status property without a complete implementation?

Does it makes sense to complete the implementation based on what is currently on master FYPOV?

Read more comments on GitHub >

github_iconTop Results From Across the Web

User Device Management API - TechDocs - Broadcom Inc.
A user can register a device for his authentication purpose. This REST API is consumed by the client application for registering an device...
Read more >
Enroll and provision a device | Android Management API
Note: If you're provisioning a device from a sign-in URL, you need to create an enrollment token differently. See Sign-in URL for details....
Read more >
SAM.gov Opportunity Management API | GSA Open Technology
The Opportunity Management API will allow authorized users to submit and request Opportunities data. Note: The specifications on this page are for a...
Read more >
Quickstart: Configure a client application to access a web API
Select API permissions > Add a permission > My APIs. Select the web API you registered as part of the prerequisites. Delegated permissions...
Read more >
REST API reference - ServiceNow Docs
The CdmSnapshotApi provides endpoints that enable you to publish, unpublish, and re-validate snapshots in Configuration Data Management (CDM).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found