Docs Menu
Docs Home
/
MongoDB Cloud Manager
/ / / /

Get the Snapshot Schedule

On this page

  • Resource
  • Request Parameters
  • Request Path Parameters
  • Request Query Parameters
  • Request Body Parameters
  • Response
  • Example Request
  • Example Response
  • Response Header
  • Response Body

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.

Base URL: https://cloud.mongodb.com/api/public/v1.0

GET /groups/{PROJECT-ID}/backupConfigs/CLUSTER-ID/snapshotSchedule
Parameter
Type
Necessity
Description

PROJECT-ID

string

Required

Unique identifier for the project that holds the cluster with the snapshot schedule you want to get.

CLUSTER-ID

string

Required

Unique indentifier of the cluster whose snapshot schedule you want to get.

The following query parameters are optional:

Name
Type
Necessity
Description
Default

pretty

boolean

Optional

false

envelope

boolean

Optional

Flag that indicates whether or not to wrap the response in an envelope.

Some API clients cannot access the HTTP response headers or status code. To remediate this, set envelope=true in the query.

For endpoints that return one result, the response body includes:

Name
Description

status

HTTP response code

content

Expected response body

false

This endpoint doesn't use HTTP request body parameters.

Name
Type
Description

clusterCheckpointIntervalMin

number

Number of minutes between successive cluster checkpoints. This only applies to sharded clusters. This number determines the granularity of point-in-time restores for sharded clusters. Cloud Manager may return values of 15, 30, or 60.

IMPORTANT: You may use checkpoints for clusters that run MongoDB with Feature Compatibility Version of 4.0 or earlier. Checkpoints were removed from MongoDB instances with FCV 4.2 or later.

clusterId

string

Unique identifier of the cluster to which this backup configuration applies.

dailySnapshotRetentionDays

number

Number of days to retain daily snapshots. Cloud Manager may return values between 1 and 365, inclusive.

Setting dailySnapshotRetentionDays to 0 disables this rule.

fullIncrementalDayOfWeek

string

Day of the week when Cloud Manager takes a full snapshot. This ensures a recent complete backup. Cloud Manager sets the default value to a random weekday.

groupId

string

Unique identifier of the project that owns the backup configuration.

links

array of objects

One or more links to sub-resources and/or related resources. All links arrays in responses include at least one link called self. The relationships between URLs are explained in the Web Linking Specification.

monthlySnapshotRetentionMonths

number

Number of months to retain monthly snapshots. Cloud Manager may return values between 1 and 36, inclusive.

Setting monthlySnapshotRetentionMonths to 0 disables this rule.

pointInTimeWindowHours

number

Number of hours in the past for which a point-in-time snapshot can be created. You cannot change this value for a snapshot.

snapshotIntervalHours

number

Number of hours between snapshots. Cloud Manager may return values of 6, 8, 12, or 24.

snapshotRetentionDays

number

Number of days to keep recent snapshots. Cloud Manager may return values between 2 and 5, inclusive.

weeklySnapshotRetentionWeeks

number

Number of weeks to retain weekly snapshots. Cloud Manager may return values between 1 and 52, inclusive.

Setting weeklySnapshotRetentionWeeks to 0 disables this rule.

curl --user "{PUBLIC-KEY}:{PRIVATE-KEY}" --digest \
--header "Accept: application/json" \
--include \
--request GET "https://cloud.mongodb.com/api/public/v1.0/groups/{PROJECT-ID}/backupConfigs/{CLUSTER-ID}/snapshotSchedule"
HTTP/1.1 401 Unauthorized
Content-Type: application/json;charset=ISO-8859-1
Date: {dateInUnixFormat}
WWW-Authenticate: Digest realm="MMS Public API", domain="", nonce="{nonce}", algorithm=MD5, op="auth", stale=false
Content-Length: {requestLengthInBytes}
Connection: keep-alive
HTTP/1.1 200 OK
Vary: Accept-Encoding
Content-Type: application/json
Strict-Transport-Security: max-age=300
Date: {dateInUnixFormat}
Connection: keep-alive
Content-Length: {requestLengthInBytes}
X-MongoDB-Service-Version: gitHash={gitHash}; versionString={ApplicationVersion}
1{
2 "clusterId" : "{CLUSTER-ID}",
3 "dailySnapshotRetentionDays" : 7,
4 "groupId" : "{PROJECT-ID}",
5 "links" : [],
6 "monthlySnapshotRetentionMonths" : 13,
7 "pointInTimeWindowHours": 24,
8 "snapshotIntervalHours" : 6,
9 "snapshotRetentionDays" : 2,
10 "weeklySnapshotRetentionWeeks" : 4
11}

Back

Snapshot Schedule