Organization Service Accounts
Cloud Manager will no longer support Automation, Backup, and Monitoring for MongoDB 3.6 and 4.0 after August 30th, 2024. Please upgrade your MongoDB deployment or migrate to Atlas.
- 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 /orgs/{ORG-ID}/serviceAccounts
resource to view, create, or delete
Service Accounts within the specified
Cloud Manager organization.
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 Organization | Retrieve Organization Service Accounts |
Organization Owner or
Organization User Admin | Create, update, or delete an Organization Service Account |
Endpoints
Method | Endpoint | Description |
---|---|---|
GET | Get all service accounts for the organization identified with
{ORG-ID} . | |
GET | Get one service account identified with its {CLIENT-ID} for the organization
identified with {ORG-ID} . | |
GET | Get a list of all projects that an organization service account is
assigned to. The organization is identified with {ORG-ID} and the
service account is identified with {CLIENT-ID} . | |
POST | Create a service account for the organization identified with
{ORG-ID} . | |
PATCH | Update one service account identified by its {CLIENT-ID} for the organization
identified with {ORG-ID} . | |
DELETE | Delete the service account with ID {CLIENT-ID} . | |
POST | Create a secret for the organization service account identified with
{ORG-ID} and {CLIENT-ID} . | |
DELETE | Delete the service account secret identified with {CLIENT-ID} and {SECRET-ID} . |