MongoDB API Roles and Tables

The MongoDB integration uses the following roles and tables

Roles (API key project roles)

Collector / tableAtlas Admin APIMinimum project role
MongoDBAtlasBackupSnapshotsGET /api/atlas/v2/groups/{projectId}/clusters/{clusterName}/backup/snapshots (replica set) and GET .../backup/snapshots/shardedClusters (sharded)Project Read Only
MongoDBAtlasBackupRestoreJobsGET /api/atlas/v2/groups/{projectId}/clusters/{clusterName}/backup/restoreJobsProject Backup Manager
MongoDBAtlasEncryptionAtRestsGET /api/atlas/v2/groups/{projectId}/encryptionAtRestProject Read Only
MongoDBAtlasAlertConfigsGET /api/atlas/v2/groups/{projectId}/alertConfigsProject Read Only
MongoDBAtlasAuditLogsGET /api/atlas/v2/groups/{projectId}/auditLogProject Owner

📘

Note

Existing Project Read Only keys get snapshots, encryption-at-rest, and alert configs. They do not get restore jobs (Project Backup Manager) or audit config (Project Owner).

Tables

MongoDBAtlasAlertConfigs

Alert configurations for one Atlas project.

Atlas API key project role - Project Read Only

Composite PK is ID + ConfigID. FK MongoDBAtlasProjectID + ConfigID → MongoDBAtlasProjects (ID, ConfigID), cascade delete. Matcher and notification arrays are stored as serialized JSON; metric/host thresholds are flattened.

NameTypeDescription
IDstringUnique identifier for the alert configuration from Atlas.
ConfigIDintegerThe ID of the configuration within Compyl.
CreateddatetimeDate and time the alert configuration was created.
EnabledbooleanIndicates whether the alert configuration is enabled.
EventTypeNamestringAtlas event type that triggers the alert.
GroupIDstringAtlas project ID (GroupId) the alert configuration belongs to.
MatchersSerializedstringSerialized JSON array of matcher rules that scope the alert.
MetricThresholdMetricNamestringMetric name for metric-threshold alerts.
MetricThresholdModestringMetric threshold mode (e.g. AVERAGE).
MetricThresholdOperatorstringComparison operator for the metric threshold.
MetricThresholdThresholdfloatNumeric threshold for the metric.
MetricThresholdUnitsstringUnits for the metric threshold.

MongoDBAtlasAuditLogs

Database auditing configuration for one Atlas project.

Composite PK is ID + ConfigID (ID is the Atlas project ID). Unique FK MongoDBAtlasProjectID + ConfigID → MongoDBAtlasProjects (ID, ConfigID), cascade delete. Not available on M0/M2/M5 or serverless.

Atlas API key project role - Project Owner

NameTypeDescription
IDstringAtlas project ID this auditing configuration belongs to.
ConfigIDintegerThe ID of the configuration within Compyl.
AuditAuthorizationSuccessbooleanIndicates whether successful authentications are audited (AuthCheck).
AuditFilterstringJSON document that specifies which events Atlas records in the audit log.
ConfigurationTypestring"How the audit filter is configured (NONE, FILTER_BUILDER, or FILTER_JSON)."
EnabledbooleanIndicates whether database auditing is enabled for the project.
MongoDBAtlasProjectIDstringUnique identifier of the Atlas project (GroupID).
BatchDatedatetimeThe date and time data was synced to our database.

MongoDBAtlasBackupRestoreJobs

Cloud backup restore jobs for one Atlas cluster.

Composite PK is ID + ConfigID. FK MongoDBAtlasClusterID + ConfigID → MongoDBAtlasClusters (ClusterID, ConfigID), cascade delete.

Atlas API key project role - Project Backup Manager

