nautobot
ergonomic rust client for the nautobot rest api.
this crate provides a high-level, typed interface for interacting with nautobot, built on top of generated openapi bindings.
install
add this to your Cargo.toml:
[]
= "0.1.0"
= { = "1.0", = ["full"] }
usage
basic example
use ;
async
ergonomic helpers
the client includes helper methods for common operations that go beyond basic crud:
// ipam: find available ips in a prefix
let available_ips = client.ipam.prefix_available_ips.await?;
// dcim: trace a cable path from an interface
let trace = client.dcim.interface_trace.await?;
// extras: run a job
use JobInputRequest;
let response = client.extras.job_run.await?;
features
- typed apis: specific helpers for dcim, ipam, extras, virtualization, and more.
- pagination: built-in support for handling paginated responses.
- async: built on
tokioandreqwestfor non-blocking i/o. - openapi: leverages
nautobot-openapifor comprehensive schema coverage.