Skip to Content
Disaster recoveryHold

Read the hold and its evidence

GET
/apis/funcd.io/v1alpha1/hold

Authorization

headerAuthorizationBearer <token>

A credential of funcd's config, sent as Authorization: Bearer followed by its token.

Response Body

OK

application/json
  1. response
addonOrphans?array<string>|

The add-on objects that do not exist and whose storage funcd still holds, each as /.

bucketOrphans?array<string>|

The Buckets that do not exist and whose objects funcd still holds, each as /.

counts?

The number of objects of each kind that funcd stores now, to compare with the counts of report.

deadLetters?array<string>|

The dead letters of every namespace, each as /. Nothing delivers them again by itself.

functionsNotReady?array<string>|

The Functions whose phase is not Ready, each as /.

held*boolean

True while the platform is held: its timers, blob sources, Sensors, runs, rollouts, backups and sweeps wait for the release.

marker?

Why the platform is held, and since when; absent when it is not held.

namespaces?array<>|

The holds of single namespaces, one for each reason that holds a namespace.

orphans?array<string>|

The KV data that no object names: the prefix of each KVStore that does not exist, as //, and of each table that its KVStore no longer declares, as ///. To keep that data, apply its object while the platform is held.

pausedRuns?array<string>|

The WorkflowRuns that are paused and have not ended, each as /. A release leaves them paused, and funcdctl workflow resume runs one again.

pending?

For each blob EventSource, as /, how many objects of each event the release fires, since the source has not seen them yet.

quarantine?array<>|

The data that a start moved into the quarantine, since no object named it, and the storage of the add-on objects deleted with deletion retain, held or not.

releasedAt?string

When the last release lifted the platform's hold.

Match^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z$
Formatdate-time
report?unknown

The report of funcd restore run, as it wrote restore.json: the generation that it loaded, the counts of its objects per kind, the WorkflowRuns that it paused and the JobRuns that it cancelled. Absent when no restore wrote one.

sqlOrphans?array<string>|

The SQL databases that do not exist and whose directory funcd still holds, each as /.

volumeOrphans?array<string>|

The local volumes that no stored Function declares, each as //.

Example Request
curl -X GET 'https://example.com/apis/funcd.io/v1alpha1/hold'
Example Response
{  "addonOrphans": [    "string"  ],  "bucketOrphans": [    "string"  ],  "counts": {    "property1": 0,    "property2": 0  },  "deadLetters": [    "string"  ],  "functionsNotReady": [    "string"  ],  "held": true,  "marker": {    "reason": "string",    "restore": "string",    "since": "2019-08-24T14:15:22Z"  },  "namespaces": [    {      "namespace": "string",      "phase": "Pending",      "reason": "string",      "restore": "string",      "since": "2019-08-24T14:15:22Z"    }  ],  "orphans": [    "string"  ],  "pausedRuns": [    "string"  ],  "pending": {    "property1": {      "property1": 0,      "property2": 0    },    "property2": {      "property1": 0,      "property2": 0    }  },  "quarantine": [    {      "kind": "string",      "name": "string",      "namespace": "string",      "since": "2019-08-24T14:15:22Z",      "state": "string",      "until": "2019-08-24T14:15:22Z",      "volume": "string"    }  ],  "releasedAt": "2019-08-24T14:15:22Z",  "report": null,  "sqlOrphans": [    "string"  ],  "volumeOrphans": [    "string"  ]}

Answers

StatusProblem typeWhenWhat to do
200OK
401urn:funcd:problem:unauthorizedThe request carries no bearer token or API key, or one that funcd does not know.Send a credential of funcd's config as a bearer token in the Authorization header, or in X-Api-Key.
403urn:funcd:problem:forbiddenThe credential's role does not allow it to read the hold: only an admin's does.Use an admin's credential.