Retrieve full list of replicasets in MongoDB Atlas

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Community Answered
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • 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
            Reporter:
            Alex Leong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: