Integration
Provider pathlyhq/pathly: scenarios, webhooks, maintenance and SLA as code.
OpenAPI contractIssue an API keyFree Solo account
Full document, no authentication, ready for your client generator.
Official provider pathlyhq/pathly on the HashiCorp Registry, OpenTofu-compatible. Resources: pathly_scenario (Ping via url, Chain via http_chain, Flow via steps), pathly_webhook, pathly_maintenance_window, pathly_sla_target. Auth only via PATHLY_API_TOKEN in the environment — never in a .tf file.
Native import to adopt a console-built estate, then one source of truth. Recommended apply scopes: scenarios:write alerting:write maintenance:write sla:write; plan: the matching :read scopes.
provider + Ping + Chain
terraform {
required_providers {
pathly = {
source = "pathlyhq/pathly"
version = "~> 0.1"
}
}
}
provider "pathly" {}
resource "pathly_scenario" "checkout" {
name = "Checkout"
url = "https://www.example.com/cart"
interval_sec = 300
expect_text = "Your cart"
severity = "critical"
}
resource "pathly_scenario" "api_me" {
name = "Login then /me"
interval_sec = 300
http_chain = [
{
name = "Login"
method = "POST"
url = "https://api.example.com/login"
assert_status = 200
},
{
name = "Me"
method = "GET"
url = "https://api.example.com/me"
assert_status = 200
},
]
}import d’un scénario existant
terraform import pathly_scenario.checkout scn_…