terraform-provider-towerops/docs/resources/schedule.md
Graham McIntire e7634da384
docs: add schedule and escalation policy documentation
Add Terraform Registry docs and examples for towerops_schedule and
towerops_escalation_policy resources. Update provider index and main
example to include on-call resources.
2026-03-11 14:04:29 -05:00

54 lines
1.2 KiB
Markdown

---
page_title: "towerops_schedule Resource - TowerOps"
description: |-
Manages a TowerOps on-call schedule.
---
# towerops_schedule (Resource)
Manages a TowerOps on-call schedule. Schedules define rotation layers that determine who is on-call at any given time.
## Example Usage
### Basic Schedule
```terraform
resource "towerops_schedule" "primary" {
name = "Primary On-Call"
timezone = "America/Chicago"
}
```
### Schedule with Description
```terraform
resource "towerops_schedule" "after_hours" {
name = "After-Hours Rotation"
timezone = "America/New_York"
description = "Coverage for nights and weekends"
}
```
## Schema
### Required
- `name` (String) - The name of the on-call schedule.
- `timezone` (String) - The timezone for the schedule (e.g. `America/Chicago`, `UTC`).
### Optional
- `description` (String) - A description of the schedule.
### Read-Only
- `id` (String) - The unique identifier of the schedule.
- `inserted_at` (String) - The timestamp when the schedule was created.
## Import
Schedules can be imported using their UUID:
```shell
terraform import towerops_schedule.example 550e8400-e29b-41d4-a716-446655440000
```