From 6844cf65d574d0fc522b128074ac5205c691d8df Mon Sep 17 00:00:00 2001 From: Nikita Aware <100845606+nikitapanw@users.noreply.github.com> Date: Fri, 23 Dec 2022 15:42:35 +0530 Subject: [PATCH] Added policy rule type networkconfig (#167) --- docs/resources/policy.md | 2 +- prismacloud/resource_policy.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/resources/policy.md b/docs/resources/policy.md index d9de4513..66efe261 100644 --- a/docs/resources/policy.md +++ b/docs/resources/policy.md @@ -55,7 +55,7 @@ One and only one of these must be present: * `data_criteria` - (Required for Data policy) Criteria for DLP Rule, as defined [below](#data-criteria) * `children` - (Required for Config build policy) Children description for build policy, as defined [below](#children) * `parameters` - (Required for Config, Audit Event, IAM and Network policies, map of strings) Parameters. Valid keys are `withIac` and `savedSearch` and value is `"true"`or `"false"` (`SavedSearch` is true when we are using savedsearch and it is false when we directly give search query and `withIac` is true for build policies otherwise false) -* `rule_type` - (Required) Type of rule or RQL query. Valid values are `Config`, `AuditEvent`, `IAM`, `Network`, `DLP`, or `Anomaly` +* `rule_type` - (Required) Type of rule or RQL query. Valid values are `Config`, `AuditEvent`, `IAM`, `Network`, `DLP`, `Anomaly` or `NetworkConfig` ### Remediation diff --git a/prismacloud/resource_policy.go b/prismacloud/resource_policy.go index d3e30f85..cde903e4 100644 --- a/prismacloud/resource_policy.go +++ b/prismacloud/resource_policy.go @@ -299,6 +299,7 @@ func resourcePolicy() *schema.Resource { policy.RuleTypeIAM, policy.RuleTypeAnomaly, policy.RuleTypeData, + policy.RuleTypeNetworkConfig, }, false, ),