Return an app to an earlier release now, past approvals, a freeze, the scan gate and a pause. People with approval rights only; the reason is kept.
const url = 'https://example.com/api/v1/projects/example/environments/example/apps/example/emergency-rollback';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"reason":"example","release":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/projects/example/environments/example/apps/example/emergency-rollback \ --header 'Content-Type: application/json' \ --data '{ "reason": "example", "release": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Project name
Environment short name
App name
Request Bodyrequired
Section titled “Request Bodyrequired”object
Why this cannot wait; kept on the run and in the audit log.
The release to return to; the newest earlier release that ran successfully when omitted.
Examplegenerated
{ "reason": "example", "release": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “Responses”A deployment run and where it stands.
object
The target generation this run owns.
planned, awaitingApproval, pendingDelivery, acceptedByCluster,
applying, succeeded, failed, superseded, cancelled, …
Distinct approvals the environment’s policy requires before delivery.
When a run waiting for approval is cancelled (Unix milliseconds).
The hash approvers confirm (hex), when approvals are required.
What admission could not check, e.g. that the pods will be scheduled.
Examplegenerated
{ "run": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "operation": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "generation": 1, "phase": "example", "approvals_required": 1, "approval_expires_at": 1, "plan_hash": "example", "warnings": [ "example" ]}Problem Details body.
object
Stable machine-readable code, e.g. forbidden.
Short human readable title.
HTTP status.
Details, if safe to expose.
Example
{ "code": "forbidden"}No earlier release ran successfully
Problem Details body.
object
Stable machine-readable code, e.g. forbidden.
Short human readable title.
HTTP status.
Details, if safe to expose.
Example
{ "code": "forbidden"}Problem Details body.
object
Stable machine-readable code, e.g. forbidden.
Short human readable title.
HTTP status.
Details, if safe to expose.
Example
{ "code": "forbidden"}