GET
/api/application/nodes/<nodeid>/addressesFetching a Node's Addresses
Query parameters
pageinteger- The page to return.
per_pageinteger- Results per page. Defaults to
50; the most is999999. filter[address]string- Addresses that contain this text, ignoring case.
filter[type]stringipv4oripv6.filter[server_id]integer- Addresses allocated to the server with this ID. Leave it empty (
?filter[server_id]=) to list unallocated addresses.
Request
GET
/api/application/nodes/<nodeid>/addressescurl "https://panel.example.com/api/application/nodes/<nodeid>/addresses" \ -H "Authorization: Bearer <token>" \ -H "Accept: application/json"
use Illuminate\Support\Facades\Http; $response = Http::withToken($token) ->acceptJson() ->get('https://panel.example.com/api/application/nodes/<nodeid>/addresses');
const response = await fetch('https://panel.example.com/api/application/nodes/<nodeid>/addresses', { headers: { Authorization: `Bearer ${token}`, Accept: 'application/json', }, })
Response
{ "data": [ { "id": 11, "address_pool_id": 2, "server_id": null, "type": "ipv4", "address": "172.16.141.70", "cidr": 24, "gateway": "172.16.141.1", "mac_address": null }, { "id": 10, "address_pool_id": 2, "server_id": null, "type": "ipv4", "address": "172.16.141.69", "cidr": 24, "gateway": "172.16.141.1", "mac_address": null }, { "id": 9, "address_pool_id": 2, "server_id": null, "type": "ipv4", "address": "172.16.141.68", "cidr": 24, "gateway": "172.16.141.1", "mac_address": null }, { "id": 8, "address_pool_id": 2, "server_id": null, "type": "ipv4", "address": "172.16.141.67", "cidr": 24, "gateway": "172.16.141.1", "mac_address": null } ], "meta": { "pagination": { "total": 4, "count": 4, "per_page": 50, "current_page": 1, "total_pages": 1, "links": {} } } }