Project Service Accounts
- 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.
Base URL: https://cloud.mongodb.com/api/public/v1.0
Use the /groups/{PROJECT-ID}/serviceAccounts
resource to view, create, assign,
update, or delete
Service Accounts within the specified
Cloud Manager project.
Permissions
To use these endpoints, grant the following roles to a Project service account or user in your Organization:
Role | Possible Action |
---|---|
Any role in the Project | Retrieve Project service accounts. |
Create or update a Project service account, or unassign an Organization service account from a Project. Create or delete a service account secret. | |
Assign an Organization service account to a Project. |
Endpoints
Method | Endpoint | Description |
---|---|---|
| Get all service accounts assigned to one project with ID
| |
| Get one service account identified with | |
| Create a service account and assign it to the Project identified with | |
| Assign one existing Organization service account identified with
| |
| Update one service account identified with | |
| Remove the service account identified with | |
| Create a secret for the Project service account identified with
| |
| Delete the service account secret identified with |