Update Snapshot Schedule for One Cluster
Deprecated /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/snapshotSchedule Updates the snapshot schedule for one cluster in the specified project. To use this resource, the requesting Service Account or API Key must have the Project Owner role.
Effective 23 March 2020, all new clusters can use only Cloud Backups. When you upgrade to 4.2, your backup system upgrades to cloud backup if it is currently set to legacy backup. After this upgrade, all your existing legacy backup snapshots remain available. They expire over time in accordance with your retention policy. Your backup policy resets to the default schedule. If you had a custom backup policy in place with legacy backups, you must re-create it with the procedure outlined in the Cloud Backup documentation.
Parameters
path Path Parameters
| Name | Type |
|---|---|
groupId
required
Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access. NOTE: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups. | string |
clusterName
required
Human-readable label that identifies the cluster with the snapshot you want to return. | string |
query Query Parameters
| Name | Type |
|---|---|
envelope Flag that indicates whether Application wraps the response in an | boolean |
pretty Flag that indicates whether the response body should be in the prettyprint format. | boolean |
Request Body
Update the snapshot schedule for one cluster in the specified project.
clusterCheckpointIntervalMin: 15 | 30 | 60;
clusterId: string;
dailySnapshotRetentionDays: 0 | 3 | 4 | 5 | 6 | 7 | 15 | 30 | 60 | 90 | 120 | 180 | 360;
groupId: string;
links?: readonly
monthlySnapshotRetentionMonths: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 | 24 | 36;
pointInTimeWindowHours: number;
snapshotIntervalHours: 6 | 8 | 12 | 24;
snapshotRetentionDays: 2 | 3 | 4 | 5;
weeklySnapshotRetentionWeeks: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 16 | 20 | 24 | 52;
}
Responses
OK
clusterCheckpointIntervalMin: 15 | 30 | 60;
clusterId: string;
dailySnapshotRetentionDays: 0 | 3 | 4 | 5 | 6 | 7 | 15 | 30 | 60 | 90 | 120 | 180 | 360;
groupId: string;
links?: readonly
monthlySnapshotRetentionMonths: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 | 24 | 36;
pointInTimeWindowHours: number;
snapshotIntervalHours: 6 | 8 | 12 | 24;
snapshotRetentionDays: 2 | 3 | 4 | 5;
weeklySnapshotRetentionWeeks: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 16 | 20 | 24 | 52;
}
Client Errors
Bad Request.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Unauthorized.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Forbidden.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Not Found.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Server Errors
Internal Server Error.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}