{"id":37882970,"url":"https://github.com/cisco-en-programmability/catalystcenter-go-sdk","last_synced_at":"2026-01-16T16:49:50.852Z","repository":{"id":256628631,"uuid":"855940075","full_name":"cisco-en-programmability/catalystcenter-go-sdk","owner":"cisco-en-programmability","description":"Catalyst Center Go SDK","archived":false,"fork":false,"pushed_at":"2025-06-17T22:37:55.000Z","size":2297,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-17T23:28:04.129Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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":"2024-09-11T17:53:31.000Z","updated_at":"2025-06-17T22:37:21.000Z","dependencies_parsed_at":"2024-11-12T20:18:24.149Z","dependency_job_id":"c4f3d969-c8c6-4269-b998-520f9d7bf20a","html_url":"https://github.com/cisco-en-programmability/catalystcenter-go-sdk","commit_stats":null,"previous_names":["cisco-en-programmability/catalystcenter-go-sdk"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/cisco-en-programmability/catalystcenter-go-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisco-en-programmability%2Fcatalystcenter-go-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisco-en-programmability%2Fcatalystcenter-go-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisco-en-programmability%2Fcatalystcenter-go-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisco-en-programmability%2Fcatalystcenter-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/catalystcenter-go-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cisco-en-programmability%2Fcatalystcenter-go-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":"2026-01-16T16:49:50.775Z","updated_at":"2026-01-16T16:49:50.838Z","avatar_url":"https://github.com/cisco-en-programmability.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# catalystcenter-go-sdk\n\ncatalystcenter-go-sdk is a Go client library for [Catalyst Center Platform](https://developer.cisco.com/catalyst-center/).\n\n## Usage\n\n```go\nimport catalyst \"github.com/cisco-en-programmability/catalystcenter-go-sdk/v3/sdk\"\n```\n\n## Introduction\n\nThe catalystcenter-go-sdk makes it easier to work with the Cisco Catalyst Center Platform RESTFul APIs from Go.\n\nIt supports version 2.3.7.6, but it is backward compatible with other versions as long as those versions use the same URLs and options as version 2.3.7.6.\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 = catalyst.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- `CATALYST_BASE_URL`: The base URL, FQDN or IP, of the Catalyst Center instance.\n- `CATALYST_USERNAME`: The username for the API authentication and authorization.\n- `CATALYST_PASSWORD`: The password for the API authentication and authorization.\n- `CATALYST_DEBUG`: Boolean to enable debugging\n- `CATALYST_SSL_VERIFY`: Boolean to enable or disable SSL certificate verification.\n- `CATALYST_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 = catalyst.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 = catalyst.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 = \u0026catalyst.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\n### catalystcenter-go-sdk/v2\n\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/)](https://pkg.go.dev/github.com/cisco-en-programmability/catalystcenter-go-sdk/v2)\n\n### catalystcenter-go-sdk\n\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/)](https://pkg.go.dev/github.com/cisco-en-programmability/catalystcenter-go-sdk)\n\n## Compatibility matrix\n\n| SDK versions    | Cisco Catalyst Center version supported |\n| --------------- | --------------------------------------- |\n| 1.y.z           | 2.3.7.6                                 |\n| 2.y.z           | 2.3.7.9                                 |\n| 3.0.z           | 3.1.0.3                                 |\n\n## Changelog\n\nAll notable changes to this project will be documented in the [CHANGELOG](https://github.com/cisco-en-programmability/catalystcenter-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## 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%2Fcatalystcenter-go-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcisco-en-programmability%2Fcatalystcenter-go-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcisco-en-programmability%2Fcatalystcenter-go-sdk/lists"}