rollback
Roll an environment back to a previous deployment.
rollback(
input: RollbackInput
): RollbackPayload!
Example
- Query
- Variables
- Response
mutation ($input: RollbackInput) {
rollback(input: $input) {
newDeployment {
branch
cancelledAt
commit_author
commit_description
commit_sha
commit_time
createdAt
deployment_finished_at
deployment_status
deployment_triggered_at
id
inProgress
isAvailableForRollback
isError
isLatest
postDeployActionsJob
repo
}
}
}
{
"input": {
"appId": 42,
"environmentId": 42,
"toDeploymentId": 42
}
}
{
"data": {
"rollback": {
"newDeployment": {
"branch": "branch",
"cancelledAt": "2024-01-15T00:00:00.000Z",
"commit_author": "commit_author",
"commit_description": "commit_description",
"commit_sha": "commit_sha",
"commit_time": "2024-01-15T00:00:00.000Z",
"createdAt": "2024-01-15T00:00:00.000Z",
"deployment_finished_at": "2024-01-15T00:00:00.000Z",
"deployment_status": "deployment_status",
"deployment_triggered_at": "2024-01-15T00:00:00.000Z",
"id": 42,
"inProgress": true,
"isAvailableForRollback": true,
"isError": true,
"isLatest": true,
"postDeployActionsJob": "postDeployActionsJob",
"repo": "repo"
}
}
}
}
Arguments
rollback.input ● RollbackInput input common
The application, environment, and target deployment for the rollback.
Type
RollbackPayload object common
The result of a rollback request.