From c35078bccea3e93b2a4b9c160e22a9431f5158e4 Mon Sep 17 00:00:00 2001 From: Daniel Corbett Date: Tue, 13 Aug 2024 17:39:32 -0400 Subject: [PATCH] MINOR: api: add new CustomClientIP option to Edge deployment This commit adds the new option `CustomClientIP` / `customClientIP` to the CreateOrUpdateEdgeDeploymentServiceBody struct. This option prevents the Fastly-Client-IP header from being overwritten by the NGWAF. It is intended for advanced use cases. --- api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api.go b/api.go index 2827fb6..0391700 100644 --- a/api.go +++ b/api.go @@ -2955,6 +2955,7 @@ func (sc *Client) DeleteEdgeDeployment(corpName, siteName string) error { type CreateOrUpdateEdgeDeploymentServiceBody struct { ActivateVersion *bool `json:"activateVersion,omitempty"` // Activate Fastly VCL service after clone PercentEnabled int `json:"percentEnabled,omitempty"` // Percentage of traffic to send to NGWAF@Edge + CustomClientIP *bool `json:"customClientIP,omitempty"` // enable to prevent Fastly-Client-IP from being overwritten by the NGWAF@Edge } // CreateOrUpdateEdgeDeploymentService copies the backends from the Fastly service to the