Go SDK
The nvfleetint package provides a handwritten Go client for the Fleet
Intelligence customer API.
Install
Use the Go version declared in the repository’s go.mod file or newer.
Create a client
Select the out-of-band node view and retrieve its BMC inventory with explicit agent options:
OOB node list and detail results expose the inventory classification as
Node.NodeKind.
OOB inventory exposes node kinds (unknown, compute, nvswitch, and
power_shelf) and nested Redfish status conditions on systems, processors,
managers, chassis, PCIe devices, and firmware.
NewClient requires an HTTPS API URL and an API key. Plain HTTP is accepted
only for loopback addresses used during local development.
The default per-request timeout is two minutes. Override it when constructing the client:
Public SDK types and methods are documented in the package source under
nvfleetint.
Alert timeline filter values and sorting choices are available through
GetAlertTimelineFilterOptions. Pass true for the active-alert view or
false for the historical view:
Writes
SetNodeTags replaces a node’s tags with the set given. It is a replacement
rather than a merge — a tag the node already carries that is absent from
Tags is removed, and an empty Tags clears them all:
Tags are validated before the request is sent, so a malformed tag is named locally instead of returning an opaque 400. Unlike the read methods, a failed write is never retried.