Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClusterID attribute to Processes.List returns 400 error response #254

Closed
zenmoto opened this issue Sep 10, 2021 · 1 comment · Fixed by #255
Closed

ClusterID attribute to Processes.List returns 400 error response #254

zenmoto opened this issue Sep 10, 2021 · 1 comment · Fixed by #255

Comments

@zenmoto
Copy link

zenmoto commented Sep 10, 2021

Describe the bug

client.Processes.List() takes an argument of ClusterID specified in processes.go. The corresponding endpoint seems to not take that argument, however. The call then returns an error complaining about the unknown query argument.

Expected behavior
The call should return a list of processes scoped to the specified cluster id.

Logs
N/A

Desktop (please complete the following information):

  • OS: all, replicated on OSX
  • Lib Version: 0.12.0

Additional context
"GET https://cloud.mongodb.com/api/atlas/v1.0/groups/613b7e5ac7577b1ee2e5c5dd/processes?clusterId=Cluster0&includeCount=true: 400 (request \"INVALID_QUERY_PARAMETER\") Invalid query parameter clusterId specified."

@gssbzn
Copy link
Collaborator

gssbzn commented Sep 14, 2021

Sorry this is an artefact of how the code on this repo is reused for https://github.com/mongodb/go-client-mongodb-ops-manager, that particular field is only available for Ops Manager and Cloud Manager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants