Trusted Networks (/network_permission/)

You can test API methods on the interactive API browser page and without writing code
Some of the resources described on the page may not be available by default due to the type of application (see Creating and authorizing applications).

The resource Network permission group is required to restrict access to an extension number to one or more IP addresses. 

Trusted networks operate only if the extension number authentication (Authentication type) with the type network or both (both = network + digest) is used. When authorizing an extension number with the type network/both, it is necessary to specify the network permission group in the settings of the extension number or client: first, the network permission group of the extension number is checked, and the client value is checked only if the value for the extension number is missed. In the case of the "network authorization type, password authorization is not requested for the call and it is authorized by the IP address. 

Description of Data Structures 

Name 

Type 

Mandatory 

Description 

Name 

Type 

Mandatory 

Description 

network_address 

array [string] 

no 

List of the form network_address/mask 

network_count  

integer 

no 

Quantity of allowed networks in the list network_address 

client_id 

integer 

yes 

Identifier of the client 

group_id 

integer 

yes 

Identifier of the trusted network group 

name 

string 

yes 

Name of the trusted network group 

"Client" Section Resources 

POST /client/{client_id}/network_permission/ 

Add the trusted network group 

URL Options 

Name 

Type 

Name 

Type 

client_id 

string 

Request Options 

Name 

Type 

Name 

Type 

network_address 

array [string] 

name 

string 

Response Options 

Name 

Type 

Name 

Type 

network_address 

array [string] 

network_count  

long 

id 

long 

client_id 

long 

name 

string 

GET /client/{client_id}/network_permission/ 

Get the list of all groups of the trusted networks 

URL Options 

Name 

Type 

Name 

Type 

client_id 

string 

Response Options 

Name 

Type 

Name 

Type 

network_address 

array [string] 

network_count  

long 

id 

long 

client_id 

long 

name 

string 

PUT /client/{client_id}/network_permission/{group_id} 

Change the trusted network group 

URL Options 

Name 

Type 

Name 

Type 

group_id 

integer 

client_id 

string 

Request Options 

Name 

Type 

Name 

Type 

network_address 

array [string] 

name 

string 

Response Options 

Name 

Type 

Name 

Type 

network_address 

array [string] 

network_count  

long 

id 

long 

client_id 

long 

name 

string 

GET /client/{client_id}/network_permission/{group_id} 

Request parameters of the trusted network group by its ID 

URL Options 

Name 

Type 

Name 

Type 

group_id 

integer 

client_id 

string 

Response Options 

Name 

Type 

Name 

Type 

network_address 

array [string] 

network_count  

long 

id 

long 

client_id 

long 

name 

string

DELETE /client/{client_id}/network_permission/{group_id} 

Delete the trusted network group 

URL Options 

Name 

Type 

Name 

Type 

group_id 

integer 

client_id 

string