uptime_service
Manages an Uptime monitoring service. A service represents a web application or API endpoint that you want to monitor.
Basic Example
main.tfhcl
resource "uptime_service" "api" {
name = "API Server"
url = "https://api.example.com"
description = "Main API gateway"
is_public = true
}Advanced Example
Define multiple services with status page ordering and export computed values for use in other resources.
main.tfhcl
resource "uptime_service" "frontend" {
name = "Frontend"
url = "https://app.example.com"
description = "Next.js frontend application"
is_public = true
status_page_order = 1
}
resource "uptime_service" "api" {
name = "API Server"
url = "https://api.example.com"
description = "Main API gateway"
is_public = true
status_page_order = 2
}
output "api_service_id" {
value = uptime_service.api.id
}
output "api_slug" {
value = uptime_service.api.slug
}Argument Reference
| Name | Type | Status | Description |
|---|---|---|---|
id | String | Computed | Server-generated UUID of the service. |
org_id | String | Optional + Computed | Organization ID. Falls back to the provider-level org_id if not set. |
name | String | Required | Display name of the service. |
url | String | Required | URL of the service to monitor. |
slug | String | Computed | Server-generated URL-friendly slug. |
description | String | Optional | Human-readable description of the service. |
is_public | Bool | Optional + Computed | Whether the service is visible on the public status page.Default: false |
status_page_order | Int64 | Optional | Display order on the status page. |
created_at | String | Computed | Timestamp when the service was created. |
updated_at | String | Computed | Timestamp when the service was last updated. |
Import
Existing services can be imported using their UUID.
bash
terraform import uptime_service.api <service-uuid>