From 26eb827efa0e4349b8cbe336eea8da51d71b1426 Mon Sep 17 00:00:00 2001 From: Daniel Corbett <38925638+daniel-corbett@users.noreply.github.com> Date: Tue, 13 Aug 2024 14:55:34 -0700 Subject: [PATCH] MINOR: api: add new CustomClientIP option to Edge deployment (#64) 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