Integration
Provider pathlyhq/pathly: Szenarien, Webhooks, Wartung und SLA als Code.
OpenAPI-VertragAPI-Schlüssel ausstellenKostenloses Solo-Konto
API-Schlüssel holen (kostenlose Anmeldung)
Vollständiges Dokument, ohne Authentifizierung, bereit für Ihren Client-Generator.
Offizieller Provider pathlyhq/pathly in der HashiCorp Registry, OpenTofu-kompatibel. Ressourcen: pathly_scenario (Ping über url, Chain über http_chain, Flow über steps), pathly_webhook, pathly_maintenance_window, pathly_sla_target. Auth nur über PATHLY_API_TOKEN in der Umgebung — nie in einer .tf.
Nativer Import für Konsolen-Bestände. Apply-Scopes: scenarios:write alerting:write maintenance:write sla:write.
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_…