{"id":13787194,"url":"https://github.com/cisco-en-programmability/dnacenter-go-sdk","last_synced_at":"2026-01-14T12:13:32.350Z","repository":{"id":37055058,"uuid":"306462697","full_name":"cisco-en-programmability/dnacenter-go-sdk","owner":"cisco-en-programmability","description":"Cisco DNA Center SDK for Go Programming Language","archived":false,"fork":false,"pushed_at":"2025-06-09T22:42:01.000Z","size":2363,"stargazers_count":6,"open_issues_count":1,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-11-22T15:08:24.059Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/cisco-en-programmability/dnacenter-go-sdk/v5","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cisco-en-programmability.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":"2020-10-22T21:28:49.000Z","updated_at":"2025-06-09T22:39:47.000Z","dependencies_parsed_at":"2024-05-03T10:39:18.759Z","dependency_job_id":"1b5f9f62-83fb-47dd-bcda-7afbfb8fc790","html_url":"https://github.com/cisco-en-programmability/dnacenter-go-sdk","commit_stats":null,"previous_names":[],"tags_count":81,"template":false,"template_full_name":null,"purl":"pkg:github/cisco-en-programmability/dnacenter-go-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisco-en-programmability%2Fdnacenter-go-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisco-en-programmability%2Fdnacenter-go-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisco-en-programmability%2Fdnacenter-go-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisco-en-programmability%2Fdnacenter-go-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cisco-en-programmability","download_url":"https://codeload.github.com/cisco-en-programmability/dnacenter-go-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisco-en-programmability%2Fdnacenter-go-sdk/sbom","scorecard":{"id":283338,"data":{"date":"2025-08-11","repo":{"name":"github.com/cisco-en-programmability/dnacenter-go-sdk","commit":"764fd81955ad688a1dbd11c1e7c90ceb22353870"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"name":"Code-Review","score":2,"reason":"Found 2/10 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":2,"reason":"3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/go.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/cisco-en-programmability/dnacenter-go-sdk/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/cisco-en-programmability/dnacenter-go-sdk/go.yml/main?enable=pin","Warn: goCommand not pinned by hash: scripts/errcheck.sh:8","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T16:32:09.377Z","repository_id":37055058,"created_at":"2025-08-17T16:32:09.377Z","updated_at":"2025-08-17T16:32:09.377Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419706,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"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":[],"created_at":"2024-08-03T20:00:31.179Z","updated_at":"2026-01-14T12:13:32.341Z","avatar_url":"https://github.com/cisco-en-programmability.png","language":"Go","funding_links":[],"categories":["Platform / SDK"],"sub_categories":[],"readme":"# dnacenter-go-sdk\n\ndnacenter-go-sdk is a Go client library for [Catalyst Center Platform](https://developer.cisco.com/dnacenter/).\n\n## Usage\n\n```go\nimport dnac \"github.com/cisco-en-programmability/dnacenter-go-sdk/v8/sdk\"\n```\n\n## Introduction\n\nThe dnacenter-go-sdk makes it easier to work with the Cisco Catalyst Center Platform RESTFul APIs from Go.\n\nIt supports version 2.3.5.3, but it is backward compatible with other versions as long as those versions use the same URLs and options as version 2.3.5.3.\n\n## Getting started\n\nThe first think you need to do is to generate an API client. There are two options to do it:\n\n1. Parameters\n2. Environment variables\n\n### Parameters\n\nThe client could be generated with the following parameters:\n\n- `baseURL`: The base URL, FQDN or IP, of the Catalyst Center instance.\n- `username`: The username for the API authentication and authorization.\n- `password`: The password for the API authentication and authorization.\n- `debug`: Boolean to enable debugging\n- `sslVerify`: Boolean to enable or disable SSL certificate verification.\n- `waitTimeToManyRequest`: Time in minutes SDK will wait after API responds with 429 status code (to many requests) it defaults is in 1 minute.\n\n```go\nClient, err = dnac.NewClientWithOptions(\"https://sandboxdnac.cisco.com\",\n    \"devnetuser\", \"Cisco123!\",\n    \"false\", \"false\", nil)\ndevicesCount, _, err := Client.Devices.GetDeviceCount()\n```\n\n### Using environment variables\n\nThe client can be configured with the following environment variables:\n\n- `DNAC_BASE_URL`: The base URL, FQDN or IP, of the Catalyst Center instance.\n- `DNAC_USERNAME`: The username for the API authentication and authorization.\n- `DNAC_PASSWORD`: The password for the API authentication and authorization.\n- `DNAC_DEBUG`: Boolean to enable debugging\n- `DNAC_SSL_VERIFY`: Boolean to enable or disable SSL certificate verification.\n- `DNAC_WAIT_TIME`: Time in minutes SDK will wait after API responds with 429 status code (to many requests) it defaults is in 1 minute.\n\n```go\nClient, err = dnac.NewClient()\ndevicesCount, _, err := Client.Devices.GetDeviceCount()\n```\n\n## Examples\n\nHere is an example of how we can generate a client, get a device count and then a list of devices filtering them using query params.\n\n```go\nClient, err = dnac.NewClientWithOptions(\"https://sandboxdnac.cisco.com\",\n    \"devnetuser\", \"Cisco123!\",\n    \"false\", \"false\",nil)\ndevicesCount, _, err := Client.Devices.GetDeviceCount()\nif err != nil {\n    fmt.Println(err)\n}\nfmt.Println(\"Device Count:\", devicesCount.Response)\ngetDeviceListQueryParams = \u0026dnac.GetDeviceListQueryParams{\n    PlatformID: []string{\"C9300-24UX\"},\n}\nfmt.Println(\"Printing device list  ... PlatformID is C9300-24UX\")\ndevices, _, err = Client.Devices.GetDeviceList(getDeviceListQueryParams)\nif err != nil {\n    fmt.Println(err)\n}\nif devices.Response != nil {\n    for id, device := range *devices.Response {\n        fmt.Println(\"GET:\", id, device.ID, device.MacAddress, device.ManagementIPAddress, device.PlatformID)\n    }\n}\n```\n\n## Documentation\n### dnacenter-go-sdk/v7\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/)](https://pkg.go.dev/github.com/cisco-en-programmability/dnacenter-go-sdk/v8)\n### dnacenter-go-sdk/v6\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/)](https://pkg.go.dev/github.com/cisco-en-programmability/dnacenter-go-sdk/v6)\n### dnacenter-go-sdk/v5\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/)](https://pkg.go.dev/github.com/cisco-en-programmability/dnacenter-go-sdk/v5)\n### dnacenter-go-sdk/v4\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/)](https://pkg.go.dev/github.com/cisco-en-programmability/dnacenter-go-sdk/v4)\n### dnacenter-go-sdk/v3\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/)](https://pkg.go.dev/github.com/cisco-en-programmability/dnacenter-go-sdk/v3)\n### dnacenter-go-sdk/v2\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/)](https://pkg.go.dev/github.com/cisco-en-programmability/dnacenter-go-sdk/v2)\n### dnacenter-go-sdk\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/)](https://pkg.go.dev/github.com/cisco-en-programmability/dnacenter-go-sdk)\n## Compatibility matrix\n\n| SDK versions | Cisco Catalyst Center version supported |\n|--------------|------------------------------------|\n| 0.y.z        |  2.1.2                             |\n| 1.y.z        |  2.1.2                             |\n| 2.y.z        |  2.2.2.3                           |\n| 3.y.z        |  2.2.3.3                           |\n| 4.y.z        |  2.3.3.0                           |\n| 5.y.z        |  2.3.5.3                           |\n| 6.y.z        |  2.3.7.6                           |\n| 7.y.z        |  2.3.7.9                           |\n\n## Changelog\n\nAll notable changes to this project will be documented in the [CHANGELOG](https://github.com/cisco-en-programmability/dnacenter-go-sdk/blob/main/CHANGELOG.md) file.\n\nThe development team may make additional name changes as the library evolves with the Cisco Catalyst Center APIs.\n\n\n## License\n\nThis library is distributed under the MIT license found in the [LICENSE](./LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcisco-en-programmability%2Fdnacenter-go-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcisco-en-programmability%2Fdnacenter-go-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcisco-en-programmability%2Fdnacenter-go-sdk/lists"}