Atlas nonCompliantResources endpoint
Parent: Atlas Resource Policies Cedar · Published reference · snapshot 2026-10-23 · skill mongodb-cohort-0bd972ad850c
↓ Facts as markdown↓ Portable .llms packagent context libraries
Source-anchored research for Atlas nonCompliantResources endpoint. Run status: COMPLETED.
These notes link each claim to its source. Some citations identify archived research reports that are no longer hosted on this site. A published reference means the content is available; it does not certify independent review or accuracy.Read the editorial policy and follow the sources before relying on a claim.
Definitions
- The documented success payload is an array containing orgId, resourceId, resourceName, resourceType, and resourcePoliciesCausingNonCompliance; nested entries identify resourcePolicyId, resourcePolicyName, and policiesCausingNonCompliance[].policyId. (medium confidence) (verified as of 2026-10-23) [source 1] [source 2]
How it works
- MongoDB recommends proactively monitoring this endpoint because resource policies do not enforce all intermediate or transitional states; downstream failures can leave a temporary non-compliant state. (low confidence) [source]
Comparisons and alternatives
- A practical monitoring pattern is to poll this endpoint, feed results into configuration-drift alerting, and track remediation or documented exceptions; this is operational guidance rather than a documented push-notification feature. (medium confidence) [source 1] [source 2]
Facts and statements
- GET /api/atlas/v2/orgs/{orgId}/nonCompliantResources returns all non-compliant resources for an organization; in MongoDB's Go SDK the route is exposed as ResourcePoliciesApi.GetOrgNonCompliantResourcesWithParams (the Atlas CLI command is getNonCompliantResources). Sources: https://www.mongodb.com/docs/api/doc/atlas-admin-api-v2/operation/operation-getorgnoncompliantresources [source 1] [source 2] [source 3]
- The API reference lists Organization Member as the role requirement. orgId is required and is a 24-hexadecimal string. (low confidence) (verified as of 2026-10-23) [source]
- The documented resourceType values are PROJECT, CLUSTER, DEPRECATED_PROJECT and DEPRECATED_CLUSTER; do not assume a separate NETWORK enum from informal descriptions of network violations. (low confidence) (verified as of 2026-10-23) [source]
- The endpoint documents envelope and pretty boolean query options, both defaulting to false. Its default response example is a JSON array. (low confidence) (verified as of 2026-10-23) [source]
- Applying a resource policy does not automatically remediate existing resources. Foojay’s August 13, 2025 walkthrough reports that an existing 0.0.0.0/0 entry remained and was flagged after a wildcard-blocking policy was applied. (medium confidence) Sources: https://foojay.io/today/enforcing-governance-in-mongodb-atlas-with-resource-policies/ [source]
- Existing autoscaling limits can permit automatic scaling beyond a newly applied policy even though manual scaling beyond policy limits is blocked. MongoDB recommends identifying these resources with nonCompliantResources and updating them. (low confidence) (verified as of 2026-10-23) [source]
- MongoDB strongly recommends proactively monitoring the list of non-compliant resources using the /orgs/{ORG-ID}/nonCompliantResources endpoint, and monitoring noncompliant resources and planning remediation. Sources: https://www.mongodb.com/docs/atlas/atlas-resource-policies.md ; https://mongodb.com/company/blog/innovation/enforce-data-sovereignty-with-mongodb-atlas-resource-policies [source 1] [source 2] [source 3]
- The Resource Policies endpoint set shares an ORGANIZATION-scoped token bucket: capacity 500 and refill 250 tokens per 60 seconds. nonCompliantResources shares that bucket with resource-policy CRUD and validation endpoints. (low confidence) (verified as of 2026-10-14) [source]
- The API reference includes the CLI command atlas api resourcePolicies getNonCompliantResources --help and examples for bearer-token and HTTP Digest authentication. (low confidence) (verified as of 2026-10-23) [source]
- The API reference lists Organization Member as its role requirement and documents service-account bearer authentication and API-key Digest authentication examples. (low confidence) (verified as of 2026-10-23) [source]
- MongoDB recommends proactive monitoring: downstream failures can leave intermediate states non-compliant, and clusters with pre-existing autoscaling limits beyond a new policy can continue scaling automatically beyond those boundaries even though manual scaling is constrained. (low confidence) (verified as of 2026-10-23) [source]
- After an Atlas Resource Policy is applied, existing non-compliant clusters continue running, and policies only restrict modifications or the creation of new resources that would keep them out of compliance. Sources: https://mongodb.com/company/blog/innovation/enforce-data-sovereignty-with-mongodb-atlas-resource-policies [source 1] [source 2]
Children
- No children recorded.