1 つの M2 または M5 クラスターの 1 つの復元ジョブを作成
非推奨
指定された M2 または M5 クラスターを復元します。MongoDB Cloud では、復元のターゲット クラスターにできるクラスターが限定されています。ターゲット クラスターは、保管時の暗号化を使用したり、スナップショットと異なる MongoDB のメジャーリリース バージョンを実行したり、復元中にクライアントリクエストを受信することができません。MongoDB Cloud は、復元操作の前に、ターゲット クラスター上の既存のデータをすべて削除します。このリソースを使用するには、リクエスト元のサービス アカウントまたは API キーに Project Owner ロールが必要です。
このエンドポイントは、 createCluster エンドポイントを使用して作成された Flex クラスター、または2 51 月 まで Flex クラスターに移行された以前の M /M2026 クラスターでも使用できます。その後、このエンドポイントは使用できなくなります。代わりに createFlexBackupRestoreJob エンドポイントを使用してください。
POST /API/Atlas/v1.0/groups/{groupId}/clusters/{clusterName}/バックアップ/tenant/restore
curl \
--request POST 'https://cloud.mongodb.com/api/atlas/v1.0/groups/32b6e34b3d91647abb20e7b8/clusters/{clusterName}/backup/tenant/restore' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"snapshotId":"32b6e34b3d91647abb20e7b8","targetDeploymentItemName":"string","targetProjectId":"32b6e34b3d91647abb20e7b8"}'
リクエスト例
{
"snapshotId": "32b6e34b3d91647abb20e7b8",
"targetDeploymentItemName": "string",
"targetProjectId": "32b6e34b3d91647abb20e7b8"
}
応答の例(200)
{
"clusterName": "string",
"deliveryType": "RESTORE",
"expirationDate": "2025-05-04T09:42:00Z",
"id": "32b6e34b3d91647abb20e7b8",
"links": [
{
"href": "https://cloud.mongodb.com/api/atlas",
"rel": "self"
}
],
"projectId": "32b6e34b3d91647abb20e7b8",
"restoreFinishedDate": "2025-05-04T09:42:00Z",
"restoreScheduledDate": "2025-05-04T09:42:00Z",
"snapshotFinishedDate": "2025-05-04T09:42:00Z",
"snapshotId": "32b6e34b3d91647abb20e7b8",
"snapshotUrl": "string",
"status": "PENDING",
"targetDeploymentItemName": "string",
"targetProjectId": "32b6e34b3d91647abb20e7b8"
}
応答の例(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"
}
応答の例(409)
{
"error": 409,
"detail": "(This is just an example, the exception may not be related to this endpoint) Cannot delete organization link while there is active migration in following project ids: 60c4fd418ebe251047c50554",
"reason": "Conflict",
"errorCode": "CANNOT_DELETE_ORG_ACTIVE_LIVE_MIGRATION_ATLAS_ORG_LINK"
}
応答の例(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"
}