F5 BIG-IP SDK for the Go programming language.
f5-rest-client implements a REST client to query the F5 Big IP API.
go get -u github.com/e-XpertSolutions/f5-rest-client/f5
package main
import (
"log"
"github.com/e-XpertSolutions/f5-rest-client/f5"
"github.com/e-XpertSolutions/f5-rest-client/f5/ltm"
)
func main() {
// setup F5 BigIP client
f5Client, err := f5.NewBasicClient("https://url-to-bigip", "user", "password")
if err != nil {
log.Fatal(err)
}
// setup client for the LTM API
ltmClient := ltm.New(f5Client)
// query the /ltm/virtual API
vsConfigList, err := ltmClient.Virtual().ListAll()
if err != nil {
log.Fatal(err)
}
log.Print(vsConfigList)
}
We appreciate any form of contribution (feature request, bug report, pull request, ...). We have no special requirements for Pull Request, just follow the standard GitHub way.
The sources are release under a BSD 3-Clause License. The full terms of that
license can be found in LICENSE
file of this repository.