JSON API » phones » phones/hardware/count

Counts the number of telephone lines in other customers with the same hardware address. This function is rarely used.

Input parameters

Requires authentication and the phones role privilege.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
addressStringHardware address. Multiple addresses may be specified, separated by spaces and/or commas.Yes
customerIntegerID of customer.NoCustomer of authentication user.

Responses

CodeDescription
200Success.
400Invalid customer specified.
401The authentication details provided are invalid.
402Your role does not allow this.

Data returned

Count of telephone lines.

Example: With required parameters

http://enswitch.example.com/api/json/phones/hardware/count/?auth_username=user;auth_password=password;address=00:11:22:33:44:55

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":{ "count":1 } }

Change history

VersionChanges
3.13Function added.