MongoDB Resource Policies API

Configure and manage Atlas Resource Policies within your organization.

GitHub OpenAPI

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/atlas/v2/orgs/{orgId}/nonCompliantResources List resources that violate resource policies · Return All Non-Compliant Resources #
Ask an LLM
“Which resources in my organization are non-compliant with our resource policies?”
“Can I see every resource that fails a policy check?”
Tell an agent
List non-compliant resources for organization {orgId}.
Show the resources in {orgId} that violate resource policies.
GET /api/atlas/v2/orgs/{orgId}/resourcePolicies List all resource policies for an organization · Return All Atlas Resource Policies #
Ask an LLM
“What resource policies exist across my organization?”
“Can I get the full list of resource policies for an org?”
Tell an agent
List all resource policies for organization {orgId}.
Show every resource policy defined in {orgId}.
POST /api/atlas/v2/orgs/{orgId}/resourcePolicies Create an organization resource policy · Create One Atlas Resource Policy #
Ask an LLM
“How do I create a new resource policy for my whole organization?”
“Can I define a set of policies that apply across all projects in an org?”
Tell an agent
Create a resource policy named {name} in {orgId} with policies {policies}.
Add a new organization resource policy {name} to {orgId} described as {description}.
DELETE /api/atlas/v2/orgs/{orgId}/resourcePolicies/{resourcePolicyId} Delete an organization resource policy · Delete One Atlas Resource Policy #
Ask an LLM
“How do I remove a resource policy from my organization?”
“Can I delete a resource policy by its ID?”
Tell an agent destructive · confirm first
Delete resource policy {resourcePolicyId} from {orgId}.
Remove the organization resource policy {resourcePolicyId} in {orgId}.
GET /api/atlas/v2/orgs/{orgId}/resourcePolicies/{resourcePolicyId} Get one organization resource policy · Return One Atlas Resource Policy #
Ask an LLM
“What policies make up a specific resource policy?”
“Can I read one resource policy by its ID?”
Tell an agent
Get resource policy {resourcePolicyId} in {orgId}.
Show the policies in resource policy {resourcePolicyId} for organization {orgId}.
PATCH /api/atlas/v2/orgs/{orgId}/resourcePolicies/{resourcePolicyId} Update an organization resource policy · Update One Atlas Resource Policy #
Ask an LLM
“Can I change the policies inside an existing resource policy?”
“How do I rename a resource policy that already exists?”
Tell an agent
Update resource policy {resourcePolicyId} in {orgId} with policies {policies}.
Rename existing resource policy {resourcePolicyId} in {orgId} to {name}.
POST /api/atlas/v2/orgs/{orgId}/resourcePolicies:validate Validate a resource policy before creating it · Validate One Atlas Resource Policy #
Ask an LLM
“Can I check a resource policy for errors before saving it?”
“Is there a dry-run for a new resource policy?”
Tell an agent
Validate a resource policy named {name} in {orgId} with policies {policies}.
Check that the resource policy {name} for {orgId} would be valid.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mongodb:mongodb-resource-policies-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mongodb-resource-policies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mongodb Resource Policies API
  version: '2.0'
  license:
    name: CC BY-NC-SA 3.0 US
    url: https://creativecommons.org/licenses/by-nc-sa/3.0/us/
  termsOfService: https://www.mongodb.com/mongodb-management-service-terms-and-conditions
  x-refined-note:
  - x-xgen-sha differs across the merged source definitions and was not carried
  description: 'Operations tagged Resource Policies across 2 of this provider''s published API definitions: mongodb-atlas-openapi.yaml, mongodb-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://cloud.mongodb.com
security:
- ServiceAccounts: []
- DigestAuth: []
tags:


# --- truncated at 32 KB (42 KB total) ---
# Full source: https://artifacts.apis.io/mongodb/openapi/mongodb-resource-policies-api-openapi.yml