Closed PetrHeinz closed 5 months ago
Build on top of On-call calendar API: https://betterstack.com/docs/uptime/api/list-all-existing-on-call-calendars/
data "betteruptime_on_call_calendar" "this" { name = "My calendar" # You can omit this for a primary calendar } output "on_call_calendar" { value = data.betteruptime_on_call_calendar.this }
Example output:
Apply complete! Resources: 0 added, 0 changed, 0 destroyed. Outputs: on_call_calendar = { "default_calendar" = true "id" = "43254" "name" = "My calendar" "on_call_users" = tolist([ { "email" = "hello@betterstack.com" "first_name" = "Petr" "id" = "253425" "last_name" = "Heinz" "phone_numbers" = tolist([ "+420123456789", ]) }, ]) }
Build on top of On-call calendar API: https://betterstack.com/docs/uptime/api/list-all-existing-on-call-calendars/
Example output: