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

Retrieve full list of replicasets in MongoDB Atlas

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Community Answered
    • Affects Version/s: None
    • Fix Version/s: No versions
    • Component/s: None
    • Labels:
      None

      Description

      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

       

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: