Add configurable Proxmox API timeout

This commit is contained in:
2026-07-10 11:14:29 +02:00
parent 847cc13a8f
commit c2276c2774
9 changed files with 75 additions and 11 deletions
+6
View File
@@ -60,6 +60,11 @@ class VCenterEndpoint(JobsMixin, NetBoxModel):
default=False,
help_text=_("Validate the endpoint TLS certificate."),
)
request_timeout_seconds = models.PositiveIntegerField(
default=120,
validators=[MinValueValidator(5), MaxValueValidator(600)],
help_text=_("HTTP/API read timeout in seconds."),
)
tenant = models.ForeignKey(
to="tenancy.Tenant",
on_delete=models.PROTECT,
@@ -180,6 +185,7 @@ class VCenterEndpoint(JobsMixin, NetBoxModel):
"auth_method",
"token_name",
"validate_ssl",
"request_timeout_seconds",
"tenant",
"site",
"cluster",