NameTypeDescription
IDstringUnique identifier for the restore job from Atlas.
ConfigIDintegerThe ID of the configuration within Compyl.
CancelledbooleanIndicates whether the restore job was cancelled.
DeliveryTypestring"How the restore is delivered (automated, download, or pointInTime)."
ExpiredbooleanIndicates whether the restore job expired.
ExpiresAtdatetimeDate and time the restore job expires.
FailedbooleanIndicates whether the restore job failed.
FinishedAtdatetimeDate and time the restore job completed.
OplogIncintegerOplog increment used for a point-in-time restore.
OplogTsintegerOplog timestamp (Unix seconds) used for a point-in-time restore.
PointInTimeUTCSecondsintegerPoint-in-time restore timestamp in Unix seconds.
SnapshotIDstringUnique identifier of the snapshot being restored.

MongoDBAtlasBackupSnapshots

Cloud backup snapshots for one Atlas cluster.

Composite PK is ID + ConfigID. FK MongoDBAtlasClusterID + ConfigID → MongoDBAtlasClusters (ClusterID, ConfigID), cascade delete.

Atlas API key project role - Project Read Only

NameTypeDescription
IDstringUnique identifier for the snapshot from Atlas.
ConfigIDintegerThe ID of the configuration within Compyl.
CloudProviderstring"Cloud provider that stores the snapshot (e.g. AWS, AZURE, GCP)."
CopyRegionsSerializedstringSerialized JSON list of regions the snapshot is copied to.
CreatedAtdatetimeDate and time Atlas created the snapshot.
DescriptionstringOptional description of the snapshot.
ExpiresAtdatetimeDate and time the snapshot expires.
FrequencyTypestring"Backup frequency that produced the snapshot (e.g. hourly, daily, weekly)."
MasterKeyUUIDstring"AWS KMS customer master key UUID used to encrypt the snapshot, when encryption is enabled."
MongodVersionstringMongoDB version of the cluster at snapshot time.
PolicyItemsSerializedstringSerialized JSON list of backup policy item IDs associated with the snapshot.
ReplicaSetNamestringName of the replica set the snapshot belongs to.

MongoDBAtlasClusters

NameTypeDescription
ConfigIDintegerInternal identifier for this configuration or ingestion record.
ClusterIDstringUnique identifier for the MongoDB Atlas cluster.
GroupNamestringName of the Atlas project that contains the cluster.
OrgNamestringName of the Atlas organization that owns the project.
PlanTypestring"Tier or plan type assigned to the cluster (e.g., M10, M20)."
TagsSerializedstringSerialized list of cluster tags for categorization or automation.
AlertCountintegerNumber of open alerts currently associated with the cluster.
AuthEnabledbooleanIndicates whether authentication is enabled for the cluster.
AvailabilitystringCurrent availability or health status of the cluster.
BackupEnabledbooleanIndicates whether backups are enabled for the cluster.
DataSizeBytesinteger"Total data size stored within the cluster, in bytes."
NamestringHuman-readable name of the cluster.

MongoDBAtlasCustomDatabaseRoleActions

NameTypeDescription
ConfigIDintegerInternal identifier for this configuration or ingestion record.
ActionstringSpecific database action or privilege assigned to the custom role.
BatchDatedatetimeDate and time when the record was last collected or updated.
MongoDBAtlasCustomDatabaseRoleIDuniqueidentifierUnique identifier of the associated custom database role.
IDuniqueidentifierUnique identifier for this action record within the table.

MongoDBAtlasCustomDatabaseRoleInheritedRoles

NameTypeDescription
ConfigIDintegerInternal identifier for this configuration or ingestion record.
IDintegerUnique identifier for this inherited role record within the table.
DbstringName of the database where the inherited role is defined.
RolestringName of the role that is inherited by the custom database role.
BatchDatedatetimeDate and time when the record was last collected or updated.
MongoDBAtlasCustomDatabaseRoleIDuniqueidentifierUnique identifier of the associated custom database role.

MongoDBAtlasCustomDatabaseRoleResources

NameTypeDescription
ConfigIDintegerInternal identifier for this configuration or ingestion record.
IDintegerUnique identifier for this resource record within the table.
ClusterbooleanName of the cluster where the resource resides.
CollectionstringName of the collection that the role action applies to.
DbstringName of the database that the role action applies to.
BatchDatedatetimeDate and time when the record was last collected or updated.
MongoDBAtlasCustomDatabaseRoleActionIDuniqueidentifierUnique identifier of the associated custom database role action.

