[management] add terminated field to service (#5700)

This commit is contained in:
Pascal Fischer
2026-03-26 16:59:08 +01:00
committed by GitHub
parent 7be8752a00
commit 7e1cce4b9f
4 changed files with 20 additions and 5 deletions

View File

@@ -2999,6 +2999,11 @@ components:
type: boolean
description: Whether the service is enabled
example: true
terminated:
type: boolean
description: Whether the service has been terminated. Terminated services cannot be updated. Services that violate the Terms of Service will be terminated.
readOnly: true
example: false
pass_host_header:
type: boolean
description: When true, the original client Host header is passed through to the backend instead of being rewritten to the backend's address

View File

@@ -3718,6 +3718,9 @@ type Service struct {
// Targets List of target backends for this service
Targets []ServiceTarget `json:"targets"`
// Terminated Whether the service has been terminated. Terminated services cannot be updated. Services that violate the Terms of Service will be terminated.
Terminated *bool `json:"terminated,omitempty"`
}
// ServiceMode Service mode. "http" for L7 reverse proxy, "tcp"/"udp"/"tls" for L4 passthrough.