✔️AA, CC, HG Audit

my_api.scripter.aa_cc_hg_audit()

This script returns the services assigned to Auto Attendants, Call Centres, and Hunt Groups. Only services are applied to these entities and there are scenarios one would need to focus services assigned to these entities.

The script makes use of the following methods:

api.get.auto_attendants()
api.get.group_call_centers()
api.get.group_hunt_groups()
api.get.user_services_assigned()

Parameters

  • service_provider_id: Service Provider ID or Enterprise ID containing the Group ID.

  • group_id: Group ID to generate the report for.

Return

  • JSON: A JSON formatted report of service packs assigned in the group.

How To Use:

from odins_spear import api

my_api= api.Api(base_url="https://base_url/api/vx", username="john.smith", password="ODIN_INSTANCE_1")
my_api.authenticate()

print(
    my_api.scripter.aa_cc_hg_audit(
        "serviceProviderId",
        "groupId"
    )
)

Example returned data (formatted):

{
  "auto_attendants": [
    {
      "serviceUserId": "my_aa",
      "services": [
        {
          "serviceName": "Alternate Numbers"
        }
      ]
    }
  ],
  "call_centers": [
    {
      "serviceUserId": "my_cc",
      "type": "Premium",
      "services": []
    },
    {
      "serviceUserId": "my_cc_2",
      "type": "Premium",
      "services": [
        {
          "serviceName": "Call Forwarding Busy",
          "isActive": false
        }
      ]
    }
  ],
  "hunt_groups": [
    {
      "serviceUserId": "my_hg_1",
      "services": [
        {
          "serviceName": "Call Forwarding Selective",
          "isActive": true
        }
      ]
    },
    {
      "serviceUserId": "my_hg_2",
      "services": [
        {
          "serviceName": "Call Forwarding Always",
          "isActive": false
        }
      ]
    },
    {
      "serviceUserId": "my_hg_3",
      "services": []
    }
  ]
}

Last updated