Skip to content

Commit aa8be63

Browse files
tamyyalomanandkunal
authored andcommitted
add seal_location to read and update site
1 parent 5cb6c00 commit aa8be63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

incapsula/resource_site.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ func resourceSite() *schema.Resource {
106106
Description: "api.seal_location.bottom_left | api.seal_location.none | api.seal_location.right_bottom | api.seal_location.right | api.seal_location.left | api.seal_location.bottom_right | api.seal_location.bottom.",
107107
Type: schema.TypeString,
108108
Optional: true,
109+
Default: "api.seal_location.none",
109110
},
110111
"domain_redirect_to_full": {
111112
Description: "true or empty string.",
@@ -435,6 +436,7 @@ func resourceSiteRead(d *schema.ResourceData, m interface{}) error {
435436
d.Set("wildcard_san", siteStatusResponse.UseWildcardSanInsteadOfFullDomainSan)
436437
d.Set("acceleration_level", siteStatusResponse.AccelerationLevel)
437438
d.Set("active", siteStatusResponse.Active)
439+
d.Set("seal_location", siteStatusResponse.SealLocation.ID)
438440

439441
// Set the DNS information
440442
dnsARecordValues := make([]string, 0)
@@ -607,7 +609,7 @@ func resourceSiteDelete(d *schema.ResourceData, m interface{}) error {
607609
}
608610

609611
func updateAdditionalSiteProperties(client *Client, d *schema.ResourceData) error {
610-
updateParams := [9]string{"acceleration_level", "active", "approver", "domain_redirect_to_full", "domain_validation", "ignore_ssl", "remove_ssl", "ref_id", "site_ip"}
612+
updateParams := [10]string{"acceleration_level", "active", "approver", "domain_redirect_to_full", "domain_validation", "ignore_ssl", "remove_ssl", "ref_id", "site_ip", "seal_location"}
611613
for i := 0; i < len(updateParams); i++ {
612614
param := updateParams[i]
613615
if d.HasChange(param) && d.Get(param) != "" {

0 commit comments

Comments
 (0)