Netbox Graphql Query
netbox_graphql_queryRun read-only GraphQL queries against NetBox to fetch nested data in one request, avoiding many REST calls. Paginate large lists to control results.
Instructions
Run a read-only GraphQL query against NetBox's /graphql/ endpoint.
Use it to fetch nested data that would otherwise need many REST calls. Mutations and subscriptions are rejected. Always paginate large lists, e.g. device_list(pagination: {limit: 50}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | GraphQL query. Fetch related data in one round trip, e.g. '{ device_list(filters: {site: {name: {exact: "DC1"}}}) { id name interfaces { name ip_addresses { address } } } }'. NetBox 4.5+ requires lookups on filters ({exact: ...}). | |
| variables | No | GraphQL variables. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||