Skip to content

Interacting with Cisco FTD devices via the FDM REST API in Go

License

Notifications You must be signed in to change notification settings

certanet/firegoer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Interacting with Cisco FTD devices via the FDM REST API in Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages