Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions checkpoint/data_source_checkpoint_management_threat_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,16 @@ func dataSourceManagementThreatProfile() *schema.Resource {
Computed: true,
Description: "Is Anti-Virus blade activated.",
},
"threat_extraction": {
Type: schema.TypeBool,
Computed: true,
Description: "Is Threat-Extraction blade activated.",
},
"zero_phishing": {
Type: schema.TypeBool,
Computed: true,
Description: "Is Zero-Phishing blade activated.",
},
"ips": {
Type: schema.TypeBool,
Computed: true,
Expand Down Expand Up @@ -736,6 +746,14 @@ func dataSourceManagementThreatProfileRead(d *schema.ResourceData, m interface{}
_ = d.Set("anti_virus", v)
}

if v := threatProfile["threat-extraction"]; v != nil {
_ = d.Set("threat_extraction", v)
}

if v := threatProfile["zero-phishing"]; v != nil {
_ = d.Set("zero_phishing", v)
}

if v := threatProfile["ips"]; v != nil {
_ = d.Set("ips", v)
}
Expand Down
34 changes: 34 additions & 0 deletions checkpoint/resource_checkpoint_management_threat_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,16 @@ func resourceManagementThreatProfile() *schema.Resource {
Default: true,
Description: "Is Anti-Virus blade activated.",
},
"threat_extraction": {
Type: schema.TypeBool,
Optional: true,
Description: "Is Threat-Extraction blade activated.",
},
"zero_phishing": {
Type: schema.TypeBool,
Optional: true,
Description: "Is Zero-Phishing blade activated.",
},
"ips": {
Type: schema.TypeBool,
Optional: true,
Expand Down Expand Up @@ -604,6 +614,14 @@ func createManagementThreatProfile(d *schema.ResourceData, m interface{}) error
threatProfile["anti-virus"] = v.(bool)
}

if v, ok := d.GetOkExists("threat_extraction"); ok {
threatProfile["threat-extraction"] = v.(bool)
}

if v, ok := d.GetOkExists("zero_phishing"); ok {
threatProfile["zero-phishing"] = v.(bool)
}

if v, ok := d.GetOkExists("ips"); ok {
threatProfile["ips"] = v.(bool)
}
Expand Down Expand Up @@ -1015,6 +1033,14 @@ func readManagementThreatProfile(d *schema.ResourceData, m interface{}) error {
_ = d.Set("anti_virus", v)
}

if v := threatProfile["threat-extraction"]; v != nil {
_ = d.Set("threat_extraction", v)
}

if v := threatProfile["zero-phishing"]; v != nil {
_ = d.Set("zero_phishing", v)
}

if v := threatProfile["ips"]; v != nil {
_ = d.Set("ips", v)
}
Expand Down Expand Up @@ -1235,6 +1261,14 @@ func updateManagementThreatProfile(d *schema.ResourceData, m interface{}) error
threatProfile["anti-virus"] = d.Get("anti_virus")
}

if ok := d.HasChange("threat_extraction"); ok {
threatProfile["threat-extraction"] = d.Get("threat_extraction")
}

if ok := d.HasChange("zero_phishing"); ok {
threatProfile["zero-phishing"] = d.Get("zero_phishing")
}

if ok := d.HasChange("ips"); ok {
threatProfile["ips"] = d.Get("ips")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ The following arguments are supported:
* `scan_malicious_links` - (Optional) Scans malicious links (URLs) inside email messages. scan_malicious_links blocks are documented below.
* `use_indicators` - (Optional) Indicates whether the profile should make use of indicators.
* `anti_virus` - (Optional) Is Anti-Virus blade activated.
* `threat_extraction` - (Optional) Is Threat-Extraction blade activated.
* `zero_phishing` - (Optional) Is Zero-Phishing blade activated.
* `anti_bot` - (Optional) Is Anti-Bot blade activated.
* `ips` - (Optional) Is IPS blade activated.
* `threat_emulation` - (Optional) Is Threat Emulation blade activated.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ The following arguments are supported:
* `scan_malicious_links` - (Optional) Scans malicious links (URLs) inside email messages. scan_malicious_links blocks are documented below.
* `use_indicators` - (Optional) Indicates whether the profile should make use of indicators.
* `anti_virus` - (Optional) Is Anti-Virus blade activated.
* `threat_extraction` - (Optional) Is Threat-Extraction blade activated.
* `zero_phishing` - (Optional) Is Zero-Phishing blade activated.
* `anti_bot` - (Optional) Is Anti-Bot blade activated.
* `ips` - (Optional) Is IPS blade activated.
* `threat_emulation` - (Optional) Is Threat Emulation blade activated.
Expand Down