rustifi
A Rust API library for UniFi Network controllers.
Quick Start
use UnifiClient;
async
TLS Certificate Handling
By default, rustifi uses strict TLS validation and requires valid certificates.
For Controllers with Valid Certificates
Use the standard constructors:
// These require valid TLS certificates
let client = new?;
let client = with_api_key?;
For Local Controllers with Self-Signed Certificates
Many local UniFi controllers use self-signed certificates. For these, use the _insecure variants:
// WARNING: Only use for local controllers on trusted networks
let client = new_insecure?;
let client = with_api_key_insecure?;
Security Warning: The
_insecuremethods disable TLS certificate validation, which makes connections vulnerable to man-in-the-middle attacks. Only use these methods for local controllers on trusted networks.
WORK IN PROGRESS
To Do
- Implement some access points
- Implement some switches
- Ensure compliance with Rust API Guidelines Checklist, Including traits
- Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug, Display, Default
- From, TryFrom, AsRef, AsMut
- Errors
- Link capacity on uplinks
- Tests
- Documentation
- Examples
Layout & Features
- Devices
- Basic Information
- Get
- Update
- AP
- Group
- Model
- Name
- Radio
- Channel
- Width
- Power
- Meshing
- Number of Clients
- CPU
- Memory
- SW
- Name
- Model
- Port
- Number
- Type
- Status
- Uptime
- Bytes
- Packets
- Dropped
- Errors
- Native VLAN
- Allowed VLANs
- Port Isolation
- CPU
- Memory
- Basic Information
- Clients
- Type
- Impose Punishment
- Ban
- WiFi
- Network
Models
APs
- UX
- NanoHD
- U7-Pro
- U7-Pro-Max
- U6-Mesh
- UWB-XG
- UAP-XG
- AC-Mesh
- AC-Mesh-Pro
- AC-Pro
Switch
- USW-Pro-Aggregation
- USW-Aggregation
License
This project is licensed under GNU General Public License v2.0 (GPL-2.0-only).