Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 2.65 KB

collection-description.md

File metadata and controls

34 lines (20 loc) · 2.65 KB

MongoDB Atlas Administration API

This collection is an introduction to the MongoDB Atlas Administration API. The MongoDB Atlas Administration API offers a method to manage your MongoDB Atlas clusters following the principles of the REST architectural style. To learn more, visit the MongoDB Atlas Administration API documentation.

Getting Started

To test out the MongoDB Atlas Admin API collection, start by creating a free MongoDB Atlas cluster.
Once you have a cluster, you can fork this collection into your own workspace in order to manage your MongoDB Atlas resources. Make sure to also fork the MongoDB Atlas Administration API Environment at the same time.

Authentication Using Service Accounts (OAuth)

Once you have your cluster up and running, follow this guide to create new Service Account. Once created copy your public and private API keys. Set each of these values as secrets in the Postman Vault:

  • Service Account Client ID: `mongodb-public-clientid`
  • Service Account Client Secret: `mongodb-private-clientsecret`

Digest Authentication

Alternatively to Service Account you can use API Keys authentication. Set each of these values as secrets in the Postman Vault:

  • public API key as the value for a key named `mongodb-public-api-key`
  • private API key as the value for a key named `mongodb-private-api-key`

Additionally to setting those values you would need to manually configureDigest Authentication in the Collection Authentication Settings

Using API

You can now explore the various endpoints. For each endpoint, edit the query and path variables such as group ID and organization ID. For some requests, like POST requests, editing the body of the request is also required.

For more details, you can follow along with the Configuring Atlas in Postman With the Atlas Administration API blog.