ndamiens/netbox-client-php

Netbox client API

v0.0.13 2024-11-16 22:55 UTC

README

This project is an API client for Netbox

To iterate over your netbox entities

<?php

use ND\Netbox\Client;

$netbox = new Client("https://your-netbox/", "your-api-key");

foreach ($netbox->getSites() as $site) {
    echo $site["name"]."\n";
}

Read entities attribues as an associative array

Retrieve an entity

<?php

$site = $netbox->getSite(42);

To update an entity

after retrieve

$site['comments'] = "This is a test";
$site->save();