published on Monday, May 18, 2026 by vmware
published on Monday, May 18, 2026 by vmware
Create PolicyIntrusionServiceGatewayPolicyRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyIntrusionServiceGatewayPolicyRule(name: string, args: PolicyIntrusionServiceGatewayPolicyRuleArgs, opts?: CustomResourceOptions);@overload
def PolicyIntrusionServiceGatewayPolicyRule(resource_name: str,
args: PolicyIntrusionServiceGatewayPolicyRuleInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyIntrusionServiceGatewayPolicyRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
sequence_number: Optional[float] = None,
scopes: Optional[Sequence[str]] = None,
policy_path: Optional[str] = None,
ids_profiles: Optional[Sequence[str]] = None,
disabled: Optional[bool] = None,
nsx_id: Optional[str] = None,
direction: Optional[str] = None,
ip_version: Optional[str] = None,
log_label: Optional[str] = None,
logged: Optional[bool] = None,
notes: Optional[str] = None,
action: Optional[str] = None,
policy_intrusion_service_gateway_policy_rule_id: Optional[str] = None,
destinations_excluded: Optional[bool] = None,
destination_groups: Optional[Sequence[str]] = None,
description: Optional[str] = None,
services: Optional[Sequence[str]] = None,
source_groups: Optional[Sequence[str]] = None,
sources_excluded: Optional[bool] = None,
tags: Optional[Sequence[PolicyIntrusionServiceGatewayPolicyRuleTagArgs]] = None)func NewPolicyIntrusionServiceGatewayPolicyRule(ctx *Context, name string, args PolicyIntrusionServiceGatewayPolicyRuleArgs, opts ...ResourceOption) (*PolicyIntrusionServiceGatewayPolicyRule, error)public PolicyIntrusionServiceGatewayPolicyRule(string name, PolicyIntrusionServiceGatewayPolicyRuleArgs args, CustomResourceOptions? opts = null)
public PolicyIntrusionServiceGatewayPolicyRule(String name, PolicyIntrusionServiceGatewayPolicyRuleArgs args)
public PolicyIntrusionServiceGatewayPolicyRule(String name, PolicyIntrusionServiceGatewayPolicyRuleArgs args, CustomResourceOptions options)
type: nsxt:PolicyIntrusionServiceGatewayPolicyRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "nsxt_policyintrusionservicegatewaypolicyrule" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args PolicyIntrusionServiceGatewayPolicyRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PolicyIntrusionServiceGatewayPolicyRuleInitArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PolicyIntrusionServiceGatewayPolicyRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyIntrusionServiceGatewayPolicyRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyIntrusionServiceGatewayPolicyRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var policyIntrusionServiceGatewayPolicyRuleResource = new Nsxt.PolicyIntrusionServiceGatewayPolicyRule("policyIntrusionServiceGatewayPolicyRuleResource", new()
{
DisplayName = "string",
SequenceNumber = 0,
Scopes = new[]
{
"string",
},
PolicyPath = "string",
IdsProfiles = new[]
{
"string",
},
Disabled = false,
NsxId = "string",
Direction = "string",
IpVersion = "string",
LogLabel = "string",
Logged = false,
Notes = "string",
Action = "string",
PolicyIntrusionServiceGatewayPolicyRuleId = "string",
DestinationsExcluded = false,
DestinationGroups = new[]
{
"string",
},
Description = "string",
Services = new[]
{
"string",
},
SourceGroups = new[]
{
"string",
},
SourcesExcluded = false,
Tags = new[]
{
new Nsxt.Inputs.PolicyIntrusionServiceGatewayPolicyRuleTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewPolicyIntrusionServiceGatewayPolicyRule(ctx, "policyIntrusionServiceGatewayPolicyRuleResource", &nsxt.PolicyIntrusionServiceGatewayPolicyRuleArgs{
DisplayName: pulumi.String("string"),
SequenceNumber: pulumi.Float64(0),
Scopes: pulumi.StringArray{
pulumi.String("string"),
},
PolicyPath: pulumi.String("string"),
IdsProfiles: pulumi.StringArray{
pulumi.String("string"),
},
Disabled: pulumi.Bool(false),
NsxId: pulumi.String("string"),
Direction: pulumi.String("string"),
IpVersion: pulumi.String("string"),
LogLabel: pulumi.String("string"),
Logged: pulumi.Bool(false),
Notes: pulumi.String("string"),
Action: pulumi.String("string"),
PolicyIntrusionServiceGatewayPolicyRuleId: pulumi.String("string"),
DestinationsExcluded: pulumi.Bool(false),
DestinationGroups: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
Services: pulumi.StringArray{
pulumi.String("string"),
},
SourceGroups: pulumi.StringArray{
pulumi.String("string"),
},
SourcesExcluded: pulumi.Bool(false),
Tags: nsxt.PolicyIntrusionServiceGatewayPolicyRuleTagArray{
&nsxt.PolicyIntrusionServiceGatewayPolicyRuleTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
resource "nsxt_policyintrusionservicegatewaypolicyrule" "policyIntrusionServiceGatewayPolicyRuleResource" {
display_name = "string"
sequence_number = 0
scopes = ["string"]
policy_path = "string"
ids_profiles = ["string"]
disabled = false
nsx_id = "string"
direction = "string"
ip_version = "string"
log_label = "string"
logged = false
notes = "string"
action = "string"
policy_intrusion_service_gateway_policy_rule_id = "string"
destinations_excluded = false
destination_groups = ["string"]
description = "string"
services = ["string"]
source_groups = ["string"]
sources_excluded = false
tags {
scope = "string"
tag = "string"
}
}
var policyIntrusionServiceGatewayPolicyRuleResource = new PolicyIntrusionServiceGatewayPolicyRule("policyIntrusionServiceGatewayPolicyRuleResource", PolicyIntrusionServiceGatewayPolicyRuleArgs.builder()
.displayName("string")
.sequenceNumber(0.0)
.scopes("string")
.policyPath("string")
.idsProfiles("string")
.disabled(false)
.nsxId("string")
.direction("string")
.ipVersion("string")
.logLabel("string")
.logged(false)
.notes("string")
.action("string")
.policyIntrusionServiceGatewayPolicyRuleId("string")
.destinationsExcluded(false)
.destinationGroups("string")
.description("string")
.services("string")
.sourceGroups("string")
.sourcesExcluded(false)
.tags(PolicyIntrusionServiceGatewayPolicyRuleTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
policy_intrusion_service_gateway_policy_rule_resource = nsxt.PolicyIntrusionServiceGatewayPolicyRule("policyIntrusionServiceGatewayPolicyRuleResource",
display_name="string",
sequence_number=float(0),
scopes=["string"],
policy_path="string",
ids_profiles=["string"],
disabled=False,
nsx_id="string",
direction="string",
ip_version="string",
log_label="string",
logged=False,
notes="string",
action="string",
policy_intrusion_service_gateway_policy_rule_id="string",
destinations_excluded=False,
destination_groups=["string"],
description="string",
services=["string"],
source_groups=["string"],
sources_excluded=False,
tags=[{
"scope": "string",
"tag": "string",
}])
const policyIntrusionServiceGatewayPolicyRuleResource = new nsxt.PolicyIntrusionServiceGatewayPolicyRule("policyIntrusionServiceGatewayPolicyRuleResource", {
displayName: "string",
sequenceNumber: 0,
scopes: ["string"],
policyPath: "string",
idsProfiles: ["string"],
disabled: false,
nsxId: "string",
direction: "string",
ipVersion: "string",
logLabel: "string",
logged: false,
notes: "string",
action: "string",
policyIntrusionServiceGatewayPolicyRuleId: "string",
destinationsExcluded: false,
destinationGroups: ["string"],
description: "string",
services: ["string"],
sourceGroups: ["string"],
sourcesExcluded: false,
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:PolicyIntrusionServiceGatewayPolicyRule
properties:
action: string
description: string
destinationGroups:
- string
destinationsExcluded: false
direction: string
disabled: false
displayName: string
idsProfiles:
- string
ipVersion: string
logLabel: string
logged: false
notes: string
nsxId: string
policyIntrusionServiceGatewayPolicyRuleId: string
policyPath: string
scopes:
- string
sequenceNumber: 0
services:
- string
sourceGroups:
- string
sourcesExcluded: false
tags:
- scope: string
tag: string
PolicyIntrusionServiceGatewayPolicyRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PolicyIntrusionServiceGatewayPolicyRule resource accepts the following input properties:
- Display
Name string - Display name of the resource.
- Ids
Profiles List<string> - Set of IDS profile paths for this rule. These profiles define the intrusion detection signatures to be applied.
- Policy
Path string - Path of the Intrusion Service Gateway Policy this rule belongs to.
- Scopes List<string>
- Set of policy paths where the rule is applied. These should be Tier-0 or Tier-1 gateway paths for North-South traffic inspection.
- Sequence
Number double - Sequence number to determine the order of rule processing within the parent policy.
- Action string
- Rule action for intrusion detection/prevention. One of
DETECTorDETECT_PREVENT. Default isDETECT. - Description string
- Description of the resource.
- Destination
Groups List<string> - Set of group paths that serve as the destination for this rule. An empty set can be used to specify
ANY. Default isANY. - Destinations
Excluded bool - A boolean value indicating negation of destination groups. Default is
false. - Direction string
- The traffic direction for the rule. Must be one of:
IN,OUTorIN_OUT. Default isIN_OUT. - Disabled bool
- A boolean value to indicate the rule is disabled. Default is
false. - Ip
Version string - The IP Protocol for the rule. Must be one of:
IPV4,IPV6orIPV4_IPV6. Default isIPV4_IPV6. - Log
Label string - Additional information (string) which will be propagated to the rule syslog for this rule.
- Logged bool
- A boolean flag to enable packet logging. Default is
false. - Notes string
- Text for additional notes on changes for this rule.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Intrusion stringService Gateway Policy Rule Id - ID of the resource.
- Services List<string>
- Set of service paths to match for this rule. An empty set can be used to specify
ANY. Default isANY. - Source
Groups List<string> - Set of group paths that serve as the source for this rule. An empty set can be used to specify
ANY. Default isANY. - Sources
Excluded bool - A boolean value indicating negation of source groups. Default is
false. -
List<Policy
Intrusion Service Gateway Policy Rule Tag> - A list of scope + tag pairs to associate with this rule.
- Display
Name string - Display name of the resource.
- Ids
Profiles []string - Set of IDS profile paths for this rule. These profiles define the intrusion detection signatures to be applied.
- Policy
Path string - Path of the Intrusion Service Gateway Policy this rule belongs to.
- Scopes []string
- Set of policy paths where the rule is applied. These should be Tier-0 or Tier-1 gateway paths for North-South traffic inspection.
- Sequence
Number float64 - Sequence number to determine the order of rule processing within the parent policy.
- Action string
- Rule action for intrusion detection/prevention. One of
DETECTorDETECT_PREVENT. Default isDETECT. - Description string
- Description of the resource.
- Destination
Groups []string - Set of group paths that serve as the destination for this rule. An empty set can be used to specify
ANY. Default isANY. - Destinations
Excluded bool - A boolean value indicating negation of destination groups. Default is
false. - Direction string
- The traffic direction for the rule. Must be one of:
IN,OUTorIN_OUT. Default isIN_OUT. - Disabled bool
- A boolean value to indicate the rule is disabled. Default is
false. - Ip
Version string - The IP Protocol for the rule. Must be one of:
IPV4,IPV6orIPV4_IPV6. Default isIPV4_IPV6. - Log
Label string - Additional information (string) which will be propagated to the rule syslog for this rule.
- Logged bool
- A boolean flag to enable packet logging. Default is
false. - Notes string
- Text for additional notes on changes for this rule.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Intrusion stringService Gateway Policy Rule Id - ID of the resource.
- Services []string
- Set of service paths to match for this rule. An empty set can be used to specify
ANY. Default isANY. - Source
Groups []string - Set of group paths that serve as the source for this rule. An empty set can be used to specify
ANY. Default isANY. - Sources
Excluded bool - A boolean value indicating negation of source groups. Default is
false. -
[]Policy
Intrusion Service Gateway Policy Rule Tag Args - A list of scope + tag pairs to associate with this rule.
- display_
name string - Display name of the resource.
- ids_
profiles list(string) - Set of IDS profile paths for this rule. These profiles define the intrusion detection signatures to be applied.
- policy_
path string - Path of the Intrusion Service Gateway Policy this rule belongs to.
- scopes list(string)
- Set of policy paths where the rule is applied. These should be Tier-0 or Tier-1 gateway paths for North-South traffic inspection.
- sequence_
number number - Sequence number to determine the order of rule processing within the parent policy.
- action string
- Rule action for intrusion detection/prevention. One of
DETECTorDETECT_PREVENT. Default isDETECT. - description string
- Description of the resource.
- destination_
groups list(string) - Set of group paths that serve as the destination for this rule. An empty set can be used to specify
ANY. Default isANY. - destinations_
excluded bool - A boolean value indicating negation of destination groups. Default is
false. - direction string
- The traffic direction for the rule. Must be one of:
IN,OUTorIN_OUT. Default isIN_OUT. - disabled bool
- A boolean value to indicate the rule is disabled. Default is
false. - ip_
version string - The IP Protocol for the rule. Must be one of:
IPV4,IPV6orIPV4_IPV6. Default isIPV4_IPV6. - log_
label string - Additional information (string) which will be propagated to the rule syslog for this rule.
- logged bool
- A boolean flag to enable packet logging. Default is
false. - notes string
- Text for additional notes on changes for this rule.
- nsx_
id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy_
intrusion_ stringservice_ gateway_ policy_ rule_ id - ID of the resource.
- services list(string)
- Set of service paths to match for this rule. An empty set can be used to specify
ANY. Default isANY. - source_
groups list(string) - Set of group paths that serve as the source for this rule. An empty set can be used to specify
ANY. Default isANY. - sources_
excluded bool - A boolean value indicating negation of source groups. Default is
false. - list(object)
- A list of scope + tag pairs to associate with this rule.
- display
Name String - Display name of the resource.
- ids
Profiles List<String> - Set of IDS profile paths for this rule. These profiles define the intrusion detection signatures to be applied.
- policy
Path String - Path of the Intrusion Service Gateway Policy this rule belongs to.
- scopes List<String>
- Set of policy paths where the rule is applied. These should be Tier-0 or Tier-1 gateway paths for North-South traffic inspection.
- sequence
Number Double - Sequence number to determine the order of rule processing within the parent policy.
- action String
- Rule action for intrusion detection/prevention. One of
DETECTorDETECT_PREVENT. Default isDETECT. - description String
- Description of the resource.
- destination
Groups List<String> - Set of group paths that serve as the destination for this rule. An empty set can be used to specify
ANY. Default isANY. - destinations
Excluded Boolean - A boolean value indicating negation of destination groups. Default is
false. - direction String
- The traffic direction for the rule. Must be one of:
IN,OUTorIN_OUT. Default isIN_OUT. - disabled Boolean
- A boolean value to indicate the rule is disabled. Default is
false. - ip
Version String - The IP Protocol for the rule. Must be one of:
IPV4,IPV6orIPV4_IPV6. Default isIPV4_IPV6. - log
Label String - Additional information (string) which will be propagated to the rule syslog for this rule.
- logged Boolean
- A boolean flag to enable packet logging. Default is
false. - notes String
- Text for additional notes on changes for this rule.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Intrusion StringService Gateway Policy Rule Id - ID of the resource.
- services List<String>
- Set of service paths to match for this rule. An empty set can be used to specify
ANY. Default isANY. - source
Groups List<String> - Set of group paths that serve as the source for this rule. An empty set can be used to specify
ANY. Default isANY. - sources
Excluded Boolean - A boolean value indicating negation of source groups. Default is
false. -
List<Policy
Intrusion Service Gateway Policy Rule Tag> - A list of scope + tag pairs to associate with this rule.
- display
Name string - Display name of the resource.
- ids
Profiles string[] - Set of IDS profile paths for this rule. These profiles define the intrusion detection signatures to be applied.
- policy
Path string - Path of the Intrusion Service Gateway Policy this rule belongs to.
- scopes string[]
- Set of policy paths where the rule is applied. These should be Tier-0 or Tier-1 gateway paths for North-South traffic inspection.
- sequence
Number number - Sequence number to determine the order of rule processing within the parent policy.
- action string
- Rule action for intrusion detection/prevention. One of
DETECTorDETECT_PREVENT. Default isDETECT. - description string
- Description of the resource.
- destination
Groups string[] - Set of group paths that serve as the destination for this rule. An empty set can be used to specify
ANY. Default isANY. - destinations
Excluded boolean - A boolean value indicating negation of destination groups. Default is
false. - direction string
- The traffic direction for the rule. Must be one of:
IN,OUTorIN_OUT. Default isIN_OUT. - disabled boolean
- A boolean value to indicate the rule is disabled. Default is
false. - ip
Version string - The IP Protocol for the rule. Must be one of:
IPV4,IPV6orIPV4_IPV6. Default isIPV4_IPV6. - log
Label string - Additional information (string) which will be propagated to the rule syslog for this rule.
- logged boolean
- A boolean flag to enable packet logging. Default is
false. - notes string
- Text for additional notes on changes for this rule.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Intrusion stringService Gateway Policy Rule Id - ID of the resource.
- services string[]
- Set of service paths to match for this rule. An empty set can be used to specify
ANY. Default isANY. - source
Groups string[] - Set of group paths that serve as the source for this rule. An empty set can be used to specify
ANY. Default isANY. - sources
Excluded boolean - A boolean value indicating negation of source groups. Default is
false. -
Policy
Intrusion Service Gateway Policy Rule Tag[] - A list of scope + tag pairs to associate with this rule.
- display_
name str - Display name of the resource.
- ids_
profiles Sequence[str] - Set of IDS profile paths for this rule. These profiles define the intrusion detection signatures to be applied.
- policy_
path str - Path of the Intrusion Service Gateway Policy this rule belongs to.
- scopes Sequence[str]
- Set of policy paths where the rule is applied. These should be Tier-0 or Tier-1 gateway paths for North-South traffic inspection.
- sequence_
number float - Sequence number to determine the order of rule processing within the parent policy.
- action str
- Rule action for intrusion detection/prevention. One of
DETECTorDETECT_PREVENT. Default isDETECT. - description str
- Description of the resource.
- destination_
groups Sequence[str] - Set of group paths that serve as the destination for this rule. An empty set can be used to specify
ANY. Default isANY. - destinations_
excluded bool - A boolean value indicating negation of destination groups. Default is
false. - direction str
- The traffic direction for the rule. Must be one of:
IN,OUTorIN_OUT. Default isIN_OUT. - disabled bool
- A boolean value to indicate the rule is disabled. Default is
false. - ip_
version str - The IP Protocol for the rule. Must be one of:
IPV4,IPV6orIPV4_IPV6. Default isIPV4_IPV6. - log_
label str - Additional information (string) which will be propagated to the rule syslog for this rule.
- logged bool
- A boolean flag to enable packet logging. Default is
false. - notes str
- Text for additional notes on changes for this rule.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy_
intrusion_ strservice_ gateway_ policy_ rule_ id - ID of the resource.
- services Sequence[str]
- Set of service paths to match for this rule. An empty set can be used to specify
ANY. Default isANY. - source_
groups Sequence[str] - Set of group paths that serve as the source for this rule. An empty set can be used to specify
ANY. Default isANY. - sources_
excluded bool - A boolean value indicating negation of source groups. Default is
false. -
Sequence[Policy
Intrusion Service Gateway Policy Rule Tag Args] - A list of scope + tag pairs to associate with this rule.
- display
Name String - Display name of the resource.
- ids
Profiles List<String> - Set of IDS profile paths for this rule. These profiles define the intrusion detection signatures to be applied.
- policy
Path String - Path of the Intrusion Service Gateway Policy this rule belongs to.
- scopes List<String>
- Set of policy paths where the rule is applied. These should be Tier-0 or Tier-1 gateway paths for North-South traffic inspection.
- sequence
Number Number - Sequence number to determine the order of rule processing within the parent policy.
- action String
- Rule action for intrusion detection/prevention. One of
DETECTorDETECT_PREVENT. Default isDETECT. - description String
- Description of the resource.
- destination
Groups List<String> - Set of group paths that serve as the destination for this rule. An empty set can be used to specify
ANY. Default isANY. - destinations
Excluded Boolean - A boolean value indicating negation of destination groups. Default is
false. - direction String
- The traffic direction for the rule. Must be one of:
IN,OUTorIN_OUT. Default isIN_OUT. - disabled Boolean
- A boolean value to indicate the rule is disabled. Default is
false. - ip
Version String - The IP Protocol for the rule. Must be one of:
IPV4,IPV6orIPV4_IPV6. Default isIPV4_IPV6. - log
Label String - Additional information (string) which will be propagated to the rule syslog for this rule.
- logged Boolean
- A boolean flag to enable packet logging. Default is
false. - notes String
- Text for additional notes on changes for this rule.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Intrusion StringService Gateway Policy Rule Id - ID of the resource.
- services List<String>
- Set of service paths to match for this rule. An empty set can be used to specify
ANY. Default isANY. - source
Groups List<String> - Set of group paths that serve as the source for this rule. An empty set can be used to specify
ANY. Default isANY. - sources
Excluded Boolean - A boolean value indicating negation of source groups. Default is
false. - List<Property Map>
- A list of scope + tag pairs to associate with this rule.
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyIntrusionServiceGatewayPolicyRule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Path string
- The NSX path of the policy resource.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server.
- Rule
Id double - Unique positive number that is assigned by the system and is useful for debugging.
- Id string
- The provider-assigned unique ID for this managed resource.
- Path string
- The NSX path of the policy resource.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server.
- Rule
Id float64 - Unique positive number that is assigned by the system and is useful for debugging.
- id string
- The provider-assigned unique ID for this managed resource.
- path string
- The NSX path of the policy resource.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server.
- rule_
id number - Unique positive number that is assigned by the system and is useful for debugging.
- id String
- The provider-assigned unique ID for this managed resource.
- path String
- The NSX path of the policy resource.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server.
- rule
Id Double - Unique positive number that is assigned by the system and is useful for debugging.
- id string
- The provider-assigned unique ID for this managed resource.
- path string
- The NSX path of the policy resource.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server.
- rule
Id number - Unique positive number that is assigned by the system and is useful for debugging.
- id String
- The provider-assigned unique ID for this managed resource.
- path String
- The NSX path of the policy resource.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server.
- rule
Id Number - Unique positive number that is assigned by the system and is useful for debugging.
Look up Existing PolicyIntrusionServiceGatewayPolicyRule Resource
Get an existing PolicyIntrusionServiceGatewayPolicyRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PolicyIntrusionServiceGatewayPolicyRuleState, opts?: CustomResourceOptions): PolicyIntrusionServiceGatewayPolicyRule@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
description: Optional[str] = None,
destination_groups: Optional[Sequence[str]] = None,
destinations_excluded: Optional[bool] = None,
direction: Optional[str] = None,
disabled: Optional[bool] = None,
display_name: Optional[str] = None,
ids_profiles: Optional[Sequence[str]] = None,
ip_version: Optional[str] = None,
log_label: Optional[str] = None,
logged: Optional[bool] = None,
notes: Optional[str] = None,
nsx_id: Optional[str] = None,
path: Optional[str] = None,
policy_intrusion_service_gateway_policy_rule_id: Optional[str] = None,
policy_path: Optional[str] = None,
revision: Optional[float] = None,
rule_id: Optional[float] = None,
scopes: Optional[Sequence[str]] = None,
sequence_number: Optional[float] = None,
services: Optional[Sequence[str]] = None,
source_groups: Optional[Sequence[str]] = None,
sources_excluded: Optional[bool] = None,
tags: Optional[Sequence[PolicyIntrusionServiceGatewayPolicyRuleTagArgs]] = None) -> PolicyIntrusionServiceGatewayPolicyRulefunc GetPolicyIntrusionServiceGatewayPolicyRule(ctx *Context, name string, id IDInput, state *PolicyIntrusionServiceGatewayPolicyRuleState, opts ...ResourceOption) (*PolicyIntrusionServiceGatewayPolicyRule, error)public static PolicyIntrusionServiceGatewayPolicyRule Get(string name, Input<string> id, PolicyIntrusionServiceGatewayPolicyRuleState? state, CustomResourceOptions? opts = null)public static PolicyIntrusionServiceGatewayPolicyRule get(String name, Output<String> id, PolicyIntrusionServiceGatewayPolicyRuleState state, CustomResourceOptions options)resources: _: type: nsxt:PolicyIntrusionServiceGatewayPolicyRule get: id: ${id}import {
to = nsxt_policyintrusionservicegatewaypolicyrule.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Action string
- Rule action for intrusion detection/prevention. One of
DETECTorDETECT_PREVENT. Default isDETECT. - Description string
- Description of the resource.
- Destination
Groups List<string> - Set of group paths that serve as the destination for this rule. An empty set can be used to specify
ANY. Default isANY. - Destinations
Excluded bool - A boolean value indicating negation of destination groups. Default is
false. - Direction string
- The traffic direction for the rule. Must be one of:
IN,OUTorIN_OUT. Default isIN_OUT. - Disabled bool
- A boolean value to indicate the rule is disabled. Default is
false. - Display
Name string - Display name of the resource.
- Ids
Profiles List<string> - Set of IDS profile paths for this rule. These profiles define the intrusion detection signatures to be applied.
- Ip
Version string - The IP Protocol for the rule. Must be one of:
IPV4,IPV6orIPV4_IPV6. Default isIPV4_IPV6. - Log
Label string - Additional information (string) which will be propagated to the rule syslog for this rule.
- Logged bool
- A boolean flag to enable packet logging. Default is
false. - Notes string
- Text for additional notes on changes for this rule.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Path string
- The NSX path of the policy resource.
- Policy
Intrusion stringService Gateway Policy Rule Id - ID of the resource.
- Policy
Path string - Path of the Intrusion Service Gateway Policy this rule belongs to.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server.
- Rule
Id double - Unique positive number that is assigned by the system and is useful for debugging.
- Scopes List<string>
- Set of policy paths where the rule is applied. These should be Tier-0 or Tier-1 gateway paths for North-South traffic inspection.
- Sequence
Number double - Sequence number to determine the order of rule processing within the parent policy.
- Services List<string>
- Set of service paths to match for this rule. An empty set can be used to specify
ANY. Default isANY. - Source
Groups List<string> - Set of group paths that serve as the source for this rule. An empty set can be used to specify
ANY. Default isANY. - Sources
Excluded bool - A boolean value indicating negation of source groups. Default is
false. -
List<Policy
Intrusion Service Gateway Policy Rule Tag> - A list of scope + tag pairs to associate with this rule.
- Action string
- Rule action for intrusion detection/prevention. One of
DETECTorDETECT_PREVENT. Default isDETECT. - Description string
- Description of the resource.
- Destination
Groups []string - Set of group paths that serve as the destination for this rule. An empty set can be used to specify
ANY. Default isANY. - Destinations
Excluded bool - A boolean value indicating negation of destination groups. Default is
false. - Direction string
- The traffic direction for the rule. Must be one of:
IN,OUTorIN_OUT. Default isIN_OUT. - Disabled bool
- A boolean value to indicate the rule is disabled. Default is
false. - Display
Name string - Display name of the resource.
- Ids
Profiles []string - Set of IDS profile paths for this rule. These profiles define the intrusion detection signatures to be applied.
- Ip
Version string - The IP Protocol for the rule. Must be one of:
IPV4,IPV6orIPV4_IPV6. Default isIPV4_IPV6. - Log
Label string - Additional information (string) which will be propagated to the rule syslog for this rule.
- Logged bool
- A boolean flag to enable packet logging. Default is
false. - Notes string
- Text for additional notes on changes for this rule.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Path string
- The NSX path of the policy resource.
- Policy
Intrusion stringService Gateway Policy Rule Id - ID of the resource.
- Policy
Path string - Path of the Intrusion Service Gateway Policy this rule belongs to.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server.
- Rule
Id float64 - Unique positive number that is assigned by the system and is useful for debugging.
- Scopes []string
- Set of policy paths where the rule is applied. These should be Tier-0 or Tier-1 gateway paths for North-South traffic inspection.
- Sequence
Number float64 - Sequence number to determine the order of rule processing within the parent policy.
- Services []string
- Set of service paths to match for this rule. An empty set can be used to specify
ANY. Default isANY. - Source
Groups []string - Set of group paths that serve as the source for this rule. An empty set can be used to specify
ANY. Default isANY. - Sources
Excluded bool - A boolean value indicating negation of source groups. Default is
false. -
[]Policy
Intrusion Service Gateway Policy Rule Tag Args - A list of scope + tag pairs to associate with this rule.
- action string
- Rule action for intrusion detection/prevention. One of
DETECTorDETECT_PREVENT. Default isDETECT. - description string
- Description of the resource.
- destination_
groups list(string) - Set of group paths that serve as the destination for this rule. An empty set can be used to specify
ANY. Default isANY. - destinations_
excluded bool - A boolean value indicating negation of destination groups. Default is
false. - direction string
- The traffic direction for the rule. Must be one of:
IN,OUTorIN_OUT. Default isIN_OUT. - disabled bool
- A boolean value to indicate the rule is disabled. Default is
false. - display_
name string - Display name of the resource.
- ids_
profiles list(string) - Set of IDS profile paths for this rule. These profiles define the intrusion detection signatures to be applied.
- ip_
version string - The IP Protocol for the rule. Must be one of:
IPV4,IPV6orIPV4_IPV6. Default isIPV4_IPV6. - log_
label string - Additional information (string) which will be propagated to the rule syslog for this rule.
- logged bool
- A boolean flag to enable packet logging. Default is
false. - notes string
- Text for additional notes on changes for this rule.
- nsx_
id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path string
- The NSX path of the policy resource.
- policy_
intrusion_ stringservice_ gateway_ policy_ rule_ id - ID of the resource.
- policy_
path string - Path of the Intrusion Service Gateway Policy this rule belongs to.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server.
- rule_
id number - Unique positive number that is assigned by the system and is useful for debugging.
- scopes list(string)
- Set of policy paths where the rule is applied. These should be Tier-0 or Tier-1 gateway paths for North-South traffic inspection.
- sequence_
number number - Sequence number to determine the order of rule processing within the parent policy.
- services list(string)
- Set of service paths to match for this rule. An empty set can be used to specify
ANY. Default isANY. - source_
groups list(string) - Set of group paths that serve as the source for this rule. An empty set can be used to specify
ANY. Default isANY. - sources_
excluded bool - A boolean value indicating negation of source groups. Default is
false. - list(object)
- A list of scope + tag pairs to associate with this rule.
- action String
- Rule action for intrusion detection/prevention. One of
DETECTorDETECT_PREVENT. Default isDETECT. - description String
- Description of the resource.
- destination
Groups List<String> - Set of group paths that serve as the destination for this rule. An empty set can be used to specify
ANY. Default isANY. - destinations
Excluded Boolean - A boolean value indicating negation of destination groups. Default is
false. - direction String
- The traffic direction for the rule. Must be one of:
IN,OUTorIN_OUT. Default isIN_OUT. - disabled Boolean
- A boolean value to indicate the rule is disabled. Default is
false. - display
Name String - Display name of the resource.
- ids
Profiles List<String> - Set of IDS profile paths for this rule. These profiles define the intrusion detection signatures to be applied.
- ip
Version String - The IP Protocol for the rule. Must be one of:
IPV4,IPV6orIPV4_IPV6. Default isIPV4_IPV6. - log
Label String - Additional information (string) which will be propagated to the rule syslog for this rule.
- logged Boolean
- A boolean flag to enable packet logging. Default is
false. - notes String
- Text for additional notes on changes for this rule.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path String
- The NSX path of the policy resource.
- policy
Intrusion StringService Gateway Policy Rule Id - ID of the resource.
- policy
Path String - Path of the Intrusion Service Gateway Policy this rule belongs to.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server.
- rule
Id Double - Unique positive number that is assigned by the system and is useful for debugging.
- scopes List<String>
- Set of policy paths where the rule is applied. These should be Tier-0 or Tier-1 gateway paths for North-South traffic inspection.
- sequence
Number Double - Sequence number to determine the order of rule processing within the parent policy.
- services List<String>
- Set of service paths to match for this rule. An empty set can be used to specify
ANY. Default isANY. - source
Groups List<String> - Set of group paths that serve as the source for this rule. An empty set can be used to specify
ANY. Default isANY. - sources
Excluded Boolean - A boolean value indicating negation of source groups. Default is
false. -
List<Policy
Intrusion Service Gateway Policy Rule Tag> - A list of scope + tag pairs to associate with this rule.
- action string
- Rule action for intrusion detection/prevention. One of
DETECTorDETECT_PREVENT. Default isDETECT. - description string
- Description of the resource.
- destination
Groups string[] - Set of group paths that serve as the destination for this rule. An empty set can be used to specify
ANY. Default isANY. - destinations
Excluded boolean - A boolean value indicating negation of destination groups. Default is
false. - direction string
- The traffic direction for the rule. Must be one of:
IN,OUTorIN_OUT. Default isIN_OUT. - disabled boolean
- A boolean value to indicate the rule is disabled. Default is
false. - display
Name string - Display name of the resource.
- ids
Profiles string[] - Set of IDS profile paths for this rule. These profiles define the intrusion detection signatures to be applied.
- ip
Version string - The IP Protocol for the rule. Must be one of:
IPV4,IPV6orIPV4_IPV6. Default isIPV4_IPV6. - log
Label string - Additional information (string) which will be propagated to the rule syslog for this rule.
- logged boolean
- A boolean flag to enable packet logging. Default is
false. - notes string
- Text for additional notes on changes for this rule.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path string
- The NSX path of the policy resource.
- policy
Intrusion stringService Gateway Policy Rule Id - ID of the resource.
- policy
Path string - Path of the Intrusion Service Gateway Policy this rule belongs to.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server.
- rule
Id number - Unique positive number that is assigned by the system and is useful for debugging.
- scopes string[]
- Set of policy paths where the rule is applied. These should be Tier-0 or Tier-1 gateway paths for North-South traffic inspection.
- sequence
Number number - Sequence number to determine the order of rule processing within the parent policy.
- services string[]
- Set of service paths to match for this rule. An empty set can be used to specify
ANY. Default isANY. - source
Groups string[] - Set of group paths that serve as the source for this rule. An empty set can be used to specify
ANY. Default isANY. - sources
Excluded boolean - A boolean value indicating negation of source groups. Default is
false. -
Policy
Intrusion Service Gateway Policy Rule Tag[] - A list of scope + tag pairs to associate with this rule.
- action str
- Rule action for intrusion detection/prevention. One of
DETECTorDETECT_PREVENT. Default isDETECT. - description str
- Description of the resource.
- destination_
groups Sequence[str] - Set of group paths that serve as the destination for this rule. An empty set can be used to specify
ANY. Default isANY. - destinations_
excluded bool - A boolean value indicating negation of destination groups. Default is
false. - direction str
- The traffic direction for the rule. Must be one of:
IN,OUTorIN_OUT. Default isIN_OUT. - disabled bool
- A boolean value to indicate the rule is disabled. Default is
false. - display_
name str - Display name of the resource.
- ids_
profiles Sequence[str] - Set of IDS profile paths for this rule. These profiles define the intrusion detection signatures to be applied.
- ip_
version str - The IP Protocol for the rule. Must be one of:
IPV4,IPV6orIPV4_IPV6. Default isIPV4_IPV6. - log_
label str - Additional information (string) which will be propagated to the rule syslog for this rule.
- logged bool
- A boolean flag to enable packet logging. Default is
false. - notes str
- Text for additional notes on changes for this rule.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path str
- The NSX path of the policy resource.
- policy_
intrusion_ strservice_ gateway_ policy_ rule_ id - ID of the resource.
- policy_
path str - Path of the Intrusion Service Gateway Policy this rule belongs to.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server.
- rule_
id float - Unique positive number that is assigned by the system and is useful for debugging.
- scopes Sequence[str]
- Set of policy paths where the rule is applied. These should be Tier-0 or Tier-1 gateway paths for North-South traffic inspection.
- sequence_
number float - Sequence number to determine the order of rule processing within the parent policy.
- services Sequence[str]
- Set of service paths to match for this rule. An empty set can be used to specify
ANY. Default isANY. - source_
groups Sequence[str] - Set of group paths that serve as the source for this rule. An empty set can be used to specify
ANY. Default isANY. - sources_
excluded bool - A boolean value indicating negation of source groups. Default is
false. -
Sequence[Policy
Intrusion Service Gateway Policy Rule Tag Args] - A list of scope + tag pairs to associate with this rule.
- action String
- Rule action for intrusion detection/prevention. One of
DETECTorDETECT_PREVENT. Default isDETECT. - description String
- Description of the resource.
- destination
Groups List<String> - Set of group paths that serve as the destination for this rule. An empty set can be used to specify
ANY. Default isANY. - destinations
Excluded Boolean - A boolean value indicating negation of destination groups. Default is
false. - direction String
- The traffic direction for the rule. Must be one of:
IN,OUTorIN_OUT. Default isIN_OUT. - disabled Boolean
- A boolean value to indicate the rule is disabled. Default is
false. - display
Name String - Display name of the resource.
- ids
Profiles List<String> - Set of IDS profile paths for this rule. These profiles define the intrusion detection signatures to be applied.
- ip
Version String - The IP Protocol for the rule. Must be one of:
IPV4,IPV6orIPV4_IPV6. Default isIPV4_IPV6. - log
Label String - Additional information (string) which will be propagated to the rule syslog for this rule.
- logged Boolean
- A boolean flag to enable packet logging. Default is
false. - notes String
- Text for additional notes on changes for this rule.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path String
- The NSX path of the policy resource.
- policy
Intrusion StringService Gateway Policy Rule Id - ID of the resource.
- policy
Path String - Path of the Intrusion Service Gateway Policy this rule belongs to.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server.
- rule
Id Number - Unique positive number that is assigned by the system and is useful for debugging.
- scopes List<String>
- Set of policy paths where the rule is applied. These should be Tier-0 or Tier-1 gateway paths for North-South traffic inspection.
- sequence
Number Number - Sequence number to determine the order of rule processing within the parent policy.
- services List<String>
- Set of service paths to match for this rule. An empty set can be used to specify
ANY. Default isANY. - source
Groups List<String> - Set of group paths that serve as the source for this rule. An empty set can be used to specify
ANY. Default isANY. - sources
Excluded Boolean - A boolean value indicating negation of source groups. Default is
false. - List<Property Map>
- A list of scope + tag pairs to associate with this rule.
Supporting Types
PolicyIntrusionServiceGatewayPolicyRuleTag, PolicyIntrusionServiceGatewayPolicyRuleTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxtTerraform Provider.
published on Monday, May 18, 2026 by vmware