Просмотр DHCP пула в рамках одной группы
GET /api/admin/v1/dhcp-subnets/{subnet}
int subnet, уникальный идентификатор DHCP пула
int
200 OK
OK
Успешный ответ
{ "id": 1807, "subnet": "192.168.204.0/24", "relay": "[\"192.168.204.1\"]", "option_routers": "192.168.204.1", "pools": [ { "id": 1862, "start_address": "192.168.204.240", "end_address": "192.168.204.253" } ], "dhcp_subnet_group": { "id": 65, "title": "Гуппа" } }
401 Unauthorized
Unauthorized
Токен авторизации не передан или не валидный Получение токена
curl -k --request POST \ --url 'https://your-domain/api/admin/v1/dhcp-subnets/{subnet}' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data '{ "subnet": 0 }'
$data = array ( 'subnet' => 0, ); $context = stream_context_create([ 'ssl'=>['verify_peer' => false], 'http' => [ 'method' => 'GET', 'header' => "Content-Type: application/json\r Accept: application/json", 'content'=>json_encode($data) ] ]); $result = file_get_contents('https://your-domain/api/admin/v1/dhcp-subnets/{subnet}', false, $context);
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.