Skip to content

Recovery Objective methods: drill

The Recovery Objective Verbs drill as typed SDK methods, with inputs, result, refusals and an example.

Reference for Recovery Objective, one group of Recovery Objective methods.

RecoveryObjective.drill

Drill restores one Capability’s records into an isolated namespace and records whether the restore met both objectives. Verb page.

TypeScript
interface RecoveryObjectiveVerbs {
  drill(input: RecoveryObjectiveDrillInput, options?: SB.CallOptions): SB.Call<RecoveryObjective>
}

Emits RecoveryObjective.drilled.

Inputs

InputTypeRequiredDescription
objectiveRecovery ObjectiverequiredThe Recovery Objective to prove.

Returns

OutputTypeRequiredDescription
objectiveRecovery ObjectiverequiredThe objective with its last drill result.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const objective = await $.RecoveryObjective.drill({ objective: 'recovery_MSAgl5dysq' })