Aller au contenu

← Tous les contrats

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)

Télécharger le contrat (YAML)

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

GET/api/ohn/v1/dr/health

Unauthenticated: status, export_signing_configured, drill_interval_configured, policy_version.

Identifiant d’opération: ohn47_health

Réponses

CodeDescriptionType de média
200Service health—
GET/health/ohn-47

Database probe and dependency modes (OHN-01

Identifiant d’opération: ohn47_platformHealth

Réponses

CodeDescriptionType de média
200Healthy—
503Database unavailable—
GET/api/ohn/v1/dr/code-lists

Identifiant d’opération: ohn47_getCodeLists

Authentification: bearerAuth

Réponses

CodeDescriptionType de média
200Versioned 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

NomEmplacementTypeObligatoireDescription
page_sizequeryintegernon
cursorquerystringnon
statusquery"active" | "superseded" | "all"non
servicequerystring (uuid)non
data_classqueryDataClassnon

Réponses

CodeDescriptionType de média
200Page of objectives—
defaultError (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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/recovery-objectives/{id}

Identifiant d’opération: ohn47_getRecoveryObjective

Authentification: bearerAuth

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200Objective with history—
defaultError (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

NomEmplacementTypeObligatoireDescription
page_sizequeryintegernon
cursorquerystringnon
statusquerystringnon
servicequerystring (uuid)non

Réponses

CodeDescriptionType de média
200Backup monitor—
defaultError (401 unauthenticated
application/json: Problem
POST/api/ohn/v1/dr/backups

Identifiant d’opération: ohn47_registerBackup

Authentification: bearerAuth

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/backups/{id}

Identifiant d’opération: ohn47_getBackup

Authentification: bearerAuth

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200Backup with history—
defaultError (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

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/restore-drills

Identifiant d’opération: ohn47_listRestoreDrills

Authentification: bearerAuth

Paramètres

NomEmplacementTypeObligatoireDescription
page_sizequeryintegernon
cursorquerystringnon
statusquerystringnon
servicequerystring (uuid)non

Réponses

CodeDescriptionType de média
200Page of drills—
defaultError (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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/restore-drills/{id}

Identifiant d’opération: ohn47_getRestoreDrill

Authentification: bearerAuth

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200Drill with history—
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/restore-drills/{id}/evidence

Identifiant d’opération: ohn47_getRestoreDrillEvidence

Authentification: bearerAuth

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200Drill—
defaultError (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

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/failovers

Identifiant d’opération: ohn47_listFailovers

Authentification: bearerAuth

Paramètres

NomEmplacementTypeObligatoireDescription
page_sizequeryintegernon
cursorquerystringnon
statusquerystringnon
servicequerystring (uuid)non

Réponses

CodeDescriptionType de média
200Page of failovers—
defaultError (401 unauthenticated
application/json: Problem
POST/api/ohn/v1/dr/failovers

Identifiant d’opération: ohn47_declareFailover

Authentification: bearerAuth

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/failovers/{id}

Identifiant d’opération: ohn47_getFailover

Authentification: bearerAuth

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200Failover with history and audit receipts—
defaultError (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

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (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

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/continuity-plans

Identifiant d’opération: ohn47_listContinuityPlans

Authentification: bearerAuth

Paramètres

NomEmplacementTypeObligatoireDescription
servicequerystring (uuid)non

Réponses

CodeDescriptionType de média
200Active plans—
POST/api/ohn/v1/dr/continuity-plans

Identifiant d’opération: ohn47_registerContinuityPlan

Authentification: bearerAuth

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (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

NomEmplacementTypeObligatoireDescription
lost_regionquerystringoui
as_ofquerystring (date-time)non

Réponses

CodeDescriptionType de média
200Simulation—
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/audit-records

Identifiant d’opération: ohn47_listAuditRecords

Authentification: bearerAuth

Paramètres

NomEmplacementTypeObligatoireDescription
page_sizequeryintegernon
cursorquerystringnon
resource_idquerystring (uuid)non

Réponses

CodeDescriptionType de média
200Audit receipts in scope—
GET/api/ohn/v1/dr/events

Identifiant d’opération: ohn47_listOutboxEvents

Authentification: bearerAuth

Réponses

CodeDescriptionType de média
200Latest 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

NomEmplacementTypeObligatoireDescription
idpath"OHN-47-R001" | "OHN-47-R002" | "OHN-47-R003"oui
jurisdictionquerystring (uuid)non
servicequerystring (uuid)non
period_fromquerystring (date-time)non
period_toquerystring (date-time)non
criticalityquery"critical" | "major" | "minor"non

Réponses

CodeDescriptionType de média
200Report with metrics—
defaultError (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

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/exports/{token}

One-time

Identifiant d’opération: ohn47_downloadExport

Authentification: bearerAuth

Paramètres

NomEmplacementTypeObligatoireDescription
tokenpathstringoui

Réponses

CodeDescriptionType de média
200File with X-OHN-Export-Signature—
404Error (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.

NomTypeObligatoireDescription
errorstringoui
messagestringnon
detailsanynon
typestringnon
titlestringnon
statusintegernon
detailstringnon
trace_idstringnon

Receipt

NomTypeObligatoireDescription
receipt_idstring (uuid)oui
committed_atstring (date-time)oui
aggregate_idstring (uuid)oui
aggregate_typestringoui
versionintegeroui
status"committed"oui
audit_forwarding"pending" | "forwarded" | "failed"oui
policy_versionstringoui

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

NomTypeObligatoireDescription
expected_versionintegeroui
evidence_refstring (uuid)oui
reasonstringoui

RecoveryObjectiveCommand

OHN-47-F001 Recovery objective policy.

NomTypeObligatoireDescription
servicestring (uuid)oui
data_classDataClassoui
rpo_secondsintegeroui
rto_minutesintegeroui
jurisdiction_idstring (uuid)oui
approval_refstring (uuid)oui

RestoreDrillCommand

OHN-47-F002 Restore drill request.

NomTypeObligatoireDescription
servicestring (uuid)oui
backup_snapshot_refstring (uuid)oui
isolated_environmentstring (uuid)oui
scenarioScenariooui
drill_ownerstring (uuid)oui

FailoverApprovalCommand

OHN-47-F003 Failover approval.

NomTypeObligatoireDescription
incident_refstring (uuid)oui
target_regionstringouiTrimmed; must differ (case-insensitively) from the failed region.
data_loss_assessmentstringoui
decision"approve" | "reject"oui
approverstring (uuid)ouiMust equal the authenticated incident commander.
expected_versionintegeroui

BackupRunCommand

NomTypeObligatoireDescription
servicestring (uuid)oui
data_classDataClassoui
snapshot_refstring (uuid)oui
source_regionstringoui
storage_location_class"offsite" | "on_host_only"oui
content_hashSha256oui
backup_started_atstring (date-time)ouiUTC with a trailing Z (zod datetime()).

FailoverDeclarationCommand

NomTypeObligatoireDescription
servicestring (uuid)oui
data_classDataClassoui
incident_refstring (uuid)ouiOne failover per incident and service.
source_regionstringoui
is_exercisebooleanoui
outage_detected_atstring (date-time)oui

ContinuityPlanCommand

NomTypeObligatoireDescription
servicestring (uuid)oui
scenarioScenariooui
titlestringoui
playbook_refstring (uuid)oui
drill_ownerstring (uuid)oui
isolated_environmentstring (uuid)non
backup_snapshot_refstring (uuid)non
review_due_atstring (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.

NomTypeObligatoireDescription
expected_versionintegeroui
evidence_refstring (uuid)oui
reasonstringoui

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.

NomTypeObligatoireDescription
expected_versionintegeroui
evidence_refstring (uuid)oui
reasonstringoui

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.

NomTypeObligatoireDescription
expected_versionintegeroui
evidence_refstring (uuid)oui
reasonstringoui

post-api-ohn-v1-dr-recovery-objectives.response-201 défini sur place

NomTypeObligatoireDescription
receiptReceiptoui

post-api-ohn-v1-dr-backups.response-201 défini sur place

NomTypeObligatoireDescription
receiptReceiptoui

post-api-ohn-v1-dr-backups-id-transitions.response-200 défini sur place

NomTypeObligatoireDescription
receiptReceiptoui

post-api-ohn-v1-dr-restore-drills.response-201 défini sur place

NomTypeObligatoireDescription
receiptReceiptoui

post-api-ohn-v1-dr-restore-drills-id-transitions.response-200 défini sur place

NomTypeObligatoireDescription
receiptReceiptoui

post-api-ohn-v1-dr-failovers.response-201 défini sur place

NomTypeObligatoireDescription
receiptReceiptoui

post-api-ohn-v1-dr-failovers-id-decision.response-200 défini sur place

NomTypeObligatoireDescription
receiptReceiptoui

post-api-ohn-v1-dr-failovers-id-transitions.response-200 défini sur place

NomTypeObligatoireDescription
receiptReceiptoui

post-api-ohn-v1-dr-continuity-plans.response-201 défini sur place

NomTypeObligatoireDescription
receiptReceiptoui

post-api-ohn-v1-dr-reports-id-export.request défini sur place

NomTypeObligatoireDescription
format"csv" | "pdf"oui

post-api-ohn-v1-dr-reports-id-export.response-201 défini sur place

NomTypeObligatoireDescription
receiptReceiptoui