Intégration
Provider pathlyhq/pathly : scénarios, webhooks, maintenance et SLA en code.
Contrat OpenAPIÉmettre une clé d’APICompte Solo gratuit
Obtenir ma clé API (inscription gratuite)
Document complet, sans authentification, à donner à votre générateur de client.
Provider officiel pathlyhq/pathly sur le registre HashiCorp, compatible OpenTofu. Ressources : pathly_scenario (Ping via url, Chain via http_chain, Flow via steps), pathly_webhook, pathly_maintenance_window, pathly_sla_target. Auth uniquement via PATHLY_API_TOKEN dans l’environnement — jamais dans un .tf.
Import natif pour adopter un parc créé dans la console, puis une seule source de vérité. scopes recommandés apply : scenarios:write alerting:write maintenance:write sla:write ; plan : les :read équivalents.
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_…