Infrahub provides a comprehensive GraphQL API for querying nodes, relationships, and metadata. All queries support filtering, pagination, and nested relationship traversal.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/OpsMill/infrahub/llms.txt
Use this file to discover all available pages before exploring further.
Basic Query Structure
Query any node type using its kind name. The API returns paginated results with edges containing the actual nodes.Core Query Types
Branch Queries
Retrieve information about branches in your Infrahub instance.Filter branches by their IDs
Filter by branch name
Account Profile Query
Get information about the currently authenticated account.IP Address Queries
Query IP addresses with rich filtering options.Filter by exact IP address value
Filter by multiple IP address values
Filter by IP namespace name
Filter by parent prefix CIDR notation
IP Prefix Queries
Query IP prefixes with hierarchical relationships.Attribute Access
All node attributes in Infrahub are objects with metadata. Access the actual value using the.value field.
Relationship Traversal
Traverse relationships between nodes using nested queries.Metadata Filtering
Filter nodes by creation and update metadata.Filter by exact creation timestamp
Filter for objects created after this timestamp
Filter for objects created before this timestamp
Filter by exact update timestamp
Filter for objects updated after this timestamp
Filter for objects updated before this timestamp
Filter by creator account UUID
Filter by updater account UUID
Common Parameters
These parameters are available on most queries:Filter by a list of node IDs
Maximum number of results to return (pagination)
Number of results to skip (pagination)
Ordering configuration for results. See Pagination for details.
Enable partial string matching for text filters (default: false)
Filter by display label
Search across all text attributes
Response Structure
All paginated queries return a consistent structure:Total number of matching results
Array of edges containing the nodes and relationship metadata
Permission information for the current user on this query
The actual node data
Example: Complex Query
See Also
- Mutations - Create, update, and delete nodes
- Filtering - Advanced filtering techniques
- Pagination - Pagination and ordering patterns
- Subscriptions - Real-time updates via WebSocket