{"id":20324568,"url":"https://github.com/netascode/go-sdwan","last_synced_at":"2025-07-15T16:08:27.568Z","repository":{"id":64146123,"uuid":"573732046","full_name":"netascode/go-sdwan","owner":"netascode","description":"A Go client library for Cisco SDWAN.","archived":false,"fork":false,"pushed_at":"2025-04-23T10:08:44.000Z","size":64,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-26T19:05:55.165Z","etag":null,"topics":["cisco","go","golang","sdwan"],"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}},"created_at":"2022-12-03T08:49:44.000Z","updated_at":"2025-04-23T10:08:39.000Z","dependencies_parsed_at":"2025-04-23T11:21:02.340Z","dependency_job_id":"dccfdd71-638c-4c83-8196-377ad42b7b9e","html_url":"https://github.com/netascode/go-sdwan","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.25,"last_synced_commit":"d8221ff79d48b8f190040236c3377b90cc4a4a9e"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/netascode/go-sdwan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fgo-sdwan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fgo-sdwan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fgo-sdwan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fgo-sdwan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netascode","download_url":"https://codeload.github.com/netascode/go-sdwan/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fgo-sdwan/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265444742,"owners_count":23766435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","go","golang","sdwan"],"created_at":"2024-11-14T19:34:31.850Z","updated_at":"2025-07-15T16:08:27.546Z","avatar_url":"https://github.com/netascode.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Tests](https://github.com/netascode/go-sdwan/actions/workflows/test.yml/badge.svg)](https://github.com/netascode/go-sdwan/actions/workflows/test.yml)\n\n# go-sdwan\n\n`go-sdwan` is a Go client library for Cisco SDWAN. 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-sdwan`, install Go and `go get`:\n\n`$ go get -u github.com/netascode/go-sdwan`\n\n### Basic Usage\n\n```go\npackage main\n\nimport \"github.com/netascode/go-sdwan\"\n\nfunc main() {\n    client, _ := sdwan.NewClient(\"1.1.1.1\", \"user\", \"pwd\", true)\n\n    res, _ := client.Get(\"/admin/resourcegroup\")\n    println(res.Get(\"0.id\").String())\n}\n```\n\nThis will print something like:\n\n```\n0:RESOURCE_GROUPNode:1626378545017:2\n```\n\n#### Result manipulation\n\n`sdwan.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(\"/admin/resourcegroup\")\n\nfor _, group := range res.Array() {\n    println(group.Get(\"@pretty\").String()) // pretty print resource groups\n}\n```\n\n#### POST data creation\n\n`sdwan.Body` is a wrapper for [SJSON](https://github.com/tidwall/sjson). SJSON supports a path syntax simplifying JSON creation.\n\n```go\nbody := sdwan.Body{}.\n    Set(\"name\", \"test\").\n    Set(\"desc\", \"API Test\")\nclient.Post(\"/admin/resourcegroup\", body.Str)\n```\n\n## Documentation\n\nSee the [documentation](https://godoc.org/github.com/netascode/go-sdwan) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetascode%2Fgo-sdwan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetascode%2Fgo-sdwan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetascode%2Fgo-sdwan/lists"}