Legacy Dev Forum Posts

 View Only

Sign Up

Find unused WebRTC stations?

  • 1.  Find unused WebRTC stations?

    Posted 06-05-2025 18:19

    VaunMcCarthy | 2021-06-13 06:23:44 UTC | #1

    I"m hoping this can be achieved with the CLI but in my quick reading I'm not very optimistic.

    I'm after a query/command structure to do the following:

    1 - Find a list of all WebRTC phones 2 - Query if the user associated with that WebRTC phone is inactive or deleted and if they are... 3 - Delete the WebRTC phone

    Or is there a better way of achieving this?


    John_Carnell | 2021-06-14 12:17:19 UTC | #2

    Hi Vaun,

    Unfortunately, the CLI is not going to do all of these things out of the box. It can easily do this with a little bit of Powershell or python glue code. Let me chat with a few people on my team and see if anyone has some bandwidth to throw together an example.

    Thanks, John Carnell Manager, Developer Engagement


    VaunMcCarthy | 2021-06-14 20:31:20 UTC | #3

    Thanks John, keen to see what they can come up with as I could probably re-use the same logic for other things.


    John_Carnell | 2021-06-16 17:25:03 UTC | #4

    Hi Vaun,

    Some of our dev evangelists took your question and put together an example of how to do this using the CLI/Powershell and the CLI/Python to do.

    https://github.com/MyPureCloud/quick-hits-cli/tree/main/telephony

    Let me know your thoughts. Thanks, @anon28885283 for putting these script examples together.

    Thanks, John Carnell Manager, Developer Engagement


    system | 2021-07-16 17:39:53 UTC | #5

    This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 11190