From 263e9347f6c56437db20f56a59fa780f950841cc 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..5d80218 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"` // allow using a custom IP without overriding Fastly-Client-IP } // CreateOrUpdateEdgeDeploymentService copies the backends from the Fastly service to the