{"id":20324549,"url":"https://github.com/netascode/go-fmc","last_synced_at":"2026-03-01T00:32:08.740Z","repository":{"id":215801699,"uuid":"739811871","full_name":"netascode/go-fmc","owner":"netascode","description":"A Go client library for Cisco Secure FMC.","archived":false,"fork":false,"pushed_at":"2026-02-17T15:17:07.000Z","size":58,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-02-17T15:48:53.504Z","etag":null,"topics":["cisco","fmc","go","golang","secure"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netascode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-06T16:10:14.000Z","updated_at":"2026-02-17T15:13:01.000Z","dependencies_parsed_at":"2024-06-19T00:33:52.494Z","dependency_job_id":"d4959ad2-a5df-4d77-82b5-bf78d265593c","html_url":"https://github.com/netascode/go-fmc","commit_stats":null,"previous_names":["netascode/go-fmc"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/netascode/go-fmc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fgo-fmc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fgo-fmc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fgo-fmc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fgo-fmc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netascode","download_url":"https://codeload.github.com/netascode/go-fmc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fgo-fmc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29956195,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T22:53:01.873Z","status":"ssl_error","status_checked_at":"2026-02-28T22:52:50.699Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cisco","fmc","go","golang","secure"],"created_at":"2024-11-14T19:34:26.937Z","updated_at":"2026-03-01T00:32:08.705Z","avatar_url":"https://github.com/netascode.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Tests](https://github.com/netascode/go-fmc/actions/workflows/test.yml/badge.svg)](https://github.com/netascode/go-fmc/actions/workflows/test.yml)\n\n# go-fmc\n\n`go-fmc` is a Go client library for Cisco Secure FMC (Firewall Management Center). It is based on Nathan's excellent [goaci](https://github.com/brightpuddle/goaci) module and features a simple, extensible API and [advanced JSON manipulation](#result-manipulation).\n\n## Getting Started\n\n### Installing\n\nTo start using `go-fmc`, install Go and `go get`:\n\n`$ go get -u github.com/netascode/go-fmc`\n\n### Basic Usage\n\n```go\npackage main\n\nimport \"github.com/netascode/go-fmc\"\n\nfunc main() {\n    client, _ := fmc.NewClient(\"https://1.1.1.1\", \"user\", \"pwd\")\n\n    res, _ := client.Get(\"/api/fmc_config/v1/domain/{DOMAIN_UUID}/object/networks\")\n    println(res.Get(\"items.0.name\").String())\n}\n```\n\nThis will print something like:\n\n```\nany-ipv4\n```\n\n#### Result manipulation\n\n`fmc.Result` uses GJSON to simplify handling JSON results. See the [GJSON](https://github.com/tidwall/gjson) documentation for more detail.\n\n```go\nres, _ := client.Get(\"/api/fmc_config/v1/domain/{DOMAIN_UUID}/object/networks\")\n\nfor _, obj := range res.Get(\"items\").Array() {\n    println(obj.Get(\"@pretty\").String()) // pretty print network objects\n}\n```\n\n#### POST data creation\n\n`fmc.Body` is a wrapper for [SJSON](https://github.com/tidwall/sjson). SJSON supports a path syntax simplifying JSON creation.\n\n```go\nbody := fmc.Body{}.\n    Set(\"name\", \"net1\").\n    Set(\"value\", \"1.5.4.0/24\")\nclient.Post(\"/api/fmc_config/v1/domain/{DOMAIN_UUID}/object/networks\", body.Str)\n```\n\n## Documentation\n\nSee the [documentation](https://godoc.org/github.com/netascode/go-fmc) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetascode%2Fgo-fmc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetascode%2Fgo-fmc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetascode%2Fgo-fmc/lists"}