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.
1.2 KiB
1.2 KiB
| page_title | description |
|---|---|
| towerops_schedule Resource - TowerOps | 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
resource "towerops_schedule" "primary" {
name = "Primary On-Call"
timezone = "America/Chicago"
}
Schedule with Description
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:
terraform import towerops_schedule.example 550e8400-e29b-41d4-a716-446655440000