MongoDBAtlasCustomDatabaseRoles

NameTypeDescription
ConfigIDintegerInternal identifier for this configuration or ingestion record.
RoleNamestringName of the custom database role.
LinksSerializedstringSerialized JSON of related API or resource links for the role.
MongoDBAtlasProjectIDstringUnique identifier of the Atlas project (groupId) where the role is defined.
BatchDatedatetimeDate and time when the record was last collected or updated.
IDuniqueidentifierUnique identifier for this custom database role record within the table.

MongoDBAtlasDatabaseUserRoles

NameTypeDescription
ConfigIDintegerInternal identifier for this configuration or ingestion record.
IDuniqueidentifierUnique identifier for this database user role record within the table.
CollectionNamestringName of the collection the role applies to (if applicable).
DatabaseNamestringName of the database the role applies to.
RoleNamestringName of the role assigned to the database user.
MongoDBAtlasDatabaseUserIDuniqueidentifierUnique identifier of the associated database user.
BatchDatedatetimeDate and time when the record was last collected or updated.

MongoDBAtlasDatabaseUsers

NameTypeDescription
ConfigIDintegerInternal identifier for this configuration or ingestion record.
IDuniqueidentifierUnique identifier for this database user record within the table.
UsernamestringThe username of the database user.
AWSIAMTypestring"Specifies if the user authenticates via AWS IAM (e.g., NONE, USER, ROLE)."
DatabaseNamestringName of the database the user belongs to or authenticates against.
DeleteAfterDatedatetime"Scheduled deletion date for the user, if applicable."
DescriptionstringText description or notes about the database user.
LabelsSerializedstring"Serialized labels or tags associated with the user (e.g., JSON)."
LdapAuthTypestringIndicates LDAP authentication type if used for the user.
OidcAuthTypestringIndicates OIDC authentication type if used for the user.
X509TypestringIndicates X.509 certificate authentication type if used for the user.
LinksJsonstringJSON object containing related API or resource links for the user.
MongoDBAtlasProjectIDstringUnique identifier of the Atlas project (groupId) where the user is defined.
BatchDatedatetimeDate and time when the record was last collected or updated.

MongoDBAtlasDatabaseUserScopes

NameTypeDescription
ConfigIDintegerInternal identifier for this configuration or ingestion record.
IDuniqueidentifierUnique identifier for this database user scope record within the table.
NamestringName of the resource or scope the user has access to.
Typestring"Type of the scope (e.g., database, collection, cluster)."
MongoDBAtlasDatabaseUserIDuniqueidentifierUnique identifier of the associated database user.
BatchDatedatetimeDate and time when the record was last collected or updated.

MongoDBAtlasEncryptionAtRests

Encryption-at-rest (customer-managed key) configuration for one Atlas project.
Atlas API key project role - Project Read Only

NameTypeDescription
IDstringAtlas project ID this encryption configuration belongs to.
ConfigIDintegerThe ID of the configuration within Compyl.
EnabledForSearchNodesbooleanIndicates whether encryption at rest is enabled for dedicated Search nodes.
AwsKmsAccessKeyIDstringAWS IAM access key ID used to access the customer master key.
AwsKmsCustomerMasterKeyIDstringAWS KMS customer master key ID used to encrypt MongoDB master keys.
AwsKmsEnabledbooleanIndicates whether AWS KMS encryption at rest is enabled for the project.
AwsKmsRegionstringAWS region of the KMS key (e.g. US_EAST_1).
AwsKmsRequirePrivateNetworkingbooleanIndicates whether AWS KMS is accessed over private networking.
AwsKmsRoleIDstringAtlas cloud-provider access role ID used for AWS KMS.
AwsKmsValidbooleanIndicates whether the AWS KMS key can encrypt and decrypt data.
AzureKeyVaultAzureEnvironmentstring"Azure environment for the credentials (AZURE, AZURE_CHINA, AZURE_US_GOVERNMENT)."
AzureKeyVaultClientIDstringAzure application (client) ID used to access Key Vault.

