Saltar al contenido principal
POST
Roll a deployment back to an earlier revision's release

Autorizaciones

Authorization
string
header
requerido

A workspace-scoped Cloud JWT.

Parámetros de ruta

id
string
requerido

Cuerpo

application/json
baseRevision
integer
requerido

The revision the caller last read. The rollback is refused once another change has moved the deployment past it.

toRevision
integer

The earlier revision whose release to return to; the revision before the current one when omitted.

Respuesta

The deployment runs the earlier revision's release now.

Where a rollback left the deployment.

id
string
requerido

The deployment's id, which a rollback never changes.

revision
integer
requerido

The deployment's current revision.

releaseId
string
requerido

The release the deployment runs at that revision.

kind
string
requerido

What made that revision: rollback, or, where the target release was already current, that revision's own kind. Open: clients tolerate values they do not know.

fromRevision
integer

The revision a rollback restored; absent on any other kind.

pendingUpdate
object | null

An update that waits for its release's running copy to be ready, or an unfinished cancellation of that copy. Cancellation keeps the original baseRevision and since so existing clients can retry stop/delete after dispatch failure. An unfinished cancellation reads failed, keeping its dismissal available even while the copy is stopping. Null after the move or cancellation finishes.