Read the hold and its evidence
AuthorizationBearer <token>A credential of funcd's config, sent as Authorization: Bearer followed by its token.
OK
application/json- 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*booleanTrue 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?stringWhen the last release lifted the platform's hold.
^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z$date-timereport?unknownThe 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 //.
curl -X GET 'https://example.com/apis/funcd.io/v1alpha1/hold'{ "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
| Status | Problem type | When | What to do |
|---|---|---|---|
| 200 | OK | ||
| 401 | urn:funcd:problem:unauthorized | The 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. |
| 403 | urn:funcd:problem:forbidden | The credential's role does not allow it to read the hold: only an admin's does. | Use an admin's credential. |