Hoteling Host Service¶
Display group’s hoteling hosts list¶
-
GET
/api/v1/tenants/
(string: tenant_id)/groups/
(string: group_id)/services/hotelings/
¶ Retrieve the list of the Hoteling Host of a group.
Example request:
GET /api/v1/tenants/foo/groups/foogroup/services/hotelings/ HTTP/1.1 Host: example.com
Example response:
HTTP/1.1 200 OK Content-Type: "application/json" { "hoteling_hosts": [ { "hotelingHostId": "foogroup_z001", "lastName": "APIO Test", "firstName": "Hoteling 1", "deviceType": "Generic SIP Phone", "macAddress": "ABCDEF000001", "description": "", "transportProtocol": "Unspecified", "active": true, "enforceAssociationLimit": true, "associationLimitHours": 24, "is_associated": false }, { "hotelingHostId": "foogroup_z002", "lastName": "APIO Test", "firstName": "Hoteling 2", "deviceType": "Generic SIP Phone", "macAddress": "ABCDEF000002", "description": "", "transportProtocol": "Unspecified", "active": true, "enforceAssociationLimit": true, "associationLimitHours": 24, "is_associated": true, "guestAssociationDateTime": "2019-04-02 12:34:28", "guestLastName": "Test", "guestFirstName": "Test", "guestExtension": "4000" } ] }
- Response JSON Object:
hoteling_hosts (array) – a list of hoteling hosts. See Group Hoteling Host List Item.
- Note:
When a guest is associated, guest related fields are reported.
- Status Codes:
200 OK – no error
404 Not Found – the service is not assigned to the user
Display group’s hoteling host instance¶
-
GET
/api/v1/tenants/
(string: tenant_id)/groups/
(string: group_id)/services/hotelings/
(string: instance_name)/
¶ Retrieve the settings of the Hoteling Host service of a group. These are “hidden” End Users dedicated to be Hoteling Hosts only.
Example request:
GET /api/v1/tenants/foo/groups/foogroup/services/hotelings/foogroup_z002@sip.netaxis.be/ HTTP/1.1 Host: example.com
Example response:
HTTP/1.1 200 OK Content-Type: "application/json" { "lastName": "APIO Test", "firstName": "Hoteling 2", "deviceType": "Generic SIP Phone", "macAddress": "ABCDEF000002", "description": "", "transportProtocol": "Unspecified", "active": true, "enforceAssociationLimit": true, "associationLimitHours": 24, "is_associated": true }
- Response JSON Object:
lastName (string) – See lastName from Group Hoteling Host List Item.
firstName (string) – See firstName from Group Hoteling Host List Item.
deviceType (string) – See deviceType from Group Hoteling Host List Item.
macAddress (string) – See macAddress from Group Hoteling Host List Item.
description (string) – See description from Group Hoteling Host List Item.
transportProtocol (string) – See transportProtocol from Group Hoteling Host List Item.
active (boolean) – See active from Group Hoteling Host List Item.
enforceAssociationLimit (boolean) – See enforceAssociationLimit from Group Hoteling Host List Item.
associationLimitHours (integer) – See associationLimitHours from Group Hoteling Host List Item.
is_associated (boolean) – See is_associated from Group Hoteling Host List Item.
guestAssociationDateTime (datetime) – See guestAssociationDateTime from Group Hoteling Host List Item.
guestLastName (string) – See guestLastName from Group Hoteling Host List Item.
guestFirstName (string) – See guestFirstName from Group Hoteling Host List Item.
guestPhoneNumber (string) – See guestPhoneNumber from Group Hoteling Host List Item.
guestExtension (string) – See guestExtension from Group Hoteling Host List Item.
guestLocationDialingCode (string) – See guestLocationDialingCode from Group Hoteling Host List Item.
- Note:
When a guest is associated, guest related fields are reported.
- Status Codes:
200 OK – no error
404 Not Found – the service is not assigned to the user
Create group’s hoteling host instance¶
-
POST
/api/v1/tenants/
(string: tenant_id)/groups/
(string: group_id)/services/hotelings/
¶ Create a new Hoteling Host of a group.
Example request:
POST /api/v1/tenants/foo/groups/foogroup/services/hotelings/ HTTP/1.1 Host: example.com Content-Type: "application/json" { "lastName": "APIO Test", "firstName": "Hoteling 2", "deviceType": "Generic SIP Phone", "macAddress": "ABCDEF000002" }
- Request JSON Object:
lastName (string) – See lastName from Group Hoteling Host List Item.
firstName (string) – See firstName from Group Hoteling Host List Item.
deviceType (string) – See deviceType from Group Hoteling Host List Item.
macAddress (string) – See macAddress from Group Hoteling Host List Item.
description (string) – See description from Group Hoteling Host List Item.
transportProtocol (string) – See transportProtocol from Group Hoteling Host List Item.
active (boolean) – See active from Group Hoteling Host List Item.
enforceAssociationLimit (boolean) – See enforceAssociationLimit from Group Hoteling Host List Item.
associationLimitHours (integer) – See associationLimitHours from Group Hoteling Host List Item.
Example response:
- Response:
Similar to GET instance method response. In addition, the hotelingHostId field. When a guest is associated, guest related fields are reported.
- Status Codes:
200 OK – no error
404 Not Found – the service is not assigned to the user
400 Bad Request – error during the update
Configuration Information for the Password¶
The Password of the “hidden” End User acting as Hoteling Host is generated according to the same settings as for the regular End Users.
It means the following parameters:
"NEW_PASSWORD_RESET_GEN": true,
"MINIMUM_PASSWORD_RULES": {
"END_USER" : {
"PASSWORD_MIN_SPECIAL_CHARACTERS": 1,
"PASSWORD_MIN_UPPERCASE_LETTERS": 1,
"PASSWORD_MIN_LOWERCASE_LETTERS": 1,
"PASSWORD_MIN_DIGITS": 1,
"PASSWORD_MIN_LENGTH": 8
}
},
- Settings description:
NEW_PASSWORD_RESET_GEN: If true the new logic based on rules will be used for the random passwords generation. Else the legacy hardcoded config will be used. Default is true. Note that this is a global parameter.
MINIMUM_PASSWORD_RULES.**END_USER**: (from 1.11.0) minium password rules for End Users. Default are the ones in the example. Please note that this settings will also be used when creating hidden users for APIO features.
Update group’s hoteling host instance¶
-
PUT
/api/v1/tenants/
(string: tenant_id)/groups/
(string: group_id)/services/hotelings/
(string: instance_name)/
¶ Update the settings of the Hoteling Host service of a group.
Example request:
PUT /api/v1/tenants/foo/groups/foogroup/services/hotelings/foogroup_z002@sip.netaxis.be/ HTTP/1.1 Host: example.com Content-Type: "application/json" { "firstName": "Hoteling Test 2", "macAddress": "ABCDEF000004" "active": true, "enforceAssociationLimit": true, "associationLimitHours": 24 }
- Request JSON Object:
lastName (string) – See lastName from Group Hoteling Host List Item.
firstName (string) – See firstName from Group Hoteling Host List Item.
macAddress (string) – See macAddress from Group Hoteling Host List Item.
description (string) – See description from Group Hoteling Host List Item.
transportProtocol (string) – See transportProtocol from Group Hoteling Host List Item.
active (boolean) – See active from Group Hoteling Host List Item.
enforceAssociationLimit (boolean) – See enforceAssociationLimit from Group Hoteling Host List Item.
associationLimitHours (integer) – See associationLimitHours from Group Hoteling Host List Item.
removeGuestAssociation (boolean) – See removeGuestAssociation from Group Hoteling Host List Item..
Example response:
- Response:
Similar to GET instance method response. When a guest is associated, guest related fields are reported.
- Status Codes:
200 OK – no error
404 Not Found – the service is not assigned to the user
400 Bad Request – error during the update
Delete group’s hoteling hosts list¶
-
DELETE
/api/v1/tenants/
(string: tenant_id)/groups/
(string: group_id)/services/hotelings/
¶ Delete a list of Hoteling Hosts of a group.
Example request:
DELETE /api/v1/tenants/foo/groups/foogroup/services/hotelings/ HTTP/1.1 Host: example.com Content-Type: "application/json" { "hoteling_hosts": [ "foogroup_z001@sip.netaxis.be", "foogroup_z002@sip.netaxis.be" ] }
- Request JSON Object:
hoteling_hosts (array) – a list of hoteling_hosts ids only.
Example response:
HTTP/1.1 200 OK Content-Type: "application/json" {}
- Status Codes:
200 OK – no error.
Delete group’s hoteling host instance¶
-
DELETE
/api/v1/tenants/
(string: tenant_id)/groups/
(string: group_id)/services/hotelings/
(string: instance_name)/
¶ Delete an Hoteling Hosts of a group.
Example request:
DELETE /api/v1/tenants/foo/groups/foogroup/services/hotelings/foogroup_z002@sip.netaxis.be/ HTTP/1.1 Host: example.com Content-Type: "application/json" {}
Example response:
HTTP/1.1 200 OK Content-Type: "application/json" {}
- Status Codes:
200 OK – no error.
Group Hoteling Host List Item¶
Name |
Type |
Methods |
Description |
||
---|---|---|---|---|---|
GET |
POST |
PUT |
|||
hotelingHostId |
String |
C |
F |
F |
The host’s generated ID. Returned only after POST and GET list. |
firstName |
String |
A |
R |
O |
The host’s first name. |
lastName |
String |
A |
R |
O |
The host’s last name. |
deviceType |
String |
A |
R |
O |
The host’s device type. |
macAddress |
String |
A |
R |
O |
The host’s mac address of the device. |
description |
String |
A |
O |
O |
The host’s description of the device. |
transportProtocol |
String |
A |
O |
O |
The host’s transport protocol of the device. |
active |
Boolean |
A |
O |
O |
The host’s active status. Default True. |
associationLimitHours |
Integer |
A |
O |
O |
The host’s association limit hours. |
enforceAssociationLimit |
Boolean |
A |
O |
O |
The host’s enforce association limit status. |
removeGuestAssociation |
Boolean |
N |
F |
O |
Removes any host association to guests. |
is_associated |
Boolean |
A |
F |
F |
The host association status. |
guestAssociationDateTime |
DateTime |
C |
F |
F |
The guest association date time. See Datetime. |
guestLastName |
String |
C |
F |
F |
The guest last name. |
guestFirstName |
String |
C |
F |
F |
The guest first name. |
guestPhoneNumber |
String |
C |
F |
F |
The guest phone number. |
guestExtension |
String |
C |
F |
F |
The guest extension. |
guestLocationDialingCode |
String |
C |
F |
F |
The guest location dialing code Groups that are part of a Enterprise. |