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.1.0.tar.gz (13.2 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.1.0-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: netbox_custom_widget-0.1.0.tar.gz
  • Upload date:
  • Size: 13.2 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.1.0.tar.gz
Algorithm Hash digest
SHA256 a44c0125c56758cf744a7928cfd48b2114f4098aa44f5c0e983f929fd036845f
MD5 34023cd036ae14f7581eebc74249aa45
BLAKE2b-256 d7913f0fb983c69f6f1d3028f166dd21f65c97d5894d5767ca165237cd5ae703

See more details on using hashes here.

Provenance

The following attestation bundles were made for netbox_custom_widget-0.1.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.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for netbox_custom_widget-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28f26a0f8b316de21fec0ef60929a3c41eb2156900638b6ccff36812e262ed7a
MD5 d2eb6e066b244388eb62fae867e013c9
BLAKE2b-256 e67db88ee842a2ae96b6ba908898f3a56dcc90881c2734b26b6aefd745d32eac

See more details on using hashes here.

Provenance

The following attestation bundles were made for netbox_custom_widget-0.1.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