Associate an existing Cisco device or device profile to subscriber#
Overview#
This API POST call associates a standalone phone (Cisco device) or standalone Cisco Unified Device Profile (UDP) to a subscriber.
POST https://<hostname>/api/api/view/GS_AddDeviceToUser_VIEW
References:
Using POST GS_AddDeviceToUser_VIEW#
Associating an existing device or UDP to an existing subscriber involves the following tasks:
Identify the customer and customer hierarchy, and the site and site hierarchy.
Populate a list of users to which the Cisco device or UDP can be associated.
Assign the unassociated Cisco device or UDP.
Step 1: Identify Customer+Customer Hierarchy and Site+Site Hierarchy#
Fetch the list of customers to populate a drop-down list, and allow the user to select a customer from the list.
<Customer Name>
Refer to (GET) Customers.
Fetch available site hierarchies for the selected customer (
<Customer Name>
), and allow the user to select the relevant site.Resolve
<Customer Hierarchy>
and<Site Hierarchy>
.<Customer Hierarchy>
is the entry in the earlier step that ends with the<Customer Name>
.For example, if
<Customer Name>
is Innovia, the<Customer Hierarchy>
will besys.hcs.CS-P.CS-NB.Innovia
.<Site Hierarchy>
is the entry in the earlier step that the operator selects.For example,
sys.hcs.CS-P.CS-NB.Innovia.INV-Reading
Step 2: Retrieve users and choose a user#
Populate the list of existing users at the site, displaying
username
,firstname
, andlastname
.Refer to (GET) Subscriber PKID and Name, passing the site hierarchy (
<Site Hierarchy>
).User selects one user from the list, and resolve the choice to
<username>
.
Step 3: Assign unassociated Cisco device or UDP#
The form provides two radio buttons. The user selects one option, either Device or Device Profile:
If user selects “Device”:
For
newDeviceType
, assign the valuephone
for<device_or_udp>
Use (GET) All Phones Without Associated User to fetch all unassociated devices at the site.
User selects one device (phone) at
newDeviceName
, and the selected value is resolved to<device_or_udp_name>
.
If user selects “Device Profile”:
For
newDeviceType
, assign the valuedeviceProfile
to<device_or_udp>
Use (GET) All DeviceProfiles Without Associated User to fetch all unassociated device profiles at the site.
Users selects a device profile at
newDeviceName
, and the selected value is resolved to<device_or_udp_name>
.
Query parameters#
Parameter |
Value |
---|---|
|
Site |
Request Payload (Body)#
The box lists all parameters that could be included in the call request. These parameters are described in the table below the box:
{
"username": "<username>",
"newDeviceType": "<device_or_udp>",
"newDeviceName": "<device_or_udp_name>",
"request_meta": {
"external_id": "<external-id>",
"external_reference": "<external_)reference>",
"callback_url": "<callback_url_or_ip",
"callback_username": "<callback_username>",
"callback_password": "<callback_password>"
}
}
The table describes the parameters in the request:
Parameter |
Description |
Type |
Notes |
---|---|---|---|
|
The username. |
string |
|
|
The device type. |
string |
Device type, either Cisco device (phone), or Cisco UDP (device profile). |
|
The device name. |
string |
The name of an unassociated device or unassociated device profile name |
|
Callback details. |
object |
These details enable VOSS Automate to update the status when the initiated transaction is complete. |