Halt environment
tzcloud_halt_environmentHalt your deployed environment without deleting its version, data, credentials or declarations, or resume with resume: true. While halted its hostname returns 503 environment_halted and schedules stop. Resume restarts schedules from that instant, without replaying missed runs. A deploy ends a development halt. Halted production refuses deploys, promotes, rollbacks and restarts until resumed. Halting production during its deploy's image build ends that deploy. After the build, deploy_in_flight refuses the halt. The account owner must have requested or agreed to this production halt. Development needs no ask. A resume needed for that agreed promote or roll back is part of the same request.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"application": "<application>",
"environment": "<environment>"
},
"name": "tzcloud_halt_environment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resume | No | `true` ends the halt on either environment and restarts its schedules from the resume instant, without replaying runs missed during the halt. | |
| application | Yes | Your account's application `id` from `tzcloud_list_applications`, not its name or label. | |
| environment | Yes | The environment to halt or resume. Halting `production` needs your account's session or an account-wide token, else 403 `account_credential_required`. In-flight deploys, promotes or restarts refuse a halt `deploy_in_flight`, except a production halt during its image build, which ends that deploy. |