{"id":14956610,"url":"https://github.com/mongodb/atlas-sdk-go","last_synced_at":"2026-01-17T06:12:42.535Z","repository":{"id":163209433,"uuid":"633900304","full_name":"mongodb/atlas-sdk-go","owner":"mongodb","description":"MongoDB Atlas Golang SDK ","archived":false,"fork":false,"pushed_at":"2025-01-18T05:34:50.000Z","size":20506,"stargazers_count":17,"open_issues_count":2,"forks_count":5,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-01-19T19:45:46.682Z","etag":null,"topics":["hacktoberfest","mongodb","mongodb-atlas"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mongodb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-28T14:38:27.000Z","updated_at":"2025-01-16T11:30:11.000Z","dependencies_parsed_at":"2024-04-23T06:48:03.222Z","dependency_job_id":"2a15e00f-59ce-4873-8033-dce2690a08ae","html_url":"https://github.com/mongodb/atlas-sdk-go","commit_stats":{"total_commits":427,"total_committers":22,"mean_commits":19.40909090909091,"dds":"0.46370023419203743","last_synced_commit":"31b560fd45be0b2c626788954704243de94f0618"},"previous_names":[],"tags_count":90,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fatlas-sdk-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fatlas-sdk-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fatlas-sdk-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fatlas-sdk-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mongodb","download_url":"https://codeload.github.com/mongodb/atlas-sdk-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237088455,"owners_count":19253565,"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":["hacktoberfest","mongodb","mongodb-atlas"],"created_at":"2024-09-24T13:13:12.664Z","updated_at":"2026-01-17T06:12:42.522Z","avatar_url":"https://github.com/mongodb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# atlas-sdk-go\n[![PkgGoDev](https://pkg.go.dev/badge/go.mongodb.org/atlas-sdk)](https://pkg.go.dev/go.mongodb.org/atlas-sdk)\n![CI](https://github.com/mongodb/atlas-sdk-go/workflows/CI/badge.svg)\n![Go](https://img.shields.io/github/go-mod/go-version/mongodb/atlas-sdk-go)\n\nA Go SDK for the [MongoDB Atlas API](https://docs.atlas.mongodb.com/api/).\n\nNote that `atlas-sdk-go` only supports the two most recent major versions of Go.\n\n## Getting started\n\n### Adding Dependency\n\n```terminal\ngo get go.mongodb.org/atlas-sdk/v20250312012\n```\n\n### Using in the code\n\nConstruct a new Atlas SDK client, then use the various services on the client to\naccess different parts of the Atlas API. For example:\n\n```go\nimport \"go.mongodb.org/atlas-sdk/v20250312012/admin\"\n\nfunc example() {\n\tctx := context.Background()\n\n\tapiKey := os.Getenv(\"MONGODB_ATLAS_PUBLIC_KEY\")\n\tapiSecret := os.Getenv(\"MONGODB_ATLAS_PRIVATE_KEY\")\n\n\tsdk, err := admin.NewClient(admin.UseDigestAuth(apiKey, apiSecret))\n\tif err != nil {\n\t\tlog.Fatalf(\"Error when instantiating new client: %v\", err)\n\t}\n\tprojects, response, err := sdk.ProjectsApi.ListGroups(ctx).Execute()\n\tif err != nil {\n\t\tlog.Fatalf(\"Could not fetch projects: %v\", err)\n\t}\n\tfmt.Printf(\"Response status: %v\\n\", response.Status)\n}\n```\n\nFor documentation about obtaining apiKey and apiSecret go to\nhttps://docs.atlas.mongodb.com/configure-api-access.\n\nThe services of a client divide the API into logical chunks and correspond to\nthe structure of the Atlas API documentation at\nhttps://www.mongodb.com/docs/atlas/reference/api-resources-spec/.\n\n## Documentation\n\nPlease refer to the [docs](./docs)\n\n## Examples\n\nSee [examples](./examples)\n\n## Test Support\n\n[Testify Mock](https://pkg.go.dev/github.com/stretchr/testify/mock) files are generated using [Mockery](https://github.com/vektra/mockery) to help to unit test clients using Atlas Go SDK.\n\nSee [test example with mocks](./examples/mock/cluster_test.go)\n\n## Contributing\n\nSee our [CONTRIBUTING.md](CONTRIBUTING.md) Guide.\n\n## License\n\n`atlas-sdk-go` is released under the Apache 2.0 license. See [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb%2Fatlas-sdk-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmongodb%2Fatlas-sdk-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb%2Fatlas-sdk-go/lists"}