OHN-47 Disaster Recovery and Business Continuity
- Version
- 1.0.0
- OpenAPI
- 3.1.0
- Source dans le dépôt
modules/OHN-47/api/openapi.yaml- Serveurs
https://opeshealthnetwork.com- Authentification
bearerAuth: http bearer (JWT)
Les contrats sont rédigés en anglais.
Records and verifies backups, restore drills, failovers, recovery objectives and continuity plans per jurisdiction. Synthetic records only: the service never performs real backups, restores or destructive actions. Recovery objectives (RPO/RTO) are approved records; drill interval and export signing are configuration (OHN47_DRILL_INTERVAL_DAYS, OHN47_EXPORT_SIGNING_KEY) and fail closed when unset. Every write needs an Idempotency-Key and returns an audit receipt; receipts are forwarded to OHN-18 when configured. Events published from ohn47_outbox: backup.failed, restore.drill.passed, failover.initiated.
Opérations
- Autres opérations (28)
Autres opérations
GET/api/ohn/v1/dr/health
Unauthenticated: status, export_signing_configured, drill_interval_configured, policy_version.
Identifiant d’opération: ohn47_health
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Service health | — |
GET/health/ohn-47
Database probe and dependency modes (OHN-01
Identifiant d’opération: ohn47_platformHealth
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Healthy | — |
503 | Database unavailable | — |
GET/api/ohn/v1/dr/code-lists
Identifiant d’opération: ohn47_getCodeLists
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Versioned code lists and policy state | — |
GET/api/ohn/v1/dr/recovery-objectives
OHN-47-API-003
Identifiant d’opération: ohn47_listRecoveryObjectives
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
page_size | query | integer | non | |
cursor | query | string | non | |
status | query | "active" | "superseded" | "all" | non | |
service | query | string (uuid) | non | |
data_class | query | DataClass | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Page of objectives | — |
default | Error (401 unauthenticated | application/json: Problem |
POST/api/ohn/v1/dr/recovery-objectives
OHN-47-F001-SUBMIT; incident_commander only; supersedes the active objective for the same service/data class.
Identifiant d’opération: ohn47_approveRecoveryObjective
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:RecoveryObjectiveCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation) | application/json: post-api-ohn-v1-dr-recovery-objectives.response-201 |
default | Error (401 unauthenticated | application/json: Problem |
GET/api/ohn/v1/dr/recovery-objectives/{id}
Identifiant d’opération: ohn47_getRecoveryObjective
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Objective with history | — |
default | Error (401 unauthenticated | application/json: Problem |
GET/api/ohn/v1/dr/backups
OHN-47-API-001; page plus KPIs
Identifiant d’opération: ohn47_listBackups
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
page_size | query | integer | non | |
cursor | query | string | non | |
status | query | string | non | |
service | query | string (uuid) | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Backup monitor | — |
default | Error (401 unauthenticated | application/json: Problem |
POST/api/ohn/v1/dr/backups
Identifiant d’opération: ohn47_registerBackup
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:BackupRunCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation) | application/json: post-api-ohn-v1-dr-backups.response-201 |
default | Error (401 unauthenticated | application/json: Problem |
GET/api/ohn/v1/dr/backups/{id}
Identifiant d’opération: ohn47_getBackup
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Backup with history | — |
default | Error (401 unauthenticated | application/json: Problem |
POST/api/ohn/v1/dr/backups/{id}/transitions
Workflow OHN-47-W001.
Identifiant d’opération: ohn47_transitionBackup
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:BackupTransition
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation) | application/json: post-api-ohn-v1-dr-backups-id-transitions.response-200 |
default | Error (401 unauthenticated | application/json: Problem |
GET/api/ohn/v1/dr/restore-drills
Identifiant d’opération: ohn47_listRestoreDrills
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
page_size | query | integer | non | |
cursor | query | string | non | |
status | query | string | non | |
service | query | string (uuid) | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Page of drills | — |
default | Error (401 unauthenticated | application/json: Problem |
POST/api/ohn/v1/dr/restore-drills
OHN-47-API-002 / OHN-47-F002-SUBMIT; idempotent; needs a hash-verified backup and an approved objective (503 not_configured otherwise).
Identifiant d’opération: ohn47_requestRestoreDrill
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:RestoreDrillCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation) | application/json: post-api-ohn-v1-dr-restore-drills.response-201 |
default | Error (401 unauthenticated | application/json: Problem |
GET/api/ohn/v1/dr/restore-drills/{id}
Identifiant d’opération: ohn47_getRestoreDrill
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Drill with history | — |
default | Error (401 unauthenticated | application/json: Problem |
GET/api/ohn/v1/dr/restore-drills/{id}/evidence
Identifiant d’opération: ohn47_getRestoreDrillEvidence
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Drill | — |
default | Error (401 unauthenticated | application/json: Problem |
POST/api/ohn/v1/dr/restore-drills/{id}/transitions
Workflow OHN-47-W002; signed_off requires incident_commander.
Identifiant d’opération: ohn47_transitionRestoreDrill
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:DrillTransition
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation) | application/json: post-api-ohn-v1-dr-restore-drills-id-transitions.response-200 |
default | Error (401 unauthenticated | application/json: Problem |
GET/api/ohn/v1/dr/failovers
Identifiant d’opération: ohn47_listFailovers
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
page_size | query | integer | non | |
cursor | query | string | non | |
status | query | string | non | |
service | query | string (uuid) | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Page of failovers | — |
default | Error (401 unauthenticated | application/json: Problem |
POST/api/ohn/v1/dr/failovers
Identifiant d’opération: ohn47_declareFailover
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:FailoverDeclarationCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation) | application/json: post-api-ohn-v1-dr-failovers.response-201 |
default | Error (401 unauthenticated | application/json: Problem |
GET/api/ohn/v1/dr/failovers/{id}
Identifiant d’opération: ohn47_getFailover
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Failover with history and audit receipts | — |
default | Error (401 unauthenticated | application/json: Problem |
POST/api/ohn/v1/dr/failovers/{id}/decision
OHN-47-F003-SUBMIT; incident_commander only.
Identifiant d’opération: ohn47_decideFailover
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:FailoverApprovalCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation) | application/json: post-api-ohn-v1-dr-failovers-id-decision.response-200 |
default | Error (401 unauthenticated | application/json: Problem |
POST/api/ohn/v1/dr/failovers/{id}/transitions
Workflow OHN-47-W003.
Identifiant d’opération: ohn47_transitionFailover
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:FailoverTransition
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation) | application/json: post-api-ohn-v1-dr-failovers-id-transitions.response-200 |
default | Error (401 unauthenticated | application/json: Problem |
GET/api/ohn/v1/dr/continuity-plans
Identifiant d’opération: ohn47_listContinuityPlans
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
service | query | string (uuid) | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Active plans | — |
POST/api/ohn/v1/dr/continuity-plans
Identifiant d’opération: ohn47_registerContinuityPlan
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:ContinuityPlanCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation) | application/json: post-api-ohn-v1-dr-continuity-plans.response-201 |
default | Error (401 unauthenticated | application/json: Problem |
GET/api/ohn/v1/dr/simulations/regional-data-loss
Read-only; writes nothing.
Identifiant d’opération: ohn47_simulateRegionalDataLoss
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
lost_region | query | string | oui | |
as_of | query | string (date-time) | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Simulation | — |
default | Error (401 unauthenticated | application/json: Problem |
GET/api/ohn/v1/dr/audit-records
Identifiant d’opération: ohn47_listAuditRecords
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
page_size | query | integer | non | |
cursor | query | string | non | |
resource_id | query | string (uuid) | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Audit receipts in scope | — |
GET/api/ohn/v1/dr/events
Identifiant d’opération: ohn47_listOutboxEvents
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Latest 100 outbox events in scope | — |
GET/api/ohn/v1/dr/reports/{id}
OHN-47-R001 | OHN-47-R002 | OHN-47-R003.
Identifiant d’opération: ohn47_getReport
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | "OHN-47-R001" | "OHN-47-R002" | "OHN-47-R003" | oui | |
jurisdiction | query | string (uuid) | non | |
service | query | string (uuid) | non | |
period_from | query | string (date-time) | non | |
period_to | query | string (date-time) | non | |
criticality | query | "critical" | "major" | "minor" | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Report with metrics | — |
default | Error (401 unauthenticated | application/json: Problem |
POST/api/ohn/v1/dr/reports/{id}/export
Signed (HMAC) CSV/PDF; 503 not_configured without OHN47_EXPORT_SIGNING_KEY.
Identifiant d’opération: ohn47_createExport
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:post-api-ohn-v1-dr-reports-id-export.request
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation) | application/json: post-api-ohn-v1-dr-reports-id-export.response-201 |
default | Error (401 unauthenticated | application/json: Problem |
GET/api/ohn/v1/dr/exports/{token}
One-time
Identifiant d’opération: ohn47_downloadExport
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
token | path | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | File with X-OHN-Export-Signature | — |
404 | Error (401 unauthenticated | application/json: Problem |
Schémas
Problem
Reference fields error, message and details (for 422 the first failing check per top-level field as a zod issue code: invalid_type, too_small, too_big, invalid_string, invalid_enum_value, invalid_union_discriminator; unknown keys under _ as unrecognized_keys) plus the platform problem+json superset.
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
error | string | oui | |
message | string | non | |
details | any | non | |
type | string | non | |
title | string | non | |
status | integer | non | |
detail | string | non | |
trace_id | string | non |
Receipt
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
receipt_id | string (uuid) | oui | |
committed_at | string (date-time) | oui | |
aggregate_id | string (uuid) | oui | |
aggregate_type | string | oui | |
version | integer | oui | |
status | "committed" | oui | |
audit_forwarding | "pending" | "forwarded" | "failed" | oui | |
policy_version | string | oui |
DataClass
"identity" | "clinical_record" | "consent" | "audit_log" | "cryptographic_material" | "operational_metadata"
Scenario
"full_restore" | "point_in_time_recovery" | "single_service_restore" | "regional_failover" | "ransomware_recovery" | "key_loss_recovery"
Sha256
string
TransitionBase
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui | |
evidence_ref | string (uuid) | oui | |
reason | string | oui |
RecoveryObjectiveCommand
OHN-47-F001 Recovery objective policy.
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
service | string (uuid) | oui | |
data_class | DataClass | oui | |
rpo_seconds | integer | oui | |
rto_minutes | integer | oui | |
jurisdiction_id | string (uuid) | oui | |
approval_ref | string (uuid) | oui |
RestoreDrillCommand
OHN-47-F002 Restore drill request.
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
service | string (uuid) | oui | |
backup_snapshot_ref | string (uuid) | oui | |
isolated_environment | string (uuid) | oui | |
scenario | Scenario | oui | |
drill_owner | string (uuid) | oui |
FailoverApprovalCommand
OHN-47-F003 Failover approval.
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
incident_ref | string (uuid) | oui | |
target_region | string | oui | Trimmed; must differ (case-insensitively) from the failed region. |
data_loss_assessment | string | oui | |
decision | "approve" | "reject" | oui | |
approver | string (uuid) | oui | Must equal the authenticated incident commander. |
expected_version | integer | oui |
BackupRunCommand
FailoverDeclarationCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
service | string (uuid) | oui | |
data_class | DataClass | oui | |
incident_ref | string (uuid) | oui | One failover per incident and service. |
source_region | string | oui | |
is_exercise | boolean | oui | |
outage_detected_at | string (date-time) | oui |
ContinuityPlanCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
service | string (uuid) | oui | |
scenario | Scenario | oui | |
title | string | oui | |
playbook_ref | string (uuid) | oui | |
drill_owner | string (uuid) | oui | |
isolated_environment | string (uuid) | non | |
backup_snapshot_ref | string (uuid) | non | |
review_due_at | string (date-time) | oui |
BackupTransition
to_state: encrypted (encryption_key_ref, checked active in OHN-45) | offsite_written (offsite_region != source, offsite_location_ref; on_host_only refused) | hash_verified (observed_hash; mismatch moves to failed) | recoverability_sampled (restore_drill_ref of a signed-off passed drill) | failed.
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui | |
evidence_ref | string (uuid) | oui | |
reason | string | oui |
DrillTransition
to_state: isolated_restore (restore_started_at) | data_integrity_checked (restore_completed_at, identity_check, consent_check, record_integrity_check) | rto_rpo_measured (measured_rpo_seconds, measured_rto_minutes >= observed restore, issue_count, issues) | signed_off (sign_off_decision passed|failed; incident commander, not the requester; passed only when all checks pass within objective) | failed.
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui | |
evidence_ref | string (uuid) | oui | |
reason | string | oui |
FailoverTransition
to_state: failover (requires approved decision) | consistency_reconciled (acknowledged_issuance_count must equal reconciled_issuance_count, measured_rpo_seconds, measured_rto_minutes, issue_count) | service_reopened.
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui | |
evidence_ref | string (uuid) | oui | |
reason | string | oui |
post-api-ohn-v1-dr-recovery-objectives.response-201 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
receipt | Receipt | oui |
post-api-ohn-v1-dr-backups.response-201 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
receipt | Receipt | oui |
post-api-ohn-v1-dr-backups-id-transitions.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
receipt | Receipt | oui |
post-api-ohn-v1-dr-restore-drills.response-201 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
receipt | Receipt | oui |
post-api-ohn-v1-dr-restore-drills-id-transitions.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
receipt | Receipt | oui |
post-api-ohn-v1-dr-failovers.response-201 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
receipt | Receipt | oui |
post-api-ohn-v1-dr-failovers-id-decision.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
receipt | Receipt | oui |
post-api-ohn-v1-dr-failovers-id-transitions.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
receipt | Receipt | oui |
post-api-ohn-v1-dr-continuity-plans.response-201 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
receipt | Receipt | oui |
post-api-ohn-v1-dr-reports-id-export.request défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
format | "csv" | "pdf" | oui |
post-api-ohn-v1-dr-reports-id-export.response-201 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
receipt | Receipt | oui |