Skip to main content

POST /api/domain/mark-disconnect-complete/

Marks the domain disconnect as complete after Entri restores the original DNS configuration.

Purpose

This endpoint:
  1. Updates proxy_status to DISCONNECTED
  2. Preserves CloudFront distribution and ACM certificate for fast reconnection

Architecture

Response Fields

FieldTypeDescription
statusstring”success”
proxy_statusstring”DISCONNECTED”
messagestringConfirmation message
can_reconnectbooleanAlways true (infrastructure preserved)

Infrastructure Preservation

When a domain is disconnected:
  • CloudFront distribution remains active
  • ACM certificate remains valid
  • DNS records are restored to original
This allows fast reconnection without recreating infrastructure.

Reconnection Flow

To reconnect after disconnecting:
  1. Call /start-certificate (may reuse existing cert)
  2. Add DNS records via Entri
  3. Call /mark-step-complete with step 2

Code Location

src/app/apis/domain/mark_disconnect_complete/routes.py