.. _hunt_group_data_export:

Hunt Group Data Export
----------------------


.. _19.3.4-PB5|EKB-8547:
.. _21.2|EKB-8547:


Filename:  ``<YYYY-MM-DD_HHMM>_hunt_group.json.gz``

Layout:

.. tabularcolumns:: |p{4.5cm}|p{9cm}|p{1cm}|p{1cm}|


+-------------------------+--------------------------------------------------------------+-----------+---------+
| ELEMENT                 | DESCRIPTION                                                  | DATA TYPE | VERSION |
+=========================+==============================================================+===========+=========+
| provider_name           | Name of the Provider                                         | string    | v2      |
+-------------------------+--------------------------------------------------------------+-----------+---------+
| reseller_name           | Name of the Reseller                                         | string    | v2      |
+-------------------------+--------------------------------------------------------------+-----------+---------+
| customer_name           | name of the customer                                         | string    | v1      |
+-------------------------+--------------------------------------------------------------+-----------+---------+
| division_name           | Intermediate Node (e.g                                       | string    | v1      |
|                         | Division or other node)                                      |           |         |
+-------------------------+--------------------------------------------------------------+-----------+---------+
| hierarchy               | The full hierarchy path for                                  | string    | v1      |
|                         | the item being exported                                      |           |         |
+-------------------------+--------------------------------------------------------------+-----------+---------+
| location_name           | Site Name                                                    | string    | v1      |
+-------------------------+--------------------------------------------------------------+-----------+---------+
| hunt_group_name         | Name assigned to the hunt                                    | string    | v1      |
|                         | group                                                        |           |         |
+-------------------------+--------------------------------------------------------------+-----------+---------+
|                         | the internal number assigned                                 |           |         |
| pilot_number            | as the pilot for the hunt                                    | string    | v1      |
|                         | group (as configured in the                                  |           |         |
|                         | PBX)                                                         |           |         |
|                         |                                                              |           |         |
|                         | device/cucm/HuntPilot.pattern                                |           |         |
+-------------------------+--------------------------------------------------------------+-----------+---------+
|                         | the external number (Full E164                               |           |         |
| E164                    | format) assigned as the pilot                                | string    | v1      |
|                         | for the hunt group (as                                       |           |         |
|                         | configured in the PBX)                                       |           |         |
|                         |                                                              |           |         |
|                         | device/cucm/HuntPilot.pattern                                |           |         |
+-------------------------+--------------------------------------------------------------+-----------+---------+
| lines                   | Array of objects containing                                  | array     | v1      |
|                         | line information                                             |           |         |
|                         |                                                              |           |         |
|                         | device/cucm/LineGroup                                        |           |         |
+-------------------------+--------------------------------------------------------------+-----------+---------+
|                         | Internal Number assigned to                                  |           |         |
| lines.cucm_dn           | the device profile (as                                       | string    | v1      |
|                         | configured in the PBX)                                       |           |         |
|                         |                                                              |           |         |
|                         | device/cucm/LineGroup.members.member.directoryNumber.pattern |           |         |
+-------------------------+--------------------------------------------------------------+-----------+---------+
| lines.line_group_name   | Name of the line group                                       | string    | v2      |
|                         |                                                              |           |         |
|                         | device/cucm/LineGroup.members.member.name                    |           |         |
+-------------------------+--------------------------------------------------------------+-----------+---------+
|                         | Array of E164 numbers and                                    |           |         |
| E164Members             | ranges assigned to ``pilot_number``                          | string    | v4      |
|                         | in the case of N-1 mapped lines                              |           |         |
+-------------------------+--------------------------------------------------------------+-----------+---------+
| E164Members.e164_number | E164 number in the case of N-1 mapped lines                  | string    | v4      |
+-------------------------+--------------------------------------------------------------+-----------+---------+
|                         | E164 range of ``E164Members.e164_number``                    |           |         |
| E164Members.e164_range  | in the case of N-1 mapped lines                              | string    | v4      |
+-------------------------+--------------------------------------------------------------+-----------+---------+
| partition               | The route partition to which                                 | string    | v2      |
|                         | the Hunt Pilot number belongs                                |           |         |
|                         |                                                              |           |         |
|                         | device/cucm/HuntPilot.routePartitionName                     |           |         |
+-------------------------+--------------------------------------------------------------+-----------+---------+

Example


::

   [
   {
     "division_name": "Intermed1",
     "location_name": "Site1", 
     "hierarchy": "sys.57C1130EED66.Prov1.Resel1.Cust1.Intermed1.Intermed1_1.Site1",
     "lines": [
       {
         "cucm_dn": "HuntList1LineGroup1DirectoryNumber1Pattern",
         "line_group_name": "HuntList1LineGroup1"
       },
       {
         "cucm_dn": "HuntList1LineGroup1DirectoryNumber2Pattern",
         "line_group_name": "HuntList1LineGroup1"
       },
       {
         "cucm_dn": "HuntList1LineGroup2DirectoryNumber1Pattern",
         "line_group_name": "HuntList1LineGroup2"
       },
       { 
         "cucm_dn": "HuntList1LineGroup2DirectoryNumber2Pattern",
         "line_group_name": "HuntList1LineGroup2"
       }
     ], 
     "partition": "RoutePartition1",
     "hunt_group_name": "HuntList1",
     "E164": "E164AssocDAT1", 
     "reseller_name": "Resel1",
     "pilot_number": "PTCHuntPilot1", 
     "provider_name": "Prov1",
     "customer_name": "Cust1"
   },
   {
     "division_name": "",
     "location_name": "",
     "hierarchy": "sys.57C1130EED66.Prov2.Resel2.Cust2",
     "lines": [],
     "partition": "",
     "hunt_group_name": "HuntList2",
     "E164": "E164AssocDAT2",
     "reseller_name": "Resel2",
     "pilot_number": "2222",
     "provider_name": "Prov2",
     "customer_name": "Cust2"
   },
   {
     "division_name": "Intermed1",
     "location_name": "Site1",
     "hierarchy": "sys.57C1130EED66.Prov1.Resel1.Cust1.Intermed1.Intermed1_1.Site1",
     "lines": [],
     "E164Members": [
       {
         "e164_number": "\\+495557000",
         "e164_range": "10"
       }
     ],
     "partition": "",
     "hunt_group_name": "HuntList3",
     "E164": "\\+495557000",
     "reseller_name": "Resel1",
     "pilot_number": "8217500",
     "provider_name": "Prov1",
     "customer_name": "Cust1"
   }
   ]

