firegoer

module
v0.0.0-...-fc1d62d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2022 License: Apache-2.0

README

Firegoer

NOTE: This library is in very early development, with limited functionality

Firegoer provides a way of interacting with Cisco Firepower devices via their REST APIs in Go. Currently FTD devices using FDM (not FMC) are supported. This aims to be the Firepyer library, but written in Go!

The following versions have been used in development (others should work but YMMV):

  • Go 1.17
  • FTD 6.6.1-91

Usage

Import the ftd package and call the FdmConnection function to create a pointer to an Fdm, passing in your FTD hostname/IP, password and ignoring SSL verification (if using an untrusted/self-signed cert). Then call any of the available methods, such as getting and printing the hostname:

package main

import (
    "fmt"

    "github.com/certanet/firegoer/ftd"
)

func main() {
    fdm := ftd.FdmConnection("192.168.45.45", "Admin123", false)

    hostname := fdm.GetHostname()
    fmt.Println(hostname)
}

Then compile and run against your FTD:

go run main.go
firepyer2120

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL