Skip to main content

NetBox plugin for custom API dashboard widgets - call any API and display results

Project description

NetBox Custom Widget

A NetBox plugin that provides configurable dashboard widgets for calling external APIs and displaying results. Similar to Homepage's Custom API widget.

Features

  • Call any HTTP API endpoint and display JSON results on your NetBox dashboard
  • Configurable field mappings with dot-notation for nested JSON access
  • Auto-refresh via HTMX at configurable intervals
  • Adaptive color coding for status values (e.g., UCCE process monitoring)
  • Pre-define endpoints in plugin configuration for automatic provisioning
  • Full CRUD interface for managing API endpoints

Installation

pip install netbox-custom-widget

Add to your NetBox configuration:

PLUGINS = ['netbox_custom_widget']

Configuration

Define API endpoints in your plugins.py:

PLUGINS_CONFIG = {
    'netbox_custom_widget': {
        'verify_ssl': False,
        'endpoints': [
            {
                'name': 'My API Status',
                'url': 'https://api.example.com/status',
                'headers': {'Authorization': 'Bearer token123'},
                'mappings': [
                    {'field': 'status', 'label': 'Status', 'color': 'adaptive'},
                    {'field': 'uptime', 'label': 'Uptime', 'suffix': 'hours'},
                ],
                'display_mode': 'list',
                'refresh_interval': 30,
            },
        ],
    }
}

Requirements

  • NetBox >= 4.0.0
  • Python >= 3.10

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netbox_custom_widget-0.2.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netbox_custom_widget-0.2.0-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file netbox_custom_widget-0.2.0.tar.gz.

File metadata

  • Download URL: netbox_custom_widget-0.2.0.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for netbox_custom_widget-0.2.0.tar.gz
Algorithm Hash digest
SHA256 945b63c34f116ed8e0bb38a9e6186dc9dd799d7a39660670d7e06c4cf8759ac2
MD5 817c43c6f5255e84176756c890e891e3
BLAKE2b-256 2f82e53b4d27cb47bd693816a9eac43aa989dc5fab8d4b92f30fa60162b786eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for netbox_custom_widget-0.2.0.tar.gz:

Publisher: release.yml on sieteunoseis/netbox-custom-widget

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file netbox_custom_widget-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for netbox_custom_widget-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d872dfa24d232d2ac55beb2e67428968a5a25ecfd8079faeae0bfd59b5f5e862
MD5 df24ae6b54628402ace1a4f61c186c94
BLAKE2b-256 1d43b2b502c2d19ce04a6ea28098e8d0318bed047ec919356ba68ff93b8e2116

See more details on using hashes here.

Provenance

The following attestation bundles were made for netbox_custom_widget-0.2.0-py3-none-any.whl:

Publisher: release.yml on sieteunoseis/netbox-custom-widget

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page