Access List
- OAuth 2.0 authentication for programmatic access to Cloud Manager is available as a Preview feature.
- The feature and the corresponding documentation might change at any time during the Preview period. To use OAuth 2.0 authentication, create a service account to use in your requests to the Cloud Manager Public API.
Note
The whitelist
resource is deprecated.
Use the accessList
resource instead to control access to
API operations.
The accessList
resource lets you retrieve and update a user's
access list, which controls the user's
access to API operations. Users can issue API
operations only from addresses on their own access list. To use the
accessList
resource you must know the unique identifier of the user who owns
the access list. To retrieve a user's ID, see Get All Users in One Project.
The accessList
resource's POST
and DELETE
operations are
in the access list themselves. They must originate from an address already on
the user's access list.
You can retrieve access list information only for the user issuing the request. The USER-ID in the URL must match the ID of the user associated with the public API key used to send the request.
Base URL: https://cloud.mongodb.com/api/public/v1.0
Endpoints
The following endpoints are available for hosts
.
Method | Endpoint | Description |
---|---|---|
GET | Retrieves the access list for the current user. | |
GET | Retrieves the access list for the specified IP address. | |
POST | Adds entries to the access list for the current user. | |
DELETE | Deletes an entry from the access list for the current user. |