MongoDBAtlasIntegrations

NameTypeDescription
IDintegerUnique identifier for the integration record within the table.
NamestringName of the integration.
CreatedDatedatetimeDate and time when the integration was created.
ModifiedDatedatetimeDate and time when the integration was last modified.
CreatedBystringIdentifier or name of the user who created the integration.
ModifiedBystringIdentifier or name of the user who last modified the integration.
IsEnabledbooleanIndicates whether the integration is currently enabled.
OrganizationIDstringUnique identifier of the Atlas organization that owns the integration.
ProjectIDstringUnique identifier of the Atlas project associated with the integration.
PublicAPIKeystringPublic API key used by the integration for authentication.
ServiceAccountClientIDstringClient ID of the service account associated with the integration.

MongoDBAtlasOrganizationEvents

NameTypeDescription
ConfigIDintegerInternal identifier for this configuration or ingestion record.
IDstringUnique identifier for this organization event record within the table.
ApiKeyIDstring"Identifier of the API key used for the event, if applicable."
CreateddatetimeTimestamp when the event was created.
EventTypeNamestringName of the event type.
GroupIDstringIdentifier of the project (group) associated with the event.
IsGlobalAdminbooleanIndicates whether the user performing the action is a global admin.
PublicKeystringPublic key associated with the event or user.
RawTstringRaw timestamp or technical field from Atlas event data.
RawAlertConfigIDstringRaw alert configuration ID from the event payload.
RawCIDstringRaw cluster ID from the event payload.
RawCredatetimeRaw creation metadata from the event payload.

MongoDBAtlasOrganizations

NameTypeDescription
ConfigIDintegerInternal identifier for this configuration or ingestion record.
IDstringUnique identifier for the organization record within the table.
IsDeletedbooleanIndicates whether the organization has been deleted.
NamestringName of the organization.
SkipDefaultAlertsSettingsbooleanIndicates whether default alert settings are skipped for this organization.
LinksJsonstringJSON object containing related API or resource links for the organization.
BatchDatedatetimeDate and time when the record was last collected or updated.

MongoDBAtlasPrivateEndpoints

NameTypeDescription
ConfigIDintegerInternal identifier for this configuration or ingestion record.
IDintegerUnique identifier for the private endpoint record within the table.
SrvConnectionStringstringThe SRV connection string used to connect to the private endpoint.
Typestring"Type of the private endpoint (e.g., AWS, Azure, GCP)."
EndpointsSerializedstring"Serialized list of endpoint details (e.g., JSON array)."
MongoDBAtlasServerlessInstanceIDstringUnique identifier of the associated serverless instance.
BatchDatedatetimeDate and time when the record was last collected or updated.

MongoDBAtlasProjectEvents

NameTypeDescription
ConfigIDintegerInternal identifier for this configuration or ingestion record.
IDstringUnique identifier for this project event record within the table.
ApiKeyIDstring"Identifier of the API key used for the event, if applicable."
CreateddatetimeTimestamp when the event was created.
EventTypeNamestringName of the event type.
GroupIDstringIdentifier of the project (group) associated with the event.
IsGlobalAdminbooleanIndicates whether the user performing the action is a global admin.
PublicKeystringPublic key associated with the event or user.
RawTstringRaw timestamp or technical field from Atlas event data.
RawAlertConfigIDstringRaw alert configuration ID from the event payload.
RawCIDstringRaw cluster ID from the event payload.
RawCredatetimeRaw creation metadata from the event payload.

MongoDBAtlasProjectIPAccessLists

