List NetBox sites
malcolm_netbox_sitesGet the NetBox site directory to see which physical or logical locations exist before resolving assets.
Instructions
List the NetBox site directory: the physical or logical locations assets sit in.
Use this to learn which sites exist before drilling into a specific asset.
To then resolve a device, IP, or prefix use malcolm_netbox_lookup; for any
other NetBox endpoint use malcolm_netbox_query.
Returns Malcolm's own condensed view, not NetBox's: an object keyed by
site id, each value carrying display, name and slug only. Everything else
a site record holds — status, tenant, device and VM counts — needs
malcolm_netbox_query with path "dcim/sites/", which returns the full
records plus NetBox's count/next paging keys. NetBox is an optional
Malcolm subsystem; malcolm_service_status carries a netbox readiness key
that separates an empty directory from an absent one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |