Skip to content

SquareFactory/ipmi-api

Repository files navigation

IPMI API

A golang ipmitool API for Cluster Factory.


Endpoints

Method Endpoints Description
POST /host/:host/on Power up chassis.
POST /host/:host/off Power down chassis. Does not initiate a clean shutdown of the OS.
POST /host/:host/cycle Power cycle
GET /host/:host/status Show current power status.
POST /host/:host/soft Soft-shutdown of OS via ACPI.
POST /host/:host/reset Hard reset.

:host being the hostname associated to the BMC IP address. Those are defined in a Kubernetes configMap using key-value pairs and set as environment variables within the API.