Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2955

Retrieve full list of replicasets in MongoDB Atlas

    • Type: Icon: Question Question
    • Resolution: Community Answered
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      How do I programatically retrieve a full list of MongoDB replica sets and sharded clusters that are in a single MongoDB account ?

      Is there an API call that one can use, and could you please point me to the API documentation and some examples ?

       

      The return result would have the replica set name and hostname:port of each members.

       

      Thanks

      Alex

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            aleong@indeed.com Alex Leong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: