Categorygithub.com/ankituteja/redfishapi
repositorypackage
0.0.0-20241209164540-67ed841f8c7e
Repository: https://github.com/ankituteja/redfishapi.git
Documentation: pkg.go.dev

# README

Redfish API

This Library supports both Dell and Hp Servers which have Redfish API enabled.

GoDoc Go Report Card

Usage

//main.go
package main

import "fmt"
import "github.com/kgrvamsi/redfishapi"

func main() {
    client := redfishapi.NewIloClient("https://hostname-0", "username", "password")
    // use lowercase
    //Dell
    biosData, err := client.GetBiosDataDell()
    if err != nil {
        panic(err)
    }

    fmt.Println(biosData)

    //HP
    client2 := redfishapi.NewIloClient("https://hostname-0", "username", "password")

    fwrData, err := client2.GetFirmwareHP()
    if err != nil {
        panic(err)
    }

    fmt.Println(fwrData)
}