Skip to Content
Disaster recoveryHold

Release the hold of the platform or of namespaces

POST
/apis/funcd.io/v1alpha1/hold/release

Authorization

headerAuthorizationBearer <token>

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

Request Body

application/json
  1. body
advance?array<string>|

With the release of the platform's hold: the blob EventSources, each as /, whose pending objects the release marks seen instead of firing them.

namespaces?array<>|

The namespaces whose hold to release, instead of the platform's: the hold for its data that funcd restore run sets on a namespace with a BackupSchedule, and the hold that an in-place Restore keeps when its load does not complete.

Response Body

No Content

Example Request
curl -X POST 'https://example.com/apis/funcd.io/v1alpha1/hold/release' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
Empty

Answers

StatusProblem typeWhenWhat to do
204No Content
400urn:funcd:problem:invalidThe body sets both advance and namespaces: advance applies to the release of the platform's hold only.Release the platform and the namespaces in two calls.
400urn:funcd:problem:invalidAn entry of advance does not name, as <namespace>/<name>, an EventSource with a blob event.Name only blob EventSources, as funcdctl hold status lists them under pending.
400about:blankThe body is missing or is not JSON.Send a JSON body.
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 release a hold: only an admin's does.Use an admin's credential.
409urn:funcd:problem:conflictThe body names no namespace, and the platform is not held.There is nothing to release: funcdctl hold status shows what is held.
409urn:funcd:problem:conflictA namespace of the body is not held; the namespaces before it are released.Release the namespaces after it again, without it.
409urn:funcd:problem:conflictA namespace of the body is held by an in-place Restore that is Pending or Running; the namespaces before it are released.Release the namespaces after it again; release this one once the Restore has ended.
413urn:funcd:problem:payload-too-largeThe body is larger than 1 MiB.Send a smaller body.
415about:blankThe Content-Type of the body is not JSON.Send the body as application/json.
422about:blankThe query holds a parameter that the operation does not take.Send only the parameters that the operation lists.
422about:blankThe body breaks the schema: a field that it does not know, of the wrong type or past its limits.Correct the field at the location that the detail gives.