Arron_Golaup | 2023-08-30 16:15:41 UTC | #1
Hi Dev Forum, Is it possible to get Phone registration count per edge device via the API? I am able to see Edge registration per Phone via GET /api/v2/telephony/providers/edges/phones/{phoneId} but this is not available when querying GET/api/v2/telephony/providers/edges/phones.
Ideally would be preferred to have this property included on GET /api/v2/telephony/providers/edges/{edgeId}.
GCM Tool appears to have this capability so would like to query if this can be made available on the Genesys UI and Public API.
mostafaawad | 2023-08-30 16:29:27 UTC | #2
Arron_Golaup, post:1, topic:21777
/api/v2/telephony/providers/edges/phones
Can you try GET /api/v2/telephony/providers/edges/phones and add the expand query parameter with values status.primaryEdgesStatus,status.secondaryEdgesStatus (comma separated values) then it will get you the primary and secondary edge that each phone is registered and active on.
I assume you have the edges already retrieved so you will iterate each phone and count+1 the phone registered to each of your edges.
Hope I got to your point
Arron_Golaup | 2023-09-04 16:28:18 UTC | #3
Thank you for spotting! This has worked for me and have managed to utilize. :slightlysmilingface: I would still prefer the property in the return on GET /api/v2/telephony/providers/edges/{edgeId} as it feels like the right place but for now issue resolved.
system | 2023-10-05 16:28:33 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 21777