Can't determine total number of alarms

Hi all,

I’m using the CLI to determine the total number of alarms. Unfortunately, I am limited to “100”.

The OpenAPI docs state:

The role ROLE_ALARM_READ is not required, but if a user has this role, all the alarms on the tenant are counted. Otherwise, inventory role permissions are used to count the alarms and the limit is 100.

But, I have an admin user, I should be able to see all alarms:

~
❯ c8y currentuser get | jq . | grep ROLE_ALARM   
      "id": "ROLE_ALARM_READ",
      "name": "ROLE_ALARM_READ",
      "self": "https://<redacted>/user/roles/ROLE_ALARM_READ"
      "id": "ROLE_ALARM_ADMIN",
      "name": "ROLE_ALARM_ADMIN",
      "self": "https://<redacted>/user/roles/ROLE_ALARM_ADMIN"

~
❯ c8y alarms count                            
100

Any idea why?

Best, Christoph

Hi Christoph,

I have created a ticket to analyze the the observed behaviour. I can confirm that I can reproduce it.

2 Likes