@pontx/mongodb-atlas-admin
v0.1.1
Published
Type-safe MongoDB Atlas Administration API v2 SDK and CLI generated from the product-owned PontxSpec
Maintainers
Readme
@pontx/mongodb-atlas-admin
Type-safe MongoDB Atlas Administration API v2 SDK and CLI generated from the exact product-owned PontxSpec metadata commit. It covers the complete 540 Endpoint contract and makes caller-directed requests only.
Install
pnpm add @pontx/mongodb-atlas-adminSDK
Prefer an Atlas OAuth service account with minimum required permissions. Keep credentials outside source and logs:
import { createMongoDbAtlasAdminClient } from "@pontx/mongodb-atlas-admin";
const client = createMongoDbAtlasAdminClient({
clientId: process.env.MONGODB_ATLAS_SERVICE_ACCOUNT_CLIENT_ID,
clientSecret: process.env.MONGODB_ATLAS_SERVICE_ACCOUNT_CLIENT_SECRET,
});
const organizations = await client.organizations.listOrgs({});You may instead provide an already-issued accessToken or set
MONGODB_ATLAS_ACCESS_TOKEN. The SDK never persists credential material.
CLI
pnpm add --global @pontx/mongodb-atlas-admin
pontx-mongodb-atlas-admin list apis
pontx-mongodb-atlas-admin call organizations listOrgs --dry-runAll POST, PUT, PATCH, and DELETE calls are blocked until the exact same request
has been reviewed via --dry-run and repeated with its short-lived
--confirm token. Previews redact credential-like input names. Atlas
administration traffic stays caller-local; Pontx Hub does not proxy it.
Legal and service boundary
The immutable OpenAPI input is Apache-2.0 licensed. MongoDB Cloud service use, website content, and trademarks are governed separately by MongoDB's terms. This independently branded SDK is not endorsed by MongoDB.
