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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a44c0125c56758cf744a7928cfd48b2114f4098aa44f5c0e983f929fd036845f
|
|
| MD5 |
34023cd036ae14f7581eebc74249aa45
|
|
| BLAKE2b-256 |
d7913f0fb983c69f6f1d3028f166dd21f65c97d5894d5767ca165237cd5ae703
|
Provenance
The following attestation bundles were made for netbox_custom_widget-0.1.0.tar.gz:
Publisher:
release.yml on sieteunoseis/netbox-custom-widget
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
netbox_custom_widget-0.1.0.tar.gz -
Subject digest:
a44c0125c56758cf744a7928cfd48b2114f4098aa44f5c0e983f929fd036845f - Sigstore transparency entry: 1002259259
- Sigstore integration time:
-
Permalink:
sieteunoseis/netbox-custom-widget@97b8533248d8dc087615d02eab983ff9d0f5e6e5 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/sieteunoseis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@97b8533248d8dc087615d02eab983ff9d0f5e6e5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file netbox_custom_widget-0.1.0-py3-none-any.whl.
File metadata
- Download URL: netbox_custom_widget-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28f26a0f8b316de21fec0ef60929a3c41eb2156900638b6ccff36812e262ed7a
|
|
| MD5 |
d2eb6e066b244388eb62fae867e013c9
|
|
| BLAKE2b-256 |
e67db88ee842a2ae96b6ba908898f3a56dcc90881c2734b26b6aefd745d32eac
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
netbox_custom_widget-0.1.0-py3-none-any.whl -
Subject digest:
28f26a0f8b316de21fec0ef60929a3c41eb2156900638b6ccff36812e262ed7a - Sigstore transparency entry: 1002259309
- Sigstore integration time:
-
Permalink:
sieteunoseis/netbox-custom-widget@97b8533248d8dc087615d02eab983ff9d0f5e6e5 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/sieteunoseis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@97b8533248d8dc087615d02eab983ff9d0f5e6e5 -
Trigger Event:
push
-
Statement type: