Docs Menu

Docs HomeMongoDB Atlas

Get Started with the Atlas Administration API

On this page

Important

Each Atlas Administration API has its own resources and requires initial setup. The Atlas Administration API and the App Services Admin API also use different access keys from the Data API.

You can access the Atlas Administration API servers through the public internet only. The Atlas Administration API is not available over connections that use network peering or private endpoints.

To learn more, see APIs.

To access the Atlas Administration API, Create an API Key in an Organization.

All API keys belong to the organization. You can give an API key access to a project. To add the new API key to a project, Invite an Organization API Key to a Project.

To learn more about managing API keys for your organization or project, see Grant Programmatic Access to Atlas.

Atlas allows your API key to make requests from any address on the internet. Atlas has some exceptions to this rule. These exceptions limit which resources an API key can use without location-based limits defined in an API access list.

To add these location-based limits to your API key, create an API access list. This list limits the internet addresses from which a specific API key can make API requests.

Any API keys with an API access list require all API requests to come from an IP address on that list. Your API access list must include entries for all clients that use the API.

The following API resources require an API access list:

Create or remove access list entries for an organization API key.

Take or remove one replica set or sharded cluster cloud backup snapshot.

You can require all API requests from an API key to come from an entry on its API access list. If you require API access lists, API keys can't make any API requests until you define at least one API access list entry.

To set your organization to require API access lists for every API key:

1
2
  1. If it is not already displayed, select your desired organization from the Organizations menu in the navigation bar.

  2. Click the Organization Settings icon next to the Organizations menu.

3

To grant programmatic access to an organization or project using only the API, create an API key.

  • API keys have two parts: a Public Key and a Private Key. These two parts serve the same function as a username and a personal API key when you make API requests to Atlas.

  • You can't use an API key to log into Atlas through the user interface.

  • You must grant roles to API keys as you would for users to ensure the API keys can call API endpoints without errors.

  • Each API key belongs to only one organization, but you can grant an API key access to any number of projects in that organization.

Note

Note

Required Permissions

To perform any of the following actions, you must have the Project Owner role.

Note

Requires Access List

To make this API request:

  1. Configure an IP access list.

  2. Add the IP addresses or CIDR blocks of your client applications to the access list using the console or API. If you host your application on AWS, you can use an AWS security group ID as well.

Changing an API key's access list might impact multiple organizations, projects, or both.

1
  1. If it is not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.

  2. Select your desired project from the list of projects in the Projects page.

  3. Click the vertical ellipsis () next to your project name in the upper left corner and select Project Settings.

  4. Click Access Manager in the navigation bar, then click your project.

2
3
  1. Click to the right of the API Key.

  2. Click Edit Permissions.

4
5

Note

Required Permissions

To perform any of the following actions, you must have the Organization Owner role.

In the organizations and projects hierarchy, an organization can contain multiple projects (previously referred to as groups). Under this structure:

  • Billing happens at the organization level while preserving visibility into usage in each project.

  • You can view all projects within an organization.

  • You can use teams to bulk assign organization users to projects within the organization.

If you need to scale beyond the existing project limits, you can create multiple organizations.

Repeat the following steps to create multiple organizations:

1
  1. Expand the Organizations menu in the navigation bar.

  2. Click View All Organizations.

2
3
4

You have the option of adding a new Cloud Manager organization or a new Atlas organization. For more information on Cloud Manager see the documentation.

5
  1. For existing Atlas users, enter their username. Usually, this is the email the person used to register.

  2. For new Atlas users, enter their email address to send an invitation.

6
7

You can set up cross-organization billing to share a billing subscription across multiple organizations.

The following prerequisites and limitations apply:

  • To link a paying organization to another organization, you must have Organization Billing Admin or Organization Owner privileges for both organizations.

  • A paying organization must have an Atlas subscription.

  • A paying organization and all linked organizations must be in good standing and have no failed payments.

  • A paying organization and any linked organizations must be on the same subscription plan.

  • A paying organization and any linked organizations must have the same minimums, uplifts, and SLA for their subscription plan.

  • A paying organization and any linked organizations can't have overlapping monthly commitment deals.

  • A paying organization on a prepaid subscription plan and any linked organizations must be on the same current and future subscription plans.

  • You can use the Atlas UI to manually link a paying organization to a maximum of 20 other organizations. To link a paying organization to more than 20 other organizations, contact support.

  • A paying organization can't link more than 100 other organizations.

  • A paying organization can't already be a linked organization.

To configure a paying organization and link other organizations to it:

1

If it is not already displayed, select your desired organization from the Organizations menu in the navigation bar. If you wish to create a new organization through which to pay, Create an Organization first.

2

Click Billing in the top navigation bar or in the left navigation panel.

3

Note

The Linked Organizations tab only displays if your selected organization is eligible to be a paying organization for cross-organization billing.

4

If you are configuring a new paying organization, click Start Linking.

If your organization is already a paying organization, click Link More Organizations.

5

A dialog displays your selected organization under Paying organization on the left and a list of organizations you may link to it under Select organizations to link on the right.

Select each organization you wish to link to your paying organization.

Click Review and Finish.

6

Important

After you click Finish, you will not be able to unlink organizations unless you contact Support.

Confirm that your organizations are linked as intended and click Finish.

To manage projects in all your organizations:

1

Repeat the steps to create an API key for an organization for each organization.

2

For each project within an organization, invite the related organization key.

←  Invitations to Organizations and ProjectsView Activity Feed →
Share Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.