Snapshots
- OAuth 2.0 authentication for programmatic access to Cloud Manager is available as a Preview feature.
- The feature and the corresponding documentation might change at any time during the Preview period. To use OAuth 2.0 authentication, create a service account to use in your requests to the Cloud Manager Public API.
Note
Groups and projects are synonymous terms. Your {PROJECT-ID}
is the
same as your project id. For existing groups, your group/project id
remains the same. This page uses the more familiar term group when
referring to descriptions. The endpoint remains as stated in the
document.
This resource allows you to view metadata of, change the expiration date
for, and remove existing snapshots. A snapshot is a complete copy of the
data in a mongod
instance at a point in time.
You can retrieve snapshot metadata for the whole cluster or replica set, or for a single config server in a cluster.
To restore the snapshot data, you must create a restore job.
Base URL: https://cloud.mongodb.com/api/public/v1.0
Endpoints
The following lists the endpoints available for snapshots.
Method | Endpoint | Description |
---|---|---|
GET | Get All Snapshots for a Cluster | |
GET | Get one snapshot for a cluster. | |
PATCH | Change expiration date for one snapshot. | |
DELETE | Remove one snapshot. IMPORTANT: To delete a snapshot, you must issue the request from an IP address on your user account's access list. |
Important
Deprecated when using MongoDB 3.4
As of MongoDB 3.4, mirrored config server deployments (also known as SCCC) are no longer supported. The following API methods work with SCCC config servers only. To learn how to convert your config servers from SCCC to a replica set (also known as CSRS), see Upgrade Config Servers to Replica Set in the MongoDB Server Manual.
Method | Endpoint | Description |
---|---|---|
GET | Get all snapshots for a config server. | |
GET | Get one snapshot for a config server. |