Get Node with Application API

Get a node instance.

Usage

<?php
    $pterodactyl->node($nodeId, $includes = []);
?>

Parameters

Parameter Description Rules
nodeId The id of the node
includes The related data you want to query

Returns

Returns a node instance.

{
    "id": 1,
    "public": true,
    "name": "location-1",
    "description": "location-1",
    "locationId": 1,
    "fqdn": "location-1.pterodactyl.panel",
    "scheme": "https",
    "behindProxy": false,
    "maintenanceMode": false,
    "memory": 10240,
    "memoryOverallocate": 0,
    "disk": 102400,
    "diskOverallocate": 0,
    "uploadSize": 100,
    "daemonListen": 8084,
    "daemonSftp": 2022,
    "daemonBase": "\/srv\/daemon-data",
    "createdAt": "2019-01-06T12:40:08+00:00",
    "updatedAt": "2019-10-29T12:24:28+00:00",
    "object": "node"
}

Example

<?php
    $node = $pterodactyl->node(1);
    print_r($node);
?>