NameTypeDescription
ConfigIDintegerInternal identifier for this configuration or ingestion record.
IDuniqueidentifierUnique identifier for this IP access list record within the table.
AwsSecurityGroupstring"AWS security group associated with the IP access entry, if applicable."
CidrBlockstringCIDR block representing the allowed IP range.
CommentstringOptional comment or note about the IP access entry.
DeleteAfterDatedatetime"Scheduled deletion date for this IP access entry, if applicable."
IpAddressstringSpecific IP address allowed by this access entry.
LinksJsonstringJSON object containing related API or resource links.
MongoDBAtlasProjectIDstringUnique identifier of the Atlas project associated with this IP access list entry.
BatchDatedatetimeDate and time when the record was last collected or updated.

MongoDBAtlasProjects

NameTypeDescription
ConfigIDintegerInternal identifier for this configuration or ingestion record.
IDstringUnique identifier for the project record within the table.
ClusterCountintegerNumber of clusters within the project.
CreateddatetimeTimestamp when the project was created.
NamestringName of the project.
RegionUsageRestrictionsstringSpecifies any geographic region restrictions for the project.
TagsSerializedstring"Serialized list of tags associated with the project (e.g., JSON)."
WithDefaultAlertsSettingsbooleanIndicates whether default alert settings are enabled for the project.
MongoDBAtlasOrganizationIDstringUnique identifier of the organization that owns the project.
LinksJsonstringJSON object containing related API or resource links.
BatchDatedatetimeDate and time when the record was last collected or updated.
MongoDBAtlasOrganizationConfigIDintegerInternal config ID for the organization associated with the project.

MongoDBAtlasServerlessInstances

NameTypeDescription
ConfigIDintegerInternal identifier for this configuration or ingestion record.
IDstringUnique identifier for the serverless instance record within the table.
ConnectionStringsStandardSrvstringStandard SRV connection string for the serverless instance.
CreateDatedatetimeTimestamp when the serverless instance was created.
MongoDBVersionstringMongoDB version running on the serverless instance.
NamestringName of the serverless instance.
ProviderSettingsBackingProviderNamestringCloud provider backing the serverless instance.
ProviderSettingsEffectiveDiskSizeGBLimitintegerEffective disk size limit in GB for the serverless instance.
ProviderSettingsEffectiveProviderNamestringEffective cloud provider being used.
ProviderSettingsProviderNamestringConfigured cloud provider for the instance.
ProviderSettingsRegionNamestringCloud region where the serverless instance is deployed.
ServerlessBackupOptionsServerlessContinuousBackupEnabledbooleanIndicates if continuous backup is enabled for the serverless instance.

MongoDBAtlasTeams

NameTypeDescription
ConfigIDintegerInternal identifier for this configuration or ingestion record.
TeamIDstringUnique identifier for the team within the organization.
RoleNamesSerializedstring"Serialized list of role names assigned to the team (e.g., JSON)."
LinksJsonstringJSON object containing related API or resource links for the team.
BatchDatedatetimeDate and time when the record was last collected or updated.

MongoDBAtlasX509Certificates

NameTypeDescription
ConfigIDintegerInternal identifier for this configuration or ingestion record.
IDintegerUnique identifier for the X.509 certificate record within the table.
CreatedAtdatetimeTimestamp when the certificate was created.
NotAfterdatetimeExpiration date of the certificate.
SubjectstringSubject distinguished name (DN) of the certificate.
LinksJsonstringJSON object containing related API or resource links.
MongoDBAtlasProjectIDstringUnique identifier of the Atlas project associated with the certificate.
BatchDatedatetimeDate and time when the record was last collected or updated.

Bridge Tables

MongoDBAtlasOrganizations_MongoDBAtlasTeams

NameTypeDescription
IDstringUnique identifier for this record within the table.
ConfigIDintegerInternal identifier for this configuration or ingestion record.
TeamIDstringUnique identifier of the associated team in the organization.

MongoDBAtlasProjects_MongoDBAtlasTeams

NameTypeDescription
IDstringUnique identifier for this record within the table.
ConfigIDintegerInternal identifier for this configuration or ingestion record.
TeamIDstringUnique identifier of the associated team in the organization.

Did this page help you?