Source: NetBox v4.5.0 Generated: 2026-02-02 21:20:55Z
- Go 1.23 or later
- Diode SDK for Go
go get github.com/netboxlabs/diode-sdk-go@v0.1.0Each example uses constants for configuration. You can modify these in the example code:
target = "grpc://localhost:8080/diode"
appName = "example-app"
appVersion = "1.0.0"Each entity example is in its own directory with a complete Go module. To run an example:
cd examples/device
go run main.goEach example includes three patterns:
- Minimal: Only required fields
- Extended: Required fields plus common optional fields
- Explicit: Fully nested objects with all common fields
Switch between patterns by uncommenting the desired function call in main().
- Circuit
- CircuitGroup
- CircuitGroupAssignment
- CircuitTermination
- CircuitType
- Provider
- ProviderAccount
- ProviderNetwork
- VirtualCircuit
- VirtualCircuitTermination
- VirtualCircuitType
- Cable
- CablePath
- ConsolePort
- ConsoleServerPort
- Device
- DeviceBay
- DeviceRole
- DeviceType
- FrontPort
- Interface
- InventoryItem
- InventoryItemRole
- Location
- Manufacturer
- Module
- ModuleBay
- ModuleType
- ModuleTypeProfile
- Platform
- PowerFeed
- PowerOutlet
- PowerPanel
- PowerPort
- Rack
- RackReservation
- RackRole
- RackType
- RearPort
- Region
- Site
- SiteGroup
- VirtualChassis
- VirtualDeviceContext
- ASN
- ASNRange
- Aggregate
- FHRPGroup
- FHRPGroupAssignment
- IPAddress
- IPRange
- MACAddress
- Prefix
- RIR
- Role
- RouteTarget
- Service
- VLAN
- VLANGroup
- VLANTranslationPolicy
- VLANTranslationRule
- VRF