Documentation

timeman.networkrange.get

The method is used to get the office network IP ranges.

Parameters

None.

Call example

JavaScript

BX24.callMethod('timeman.networkrange.get', {}, function(result){
	if(result.error())
	{
		console.error(result.error().ex);
	}
	else
	{
		console.log(result.data());
	}
});

PHP

$result = restCommand('timeman.networkrange.get', Array(), $_REQUEST["auth"]);

Call example

{    
	"result": [
		{"ip_range":"10.0.0.0-10.255.255.255","name":"Office network 10.x.x.x"},
		{"ip_range":"172.16.0.0-172.31.255.255","name":"Office network 172.x.x.x"},
		{"ip_range":"192.168.0.0-192.168.255.255","name":"Office network 192.168.x.x"}
	]
} 

Description of keys

  • ip_range - IP network range.
  • name - range name.

Example of response in case of an error:

{
    "error": "ACCESS_ERROR",
    "error_description": "You don't have access to user this method"
}
  • Key error - error code.
  • Key error_description - brief error description.

Possible error codes

CodeDescription
ACCESS_ERRORSpecified method is available only to the administrator.


User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix Inc.», 2001-2021, «Bitrix Inc.», 2021