File tree Expand file tree Collapse file tree 8 files changed +2089
-2
lines changed
examples/resources/prismacloudcompute_alertprofile Expand file tree Collapse file tree 8 files changed +2089
-2
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1+ resource "prismacloudcompute_alertprofile" "test" {
2+ name = " webhook-example"
3+ enabled = true
4+ alert_profile_type = " webhook"
5+
6+ enable_immediate_vulnerabilities_alerts = false
7+
8+ alert_profile_config {
9+ prisma_cloud_integration_id = prismacloud_integration. this . id
10+ webhook_url = " https://webhook.url"
11+ custom_json = <<- EOT
12+ {
13+ "types": "#type",
14+ "time": "#time",
15+ "container": "#container",
16+ "image": "#image",
17+ "host": "#host",
18+ "fqdn": "#fqdn",
19+ "function": "#function",
20+ "region": "#region",
21+ "runtime": "#runtime",
22+ "appID": "#appID",
23+ "rule": "#rule",
24+ "message": "#message",
25+ "aggregated": "#aggregated",
26+ "rest": "#rest",
27+ "forensics": "#forensics",
28+ "accountID": "#accountID",
29+ "cluster": "#cluster",
30+ "labels": #labels,
31+ "collections": #collections,
32+ "complianceIssues": #complianceIssues,
33+ "vulnerabilities": #vulnerabilities
34+ }
35+ EOT
36+ }
37+
38+ alert_triggers {
39+ access {
40+ enabled = true
41+ all_rules = true
42+ }
43+
44+ admission {
45+ enabled = true
46+ all_rules = true
47+ }
48+
49+ app_embedded_defender_runtime {
50+ enabled = true
51+ all_rules = true
52+ }
53+
54+ cloud_native_network_firewall {
55+ enabled = true
56+ }
57+
58+ container_and_image_compliance {
59+ enabled = true
60+ all_rules = true
61+ }
62+
63+ container_runtime {
64+ enabled = true
65+ all_rules = true
66+ }
67+
68+ defender_health {
69+ enabled = true
70+ }
71+
72+ host_compliance {
73+ enabled = true
74+ all_rules = true
75+ }
76+
77+ host_runtime {
78+ enabled = true
79+ all_rules = true
80+ }
81+
82+ host_vulnerabilities {
83+ enabled = true
84+ all_rules = true
85+ }
86+ image_vulnerabilities {
87+ enabled = true
88+ all_rules = false
89+ rules = [" rule1" , " rule2" ]
90+ }
91+
92+ incidents {
93+ enabled = true
94+ }
95+
96+ kubernetes_audits {
97+ enabled = true
98+ all_rules = true
99+ }
100+
101+ serverless_runtime {
102+ enabled = true
103+ all_rules = true
104+ }
105+
106+ waas_firewall_app_embedded_defender {
107+ enabled = true
108+ all_rules = true
109+ }
110+
111+ waas_firewall_container {
112+ enabled = true
113+ all_rules = true
114+ }
115+
116+ waas_firewall_host {
117+ enabled = true
118+ all_rules = true
119+ }
120+
121+ waas_firewall_serverless {
122+ enabled = true
123+ all_rules = true
124+ }
125+
126+ waas_health {
127+ enabled = true
128+ }
129+
130+ }
131+ }
Original file line number Diff line number Diff line change @@ -2,7 +2,10 @@ module github.com/PaloAltoNetworks/terraform-provider-prismacloudcompute
22
33go 1.17
44
5- require github.com/hashicorp/terraform-plugin-sdk/v2 v2.7.1
5+ require (
6+ github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
7+ github.com/hashicorp/terraform-plugin-sdk/v2 v2.7.1
8+ )
69
710require (
811 cloud.google.com/go v0.65.0 // indirect
@@ -21,7 +24,6 @@ require (
2124 github.com/hashicorp/errwrap v1.0.0 // indirect
2225 github.com/hashicorp/go-checkpoint v0.5.0 // indirect
2326 github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
24- github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
2527 github.com/hashicorp/go-getter v1.5.3 // indirect
2628 github.com/hashicorp/go-hclog v0.15.0 // indirect
2729 github.com/hashicorp/go-multierror v1.0.0 // indirect
You can’t perform that action at this time.
0 commit comments