メインコンテンツへスキップ
POST
Roll a deployment back to an earlier revision's release

承認

Authorization
string
header
必須

A workspace-scoped Cloud JWT.

パスパラメータ

id
string
必須

ボディ

application/json
baseRevision
integer
必須

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.

レスポンス

The deployment runs the earlier revision's release now.

Where a rollback left the deployment.

id
string
必須

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

revision
integer
必須

The deployment's current revision.

releaseId
string
必須

The release the deployment runs at that revision.

kind
string
必須

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.