Code Monkey home page Code Monkey logo

go-bigip's Introduction

go-bigip

go-bigip offers a flexible REST API interface for users working with bigip, making it easy for them to address various problems according to their specific needs.

Installation

go get -u github.com/lefeck/go-bigip

Usage

Basic Authentication

package main

import (
	"log"
	"github.com/lefeck/go-bigip"
	"github.com/lefeck/go-bigip/ltm"
)

func main() {
	// setup F5 BigIP client
	client, err := bigip.NewSession("192.168.13.91", "admin", "MsTac@2001")
	if err != nil {
		log.Fatal(err)
	}

	// setup client for the LTM API
	ltmClient := ltm.New(client)

	// query the /ltm/virtual API
	vsl, err := ltmClient.Virtual().List()
	if err != nil {
		log.Fatal(err)
	}
	log.Print(vsl)
}

Token Authentication

package main

import (
	"log"
	"github.com/lefeck/go-bigip"
	"github.com/lefeck/go-bigip/ltm"
)

func main() {
	// setup F5 BigIP client
	// default timeout value is 60s
	optionTimeout := bigip.WithTimeout(1200*time.Second)
	client, err := bigip.NewToken("192.168.13.91", "admin", "MsTac@2001", "local", optionTimeout)
	if err != nil {
		log.Fatal(err)
	}

	// setup client for the LTM API
	ltmClient := ltm.New(client)

	// query the /ltm/virtual API
	vsl, err := ltmClient.Virtual().List()
	if err != nil {
		log.Fatal(err)
	}
	log.Print(vsl)
}

Features

  • Add support for HTTP Basic Authentication
  • Add support for token based authentication
  • Add support for authentication through external providers
  • Manage Virtual Server, pool, node, irules, monitors (/ltm)
  • Manage Cluster Management (/cm)
  • Manage interfaces, vlan, trunk, self ip, route, route domains (/net)
  • Manage system related stuffs (/sys)
  • Manage firewall, WAF and DOS profiles (/security)
  • Manage virtualization features (/vcmp)
  • Manage access policies (/apm)
  • Manage DNS and global load balancing servers (/gtm)
  • Add support for analytics read-only API (/analytics)
  • Add support for results pagination

go-bigip's People

Contributors

lefeck avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.