Get the Snapshot Schedule
On this page
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://{OPSMANAGER-HOST}:{PORT}/api/public/v1.0
Resource
GET /groups/{PROJECT-ID}/backupConfigs/CLUSTER-ID/snapshotSchedule
Request Parameters
Request Path Parameters
Parameter | Type | Necessity | Description |
---|---|---|---|
| string | Required | Unique identifier for the project that holds the cluster with the snapshot schedule you want to get. |
| string | Required | Unique indentifier of the cluster whose snapshot schedule you want to get. |
Request Query Parameters
The following query parameters are optional:
Name | Type | Necessity | Description | Default | ||||||
---|---|---|---|---|---|---|---|---|---|---|
pretty | boolean | Optional | Flag indicating whether the response body should be in a prettyprint format. |
| ||||||
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:
|
|
Request Body Parameters
This endpoint doesn't use HTTP request body parameters.
Response
Name | Type | Description |
---|---|---|
| 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.
Ops Manager may return values of |
| string | Unique identifier of the cluster to which this backup configuration applies. |
| number | Number of days to retain daily snapshots. Ops Manager may return
values between Setting |
| string | Day of the week when Ops Manager takes a full snapshot. This ensures a recent complete backup. Ops Manager sets the default value to SUNDAY. |
| string | Unique identifier of the project that owns the backup configuration. |
| object array | One or more links to sub-resources and/or related resources. All
|
| number | Number of months to retain monthly snapshots. Ops Manager may return
values between Setting |
| number | Number of hours in the past for which a point-in-time snapshot can be created. |
| number | Hour of the day to schedule snapshots using a 24 hour clock.
Ops Manager may return values between |
| number | Minute of the hour to schedule snapshots. Ops Manager may return
values between |
| string | The ISO-8601 timezone offset where the Ops Manager host resides. To
avoid problems with daylight saving time, use UTC. The
default is Ops Manager converts any offset other than For example, you pass in a request with a |
| number | Number of hours between snapshots. Ops Manager may return values of
|
| number | Number of days to keep recent snapshots. Ops Manager may return values
between |
| number | Number of weeks to retain weekly snapshots. Ops Manager may return
values between Setting |
Example Request
curl --user "{PUBLIC-KEY}:{PRIVATE-KEY}" --digest \ --header "Accept: application/json" \ --include \ --request GET "https://<OpsManagerHost>:<Port>/api/public/v1.0/groups/{PROJECT-ID}/backupConfigs/{CLUSTER-ID}/snapshotSchedule"
Example Response
Response Header
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
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}
Response Body
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 }