ndamiens / netbox-client-php
Netbox client API
Installs: 4 019
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 2
Requires
- guzzlehttp/guzzle: ^7.0
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();