APIs to manage, protect, or recover MongoDB Ops Manager assets
This section contains information of MongoDB Ops Manager APIs.
NetBackup uses third-party MongoDB Ops Manager APIs to support FULL, INCR, TLOG, and restore workflows. These include:
File list API (incremental snapshot contents) and Incremental file diff API (changed files between snapshots) for INCR backups.
Cluster and snapshot status APIs (for polling and lifecycle state checks).
FULL snapshot lifecycle APIs (create/start/poll/finish/fail).
INCR snapshot lifecycle APIs (create with base snapshot reference/start/poll).
Oplog snapshot lifecycle APIs (create/start/poll/finish/fail/details).
Restore lifecycle APIs (create/start/poll/fail).
Preferred node discovery APIs and group/cluster discovery APIs.
The following sections are the part of this topic:
Table: Add a MongoDB Ops Manager
API | Important variables and options |
|---|---|
POST
/netbackup/asset-service/queries
GET
/netbackup/asset-service/queries/{aqcId}
GET
/netbackup/asset-service/workloads
/mongodb-ops-manager/assets
|
Note: Ensure that the credentials with credentialName exist. |
Table: Discover the MongoDB Ops Manager assets for given central URL of Ops Manager
API | Important variables and options |
|---|---|
POST /netbackup/admin/discovery /workloads/mongodb-ops-manager/start POST /netbackup/admin/discovery/workloads /mongodb-ops-manager/stop GET /netbackup/admin/discovery/workloads /mongodb-ops-manager/status |
|
After discovery, you need to configure the preferred nodes for the replica sets in the cluster.
Table: Select preferred nodes of replica sets/shard in a cluster
API | Important variables and options |
|---|---|
POST /netbackup/asset-service/queries |
|
Once the preferred nodes of all replica sets/shard in the cluster are configured, the Protection Ready flag for the cluster will be displayed as Yes. Proceed to create the policies
Table: Create a MongoDB Ops Manager Policy
API | Important variables and options |
|---|---|
POST /netbackup/config/policies |
|
Other processes, like scheduling within the policy or initiating the policy backup, remain unchanged.
Table: MongoDB Ops Manager Recovery
API | Important variables and options |
|---|---|
POST /netbackup/recovery/workloads/ mongodb-ops-manager/scenarios/cluster /recover |
Note: If the value for recoverPointInTime parameter is not provided, the recovery of the databases will happen to current time. recoverPointInTime requires TLOG backups for the specified time range. If TLOG backups are not available, point‑in‑time recovery is not supported and the request may fail or be limited to snapshot recovery points. |