Integración
Provider pathlyhq/pathly: escenarios, webhooks, mantenimiento y SLA como código.
Contrato OpenAPIEmitir una clave de APICuenta Solo gratis
Obtener mi clave API (registro gratis)
Documento completo, sin autenticación, listo para su generador de clientes.
Provider oficial pathlyhq/pathly en el registro HashiCorp, compatible OpenTofu. Recursos: pathly_scenario (Ping via url, Chain via http_chain, Flow via steps), pathly_webhook, pathly_maintenance_window, pathly_sla_target. Auth solo con PATHLY_API_TOKEN en el entorno — nunca en un .tf.
Import nativo para adoptar un parque de consola. Scopes apply: 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_…