Backup In Use

backup-held-by-restore · 409

يوجد استرجاع يقرأ هذه النسخة الآن، فلم تحذفها الـ API.

كل الصفحات

تستطيع حذف النسخة عندما لا يعود الاسترجاع pending ولا provisioning ولا restoring. ولم يتغير شيء.

إضافة إلى الحقول التي في كل خطأ، يضيف هذا النوع backupId.

الأسباب الشائعة

  • طلب حذف النسخة والاسترجاع منها ما زال جاريا.

كيف تصلح الطلب

  • تابع الاسترجاع عبر GET /v1/services/<id>/restores/<restoreId> حتى ينتهي، ثم احذف النسخة.
  • لا تعد المحاولة في حلقة سريعة، فقد يستغرق الاسترجاع دقائق.

مثال على الرد

json
{
  "type": "backup-held-by-restore",
  "title": "Backup In Use",
  "detail": "A restore is reading this backup. Wait for it to finish, then delete it.",
  "backupId": "0199e0a3-6f21-7c4a-9d18-2b7c5f3ad402",
  "requestId": "req-1785231000000-4f7b2c9ae",
  "timestamp": "2026-07-28T09:30:00.000Z",
  "path": "/v1/services/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401/backups/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad402",
  "method": "DELETE",
  "instance": "DELETE /v1/services/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401/backups/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad402",
  "status": 409,
  "docs": "https://ghaym.me/docs/errors/backup-held-by-restore"
}