Query NetBox endpoint
malcolm_netbox_queryQuery any NetBox REST endpoint through a read-only proxy to retrieve records for services, VLANs, interfaces, VMs, and contacts. Accepts a path and JSON filters, returning the raw paginated NetBox response.
Instructions
Query any NetBox REST endpoint via Malcolm's read-only GET proxy.
Use this as the general escape hatch for NetBox endpoints the shortcuts don't
cover (services, VLANs, interfaces, VMs, contacts, ...). For the common
ip/device/prefix lookups prefer malcolm_netbox_lookup; to list sites use
malcolm_netbox_sites — though this tool with path "dcim/sites/" is what
returns a site's full record. The path is validated to a NetBox app/model
shape before proxying, so a bad path fails here rather than upstream.
Returns the raw NetBox JSON response for the endpoint, which for a list
endpoint is paginated: count, next, previous and results, with limit and
offset accepted in params.
NetBox is an optional Malcolm subsystem; malcolm_service_status carries a
netbox readiness key, and it is what tells an empty answer here from an
inventory that was never deployed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | NetBox API path in app/model form, no leading slash, no "..", no scheme/host. Examples: "ipam/services/" (port -> service), "ipam/vlans/", "dcim/interfaces/", "virtualization/virtual-machines/", "tenancy/contacts/" (asset owner). | |
| params | No | JSON object of query-string filters for the endpoint, e.g. {"port": "443"}, {"vid": "100"}, {"name": "vm-01"}. Empty object = no filters. | {} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |