返回一个 M2 或 M5 集群的所有快照
已弃用
返回指定共享集群的所有快照的详细信息。要使用此资源,请求的服务账户或 API 密钥必须具有“项目只读”角色。
此API还适用于使用 createCluster 端点创建的 Flex 集群或已迁移到2 5Flex 集群的以前的 M /M 集群,直到 1 月2026 ,之后此端点将被停用。请改用 listFlexBackups 端点。
GET /API/Atlas/v1.0/groups/{groupId}/clusters/{clusterName}/ 备份/tenant/snapshots
curl \
--request GET 'https://cloud.mongodb.com/api/atlas/v1.0/groups/32b6e34b3d91647abb20e7b8/clusters/{clusterName}/backup/tenant/snapshots' \
--header "Authorization: Bearer $ACCESS_TOKEN"
响应示例 (200)
{
"links": [
{
"href": "https://cloud.mongodb.com/api/atlas",
"rel": "self"
}
],
"results": [
{
"expiration": "2025-05-04T09:42:00Z",
"finishTime": "2025-05-04T09:42:00Z",
"id": "32b6e34b3d91647abb20e7b8",
"links": [
{
"href": "https://cloud.mongodb.com/api/atlas",
"rel": "self"
}
],
"mongoDBVersion": "string",
"scheduledTime": "2025-05-04T09:42:00Z",
"startTime": "2025-05-04T09:42:00Z",
"status": "PENDING"
}
],
"totalCount": 42
}
响应示例 (400)
{
"error": 400,
"detail": "(This is just an example, the exception may not be related to this endpoint) No provider AWS exists.",
"reason": "Bad Request",
"errorCode": "VALIDATION_ERROR"
}
响应示例 (401)
{
"error": 401,
"detail": "(This is just an example, the exception may not be related to this endpoint)",
"reason": "Unauthorized",
"errorCode": "NOT_ORG_GROUP_CREATOR"
}
响应示例 (403)
{
"error": 403,
"detail": "(This is just an example, the exception may not be related to this endpoint)",
"reason": "Forbidden",
"errorCode": "CANNOT_CHANGE_GROUP_NAME"
}
响应示例 (404)
{
"error": 404,
"detail": "(This is just an example, the exception may not be related to this endpoint) Cannot find resource AWS",
"reason": "Not Found",
"errorCode": "RESOURCE_NOT_FOUND"
}
响应示例 (500)
{
"error": 500,
"detail": "(This is just an example, the exception may not be related to this endpoint)",
"reason": "Internal Server Error",
"errorCode": "UNEXPECTED_ERROR"
}