1. Packages
  2. Nsxt Provider
  3. API Docs
  4. PolicySecurityPolicyRule
nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware

nsxt.PolicySecurityPolicyRule

Explore with Pulumi AI

nsxt logo
nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware

    Create PolicySecurityPolicyRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PolicySecurityPolicyRule(name: string, args: PolicySecurityPolicyRuleArgs, opts?: CustomResourceOptions);
    @overload
    def PolicySecurityPolicyRule(resource_name: str,
                                 args: PolicySecurityPolicyRuleInitArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def PolicySecurityPolicyRule(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 display_name: Optional[str] = None,
                                 sequence_number: Optional[float] = None,
                                 policy_path: Optional[str] = None,
                                 logged: Optional[bool] = None,
                                 nsx_id: Optional[str] = None,
                                 direction: Optional[str] = None,
                                 disabled: Optional[bool] = None,
                                 destination_groups: Optional[Sequence[str]] = None,
                                 ip_version: Optional[str] = None,
                                 log_label: Optional[str] = None,
                                 action: Optional[str] = None,
                                 notes: Optional[str] = None,
                                 destinations_excluded: Optional[bool] = None,
                                 description: Optional[str] = None,
                                 policy_security_policy_rule_id: Optional[str] = None,
                                 profiles: Optional[Sequence[str]] = None,
                                 scopes: Optional[Sequence[str]] = None,
                                 context: Optional[PolicySecurityPolicyRuleContextArgs] = None,
                                 service_entries: Optional[PolicySecurityPolicyRuleServiceEntriesArgs] = None,
                                 services: Optional[Sequence[str]] = None,
                                 source_groups: Optional[Sequence[str]] = None,
                                 sources_excluded: Optional[bool] = None,
                                 tags: Optional[Sequence[PolicySecurityPolicyRuleTagArgs]] = None)
    func NewPolicySecurityPolicyRule(ctx *Context, name string, args PolicySecurityPolicyRuleArgs, opts ...ResourceOption) (*PolicySecurityPolicyRule, error)
    public PolicySecurityPolicyRule(string name, PolicySecurityPolicyRuleArgs args, CustomResourceOptions? opts = null)
    public PolicySecurityPolicyRule(String name, PolicySecurityPolicyRuleArgs args)
    public PolicySecurityPolicyRule(String name, PolicySecurityPolicyRuleArgs args, CustomResourceOptions options)
    
    type: nsxt:PolicySecurityPolicyRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PolicySecurityPolicyRuleArgs
    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 PolicySecurityPolicyRuleInitArgs
    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 PolicySecurityPolicyRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PolicySecurityPolicyRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PolicySecurityPolicyRuleArgs
    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 policySecurityPolicyRuleResource = new Nsxt.PolicySecurityPolicyRule("policySecurityPolicyRuleResource", new()
    {
        DisplayName = "string",
        SequenceNumber = 0,
        PolicyPath = "string",
        Logged = false,
        NsxId = "string",
        Direction = "string",
        Disabled = false,
        DestinationGroups = new[]
        {
            "string",
        },
        IpVersion = "string",
        LogLabel = "string",
        Action = "string",
        Notes = "string",
        DestinationsExcluded = false,
        Description = "string",
        PolicySecurityPolicyRuleId = "string",
        Profiles = new[]
        {
            "string",
        },
        Scopes = new[]
        {
            "string",
        },
        Context = new Nsxt.Inputs.PolicySecurityPolicyRuleContextArgs
        {
            ProjectId = "string",
        },
        ServiceEntries = new Nsxt.Inputs.PolicySecurityPolicyRuleServiceEntriesArgs
        {
            AlgorithmEntries = new[]
            {
                new Nsxt.Inputs.PolicySecurityPolicyRuleServiceEntriesAlgorithmEntryArgs
                {
                    Algorithm = "string",
                    DestinationPort = "string",
                    Description = "string",
                    DisplayName = "string",
                    SourcePorts = new[]
                    {
                        "string",
                    },
                },
            },
            EtherTypeEntries = new[]
            {
                new Nsxt.Inputs.PolicySecurityPolicyRuleServiceEntriesEtherTypeEntryArgs
                {
                    EtherType = 0,
                    Description = "string",
                    DisplayName = "string",
                },
            },
            IcmpEntries = new[]
            {
                new Nsxt.Inputs.PolicySecurityPolicyRuleServiceEntriesIcmpEntryArgs
                {
                    Protocol = "string",
                    Description = "string",
                    DisplayName = "string",
                    IcmpCode = "string",
                    IcmpType = "string",
                },
            },
            IgmpEntries = new[]
            {
                new Nsxt.Inputs.PolicySecurityPolicyRuleServiceEntriesIgmpEntryArgs
                {
                    Description = "string",
                    DisplayName = "string",
                },
            },
            IpProtocolEntries = new[]
            {
                new Nsxt.Inputs.PolicySecurityPolicyRuleServiceEntriesIpProtocolEntryArgs
                {
                    Protocol = 0,
                    Description = "string",
                    DisplayName = "string",
                },
            },
            L4PortSetEntries = new[]
            {
                new Nsxt.Inputs.PolicySecurityPolicyRuleServiceEntriesL4PortSetEntryArgs
                {
                    Protocol = "string",
                    Description = "string",
                    DestinationPorts = new[]
                    {
                        "string",
                    },
                    DisplayName = "string",
                    SourcePorts = new[]
                    {
                        "string",
                    },
                },
            },
        },
        Services = new[]
        {
            "string",
        },
        SourceGroups = new[]
        {
            "string",
        },
        SourcesExcluded = false,
        Tags = new[]
        {
            new Nsxt.Inputs.PolicySecurityPolicyRuleTagArgs
            {
                Scope = "string",
                Tag = "string",
            },
        },
    });
    
    example, err := nsxt.NewPolicySecurityPolicyRule(ctx, "policySecurityPolicyRuleResource", &nsxt.PolicySecurityPolicyRuleArgs{
    	DisplayName:    pulumi.String("string"),
    	SequenceNumber: pulumi.Float64(0),
    	PolicyPath:     pulumi.String("string"),
    	Logged:         pulumi.Bool(false),
    	NsxId:          pulumi.String("string"),
    	Direction:      pulumi.String("string"),
    	Disabled:       pulumi.Bool(false),
    	DestinationGroups: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	IpVersion:                  pulumi.String("string"),
    	LogLabel:                   pulumi.String("string"),
    	Action:                     pulumi.String("string"),
    	Notes:                      pulumi.String("string"),
    	DestinationsExcluded:       pulumi.Bool(false),
    	Description:                pulumi.String("string"),
    	PolicySecurityPolicyRuleId: pulumi.String("string"),
    	Profiles: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Scopes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Context: &nsxt.PolicySecurityPolicyRuleContextArgs{
    		ProjectId: pulumi.String("string"),
    	},
    	ServiceEntries: &nsxt.PolicySecurityPolicyRuleServiceEntriesArgs{
    		AlgorithmEntries: nsxt.PolicySecurityPolicyRuleServiceEntriesAlgorithmEntryArray{
    			&nsxt.PolicySecurityPolicyRuleServiceEntriesAlgorithmEntryArgs{
    				Algorithm:       pulumi.String("string"),
    				DestinationPort: pulumi.String("string"),
    				Description:     pulumi.String("string"),
    				DisplayName:     pulumi.String("string"),
    				SourcePorts: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    		EtherTypeEntries: nsxt.PolicySecurityPolicyRuleServiceEntriesEtherTypeEntryArray{
    			&nsxt.PolicySecurityPolicyRuleServiceEntriesEtherTypeEntryArgs{
    				EtherType:   pulumi.Float64(0),
    				Description: pulumi.String("string"),
    				DisplayName: pulumi.String("string"),
    			},
    		},
    		IcmpEntries: nsxt.PolicySecurityPolicyRuleServiceEntriesIcmpEntryArray{
    			&nsxt.PolicySecurityPolicyRuleServiceEntriesIcmpEntryArgs{
    				Protocol:    pulumi.String("string"),
    				Description: pulumi.String("string"),
    				DisplayName: pulumi.String("string"),
    				IcmpCode:    pulumi.String("string"),
    				IcmpType:    pulumi.String("string"),
    			},
    		},
    		IgmpEntries: nsxt.PolicySecurityPolicyRuleServiceEntriesIgmpEntryArray{
    			&nsxt.PolicySecurityPolicyRuleServiceEntriesIgmpEntryArgs{
    				Description: pulumi.String("string"),
    				DisplayName: pulumi.String("string"),
    			},
    		},
    		IpProtocolEntries: nsxt.PolicySecurityPolicyRuleServiceEntriesIpProtocolEntryArray{
    			&nsxt.PolicySecurityPolicyRuleServiceEntriesIpProtocolEntryArgs{
    				Protocol:    pulumi.Float64(0),
    				Description: pulumi.String("string"),
    				DisplayName: pulumi.String("string"),
    			},
    		},
    		L4PortSetEntries: nsxt.PolicySecurityPolicyRuleServiceEntriesL4PortSetEntryArray{
    			&nsxt.PolicySecurityPolicyRuleServiceEntriesL4PortSetEntryArgs{
    				Protocol:    pulumi.String("string"),
    				Description: pulumi.String("string"),
    				DestinationPorts: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				DisplayName: pulumi.String("string"),
    				SourcePorts: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    	},
    	Services: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SourceGroups: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SourcesExcluded: pulumi.Bool(false),
    	Tags: nsxt.PolicySecurityPolicyRuleTagArray{
    		&nsxt.PolicySecurityPolicyRuleTagArgs{
    			Scope: pulumi.String("string"),
    			Tag:   pulumi.String("string"),
    		},
    	},
    })
    
    var policySecurityPolicyRuleResource = new PolicySecurityPolicyRule("policySecurityPolicyRuleResource", PolicySecurityPolicyRuleArgs.builder()
        .displayName("string")
        .sequenceNumber(0)
        .policyPath("string")
        .logged(false)
        .nsxId("string")
        .direction("string")
        .disabled(false)
        .destinationGroups("string")
        .ipVersion("string")
        .logLabel("string")
        .action("string")
        .notes("string")
        .destinationsExcluded(false)
        .description("string")
        .policySecurityPolicyRuleId("string")
        .profiles("string")
        .scopes("string")
        .context(PolicySecurityPolicyRuleContextArgs.builder()
            .projectId("string")
            .build())
        .serviceEntries(PolicySecurityPolicyRuleServiceEntriesArgs.builder()
            .algorithmEntries(PolicySecurityPolicyRuleServiceEntriesAlgorithmEntryArgs.builder()
                .algorithm("string")
                .destinationPort("string")
                .description("string")
                .displayName("string")
                .sourcePorts("string")
                .build())
            .etherTypeEntries(PolicySecurityPolicyRuleServiceEntriesEtherTypeEntryArgs.builder()
                .etherType(0)
                .description("string")
                .displayName("string")
                .build())
            .icmpEntries(PolicySecurityPolicyRuleServiceEntriesIcmpEntryArgs.builder()
                .protocol("string")
                .description("string")
                .displayName("string")
                .icmpCode("string")
                .icmpType("string")
                .build())
            .igmpEntries(PolicySecurityPolicyRuleServiceEntriesIgmpEntryArgs.builder()
                .description("string")
                .displayName("string")
                .build())
            .ipProtocolEntries(PolicySecurityPolicyRuleServiceEntriesIpProtocolEntryArgs.builder()
                .protocol(0)
                .description("string")
                .displayName("string")
                .build())
            .l4PortSetEntries(PolicySecurityPolicyRuleServiceEntriesL4PortSetEntryArgs.builder()
                .protocol("string")
                .description("string")
                .destinationPorts("string")
                .displayName("string")
                .sourcePorts("string")
                .build())
            .build())
        .services("string")
        .sourceGroups("string")
        .sourcesExcluded(false)
        .tags(PolicySecurityPolicyRuleTagArgs.builder()
            .scope("string")
            .tag("string")
            .build())
        .build());
    
    policy_security_policy_rule_resource = nsxt.PolicySecurityPolicyRule("policySecurityPolicyRuleResource",
        display_name="string",
        sequence_number=0,
        policy_path="string",
        logged=False,
        nsx_id="string",
        direction="string",
        disabled=False,
        destination_groups=["string"],
        ip_version="string",
        log_label="string",
        action="string",
        notes="string",
        destinations_excluded=False,
        description="string",
        policy_security_policy_rule_id="string",
        profiles=["string"],
        scopes=["string"],
        context={
            "project_id": "string",
        },
        service_entries={
            "algorithm_entries": [{
                "algorithm": "string",
                "destination_port": "string",
                "description": "string",
                "display_name": "string",
                "source_ports": ["string"],
            }],
            "ether_type_entries": [{
                "ether_type": 0,
                "description": "string",
                "display_name": "string",
            }],
            "icmp_entries": [{
                "protocol": "string",
                "description": "string",
                "display_name": "string",
                "icmp_code": "string",
                "icmp_type": "string",
            }],
            "igmp_entries": [{
                "description": "string",
                "display_name": "string",
            }],
            "ip_protocol_entries": [{
                "protocol": 0,
                "description": "string",
                "display_name": "string",
            }],
            "l4_port_set_entries": [{
                "protocol": "string",
                "description": "string",
                "destination_ports": ["string"],
                "display_name": "string",
                "source_ports": ["string"],
            }],
        },
        services=["string"],
        source_groups=["string"],
        sources_excluded=False,
        tags=[{
            "scope": "string",
            "tag": "string",
        }])
    
    const policySecurityPolicyRuleResource = new nsxt.PolicySecurityPolicyRule("policySecurityPolicyRuleResource", {
        displayName: "string",
        sequenceNumber: 0,
        policyPath: "string",
        logged: false,
        nsxId: "string",
        direction: "string",
        disabled: false,
        destinationGroups: ["string"],
        ipVersion: "string",
        logLabel: "string",
        action: "string",
        notes: "string",
        destinationsExcluded: false,
        description: "string",
        policySecurityPolicyRuleId: "string",
        profiles: ["string"],
        scopes: ["string"],
        context: {
            projectId: "string",
        },
        serviceEntries: {
            algorithmEntries: [{
                algorithm: "string",
                destinationPort: "string",
                description: "string",
                displayName: "string",
                sourcePorts: ["string"],
            }],
            etherTypeEntries: [{
                etherType: 0,
                description: "string",
                displayName: "string",
            }],
            icmpEntries: [{
                protocol: "string",
                description: "string",
                displayName: "string",
                icmpCode: "string",
                icmpType: "string",
            }],
            igmpEntries: [{
                description: "string",
                displayName: "string",
            }],
            ipProtocolEntries: [{
                protocol: 0,
                description: "string",
                displayName: "string",
            }],
            l4PortSetEntries: [{
                protocol: "string",
                description: "string",
                destinationPorts: ["string"],
                displayName: "string",
                sourcePorts: ["string"],
            }],
        },
        services: ["string"],
        sourceGroups: ["string"],
        sourcesExcluded: false,
        tags: [{
            scope: "string",
            tag: "string",
        }],
    });
    
    type: nsxt:PolicySecurityPolicyRule
    properties:
        action: string
        context:
            projectId: string
        description: string
        destinationGroups:
            - string
        destinationsExcluded: false
        direction: string
        disabled: false
        displayName: string
        ipVersion: string
        logLabel: string
        logged: false
        notes: string
        nsxId: string
        policyPath: string
        policySecurityPolicyRuleId: string
        profiles:
            - string
        scopes:
            - string
        sequenceNumber: 0
        serviceEntries:
            algorithmEntries:
                - algorithm: string
                  description: string
                  destinationPort: string
                  displayName: string
                  sourcePorts:
                    - string
            etherTypeEntries:
                - description: string
                  displayName: string
                  etherType: 0
            icmpEntries:
                - description: string
                  displayName: string
                  icmpCode: string
                  icmpType: string
                  protocol: string
            igmpEntries:
                - description: string
                  displayName: string
            ipProtocolEntries:
                - description: string
                  displayName: string
                  protocol: 0
            l4PortSetEntries:
                - description: string
                  destinationPorts:
                    - string
                  displayName: string
                  protocol: string
                  sourcePorts:
                    - string
        services:
            - string
        sourceGroups:
            - string
        sourcesExcluded: false
        tags:
            - scope: string
              tag: string
    

    PolicySecurityPolicyRule 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 PolicySecurityPolicyRule resource accepts the following input properties:

    DisplayName string
    Display name of the resource.
    PolicyPath string
    The path of the Security Policy which the object belongs to
    SequenceNumber double
    This field is used to resolve conflicts between multiple Rules under Security or Gateway Policy for a Domain. Please note that sequence numbers should start with 1 and not 0 to avoid confusion.
    Action string
    Rule action, one of ALLOW, DROP, REJECT and JUMP_TO_APPLICATION. Default is ALLOW. JUMP_TO_APPLICATION is only applicable in Environment category.
    Context PolicySecurityPolicyRuleContext
    The context which the object belongs to. If it's not provided, it will be derived from policy_path.
    Description string
    Description of the resource.
    DestinationGroups List<string>
    Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    DestinationsExcluded bool
    A boolean value indicating negation of destination groups.
    Direction string
    Traffic direction, one of IN, OUT or IN_OUT. Default is IN_OUT.
    Disabled bool
    Flag to disable this rule. Default is false.
    IpVersion string
    Version of IP protocol, one of NONE, IPV4, IPV6, IPV4_IPV6. Default is IPV4_IPV6. For Ethernet category rules, use NONE value.
    LogLabel string
    Additional information (string) which will be propagated to the rule syslog.
    Logged bool
    Flag to enable packet logging. Default is false.
    Notes string
    Additional notes on changes.
    NsxId string
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    PolicySecurityPolicyRuleId string
    Profiles List<string>
    Set of profile paths relevant for this rule.
    Scopes List<string>
    Set of policy object paths where the rule is applied.
    ServiceEntries PolicySecurityPolicyRuleServiceEntries
    Set of explicit protocol/port service definition
    Services List<string>
    Set of service paths to match.
    SourceGroups List<string>
    Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    SourcesExcluded bool
    A boolean value indicating negation of source groups.
    Tags List<PolicySecurityPolicyRuleTag>
    A list of scope + tag pairs to associate with this policy.
    DisplayName string
    Display name of the resource.
    PolicyPath string
    The path of the Security Policy which the object belongs to
    SequenceNumber float64
    This field is used to resolve conflicts between multiple Rules under Security or Gateway Policy for a Domain. Please note that sequence numbers should start with 1 and not 0 to avoid confusion.
    Action string
    Rule action, one of ALLOW, DROP, REJECT and JUMP_TO_APPLICATION. Default is ALLOW. JUMP_TO_APPLICATION is only applicable in Environment category.
    Context PolicySecurityPolicyRuleContextArgs
    The context which the object belongs to. If it's not provided, it will be derived from policy_path.
    Description string
    Description of the resource.
    DestinationGroups []string
    Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    DestinationsExcluded bool
    A boolean value indicating negation of destination groups.
    Direction string
    Traffic direction, one of IN, OUT or IN_OUT. Default is IN_OUT.
    Disabled bool
    Flag to disable this rule. Default is false.
    IpVersion string
    Version of IP protocol, one of NONE, IPV4, IPV6, IPV4_IPV6. Default is IPV4_IPV6. For Ethernet category rules, use NONE value.
    LogLabel string
    Additional information (string) which will be propagated to the rule syslog.
    Logged bool
    Flag to enable packet logging. Default is false.
    Notes string
    Additional notes on changes.
    NsxId string
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    PolicySecurityPolicyRuleId string
    Profiles []string
    Set of profile paths relevant for this rule.
    Scopes []string
    Set of policy object paths where the rule is applied.
    ServiceEntries PolicySecurityPolicyRuleServiceEntriesArgs
    Set of explicit protocol/port service definition
    Services []string
    Set of service paths to match.
    SourceGroups []string
    Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    SourcesExcluded bool
    A boolean value indicating negation of source groups.
    Tags []PolicySecurityPolicyRuleTagArgs
    A list of scope + tag pairs to associate with this policy.
    displayName String
    Display name of the resource.
    policyPath String
    The path of the Security Policy which the object belongs to
    sequenceNumber Double
    This field is used to resolve conflicts between multiple Rules under Security or Gateway Policy for a Domain. Please note that sequence numbers should start with 1 and not 0 to avoid confusion.
    action String
    Rule action, one of ALLOW, DROP, REJECT and JUMP_TO_APPLICATION. Default is ALLOW. JUMP_TO_APPLICATION is only applicable in Environment category.
    context PolicySecurityPolicyRuleContext
    The context which the object belongs to. If it's not provided, it will be derived from policy_path.
    description String
    Description of the resource.
    destinationGroups List<String>
    Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    destinationsExcluded Boolean
    A boolean value indicating negation of destination groups.
    direction String
    Traffic direction, one of IN, OUT or IN_OUT. Default is IN_OUT.
    disabled Boolean
    Flag to disable this rule. Default is false.
    ipVersion String
    Version of IP protocol, one of NONE, IPV4, IPV6, IPV4_IPV6. Default is IPV4_IPV6. For Ethernet category rules, use NONE value.
    logLabel String
    Additional information (string) which will be propagated to the rule syslog.
    logged Boolean
    Flag to enable packet logging. Default is false.
    notes String
    Additional notes on changes.
    nsxId String
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    policySecurityPolicyRuleId String
    profiles List<String>
    Set of profile paths relevant for this rule.
    scopes List<String>
    Set of policy object paths where the rule is applied.
    serviceEntries PolicySecurityPolicyRuleServiceEntries
    Set of explicit protocol/port service definition
    services List<String>
    Set of service paths to match.
    sourceGroups List<String>
    Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    sourcesExcluded Boolean
    A boolean value indicating negation of source groups.
    tags List<PolicySecurityPolicyRuleTag>
    A list of scope + tag pairs to associate with this policy.
    displayName string
    Display name of the resource.
    policyPath string
    The path of the Security Policy which the object belongs to
    sequenceNumber number
    This field is used to resolve conflicts between multiple Rules under Security or Gateway Policy for a Domain. Please note that sequence numbers should start with 1 and not 0 to avoid confusion.
    action string
    Rule action, one of ALLOW, DROP, REJECT and JUMP_TO_APPLICATION. Default is ALLOW. JUMP_TO_APPLICATION is only applicable in Environment category.
    context PolicySecurityPolicyRuleContext
    The context which the object belongs to. If it's not provided, it will be derived from policy_path.
    description string
    Description of the resource.
    destinationGroups string[]
    Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    destinationsExcluded boolean
    A boolean value indicating negation of destination groups.
    direction string
    Traffic direction, one of IN, OUT or IN_OUT. Default is IN_OUT.
    disabled boolean
    Flag to disable this rule. Default is false.
    ipVersion string
    Version of IP protocol, one of NONE, IPV4, IPV6, IPV4_IPV6. Default is IPV4_IPV6. For Ethernet category rules, use NONE value.
    logLabel string
    Additional information (string) which will be propagated to the rule syslog.
    logged boolean
    Flag to enable packet logging. Default is false.
    notes string
    Additional notes on changes.
    nsxId string
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    policySecurityPolicyRuleId string
    profiles string[]
    Set of profile paths relevant for this rule.
    scopes string[]
    Set of policy object paths where the rule is applied.
    serviceEntries PolicySecurityPolicyRuleServiceEntries
    Set of explicit protocol/port service definition
    services string[]
    Set of service paths to match.
    sourceGroups string[]
    Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    sourcesExcluded boolean
    A boolean value indicating negation of source groups.
    tags PolicySecurityPolicyRuleTag[]
    A list of scope + tag pairs to associate with this policy.
    display_name str
    Display name of the resource.
    policy_path str
    The path of the Security Policy which the object belongs to
    sequence_number float
    This field is used to resolve conflicts between multiple Rules under Security or Gateway Policy for a Domain. Please note that sequence numbers should start with 1 and not 0 to avoid confusion.
    action str
    Rule action, one of ALLOW, DROP, REJECT and JUMP_TO_APPLICATION. Default is ALLOW. JUMP_TO_APPLICATION is only applicable in Environment category.
    context PolicySecurityPolicyRuleContextArgs
    The context which the object belongs to. If it's not provided, it will be derived from policy_path.
    description str
    Description of the resource.
    destination_groups Sequence[str]
    Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    destinations_excluded bool
    A boolean value indicating negation of destination groups.
    direction str
    Traffic direction, one of IN, OUT or IN_OUT. Default is IN_OUT.
    disabled bool
    Flag to disable this rule. Default is false.
    ip_version str
    Version of IP protocol, one of NONE, IPV4, IPV6, IPV4_IPV6. Default is IPV4_IPV6. For Ethernet category rules, use NONE value.
    log_label str
    Additional information (string) which will be propagated to the rule syslog.
    logged bool
    Flag to enable packet logging. Default is false.
    notes str
    Additional notes on changes.
    nsx_id str
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    policy_security_policy_rule_id str
    profiles Sequence[str]
    Set of profile paths relevant for this rule.
    scopes Sequence[str]
    Set of policy object paths where the rule is applied.
    service_entries PolicySecurityPolicyRuleServiceEntriesArgs
    Set of explicit protocol/port service definition
    services Sequence[str]
    Set of service paths to match.
    source_groups Sequence[str]
    Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    sources_excluded bool
    A boolean value indicating negation of source groups.
    tags Sequence[PolicySecurityPolicyRuleTagArgs]
    A list of scope + tag pairs to associate with this policy.
    displayName String
    Display name of the resource.
    policyPath String
    The path of the Security Policy which the object belongs to
    sequenceNumber Number
    This field is used to resolve conflicts between multiple Rules under Security or Gateway Policy for a Domain. Please note that sequence numbers should start with 1 and not 0 to avoid confusion.
    action String
    Rule action, one of ALLOW, DROP, REJECT and JUMP_TO_APPLICATION. Default is ALLOW. JUMP_TO_APPLICATION is only applicable in Environment category.
    context Property Map
    The context which the object belongs to. If it's not provided, it will be derived from policy_path.
    description String
    Description of the resource.
    destinationGroups List<String>
    Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    destinationsExcluded Boolean
    A boolean value indicating negation of destination groups.
    direction String
    Traffic direction, one of IN, OUT or IN_OUT. Default is IN_OUT.
    disabled Boolean
    Flag to disable this rule. Default is false.
    ipVersion String
    Version of IP protocol, one of NONE, IPV4, IPV6, IPV4_IPV6. Default is IPV4_IPV6. For Ethernet category rules, use NONE value.
    logLabel String
    Additional information (string) which will be propagated to the rule syslog.
    logged Boolean
    Flag to enable packet logging. Default is false.
    notes String
    Additional notes on changes.
    nsxId String
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    policySecurityPolicyRuleId String
    profiles List<String>
    Set of profile paths relevant for this rule.
    scopes List<String>
    Set of policy object paths where the rule is applied.
    serviceEntries Property Map
    Set of explicit protocol/port service definition
    services List<String>
    Set of service paths to match.
    sourceGroups List<String>
    Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    sourcesExcluded Boolean
    A boolean value indicating negation of source groups.
    tags List<Property Map>
    A list of scope + tag pairs to associate with this policy.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PolicySecurityPolicyRule 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. This attribute can be useful for debugging.
    RuleId 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. This attribute can be useful for debugging.
    RuleId 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 Double
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    ruleId 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. This attribute can be useful for debugging.
    ruleId number
    Unique positive number that is assigned by the system and is useful for debugging.
    id str
    The provider-assigned unique ID for this managed resource.
    path str
    The NSX path of the policy resource.
    revision float
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    rule_id float
    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. This attribute can be useful for debugging.
    ruleId Number
    Unique positive number that is assigned by the system and is useful for debugging.

    Look up Existing PolicySecurityPolicyRule Resource

    Get an existing PolicySecurityPolicyRule 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?: PolicySecurityPolicyRuleState, opts?: CustomResourceOptions): PolicySecurityPolicyRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            context: Optional[PolicySecurityPolicyRuleContextArgs] = 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,
            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_path: Optional[str] = None,
            policy_security_policy_rule_id: Optional[str] = None,
            profiles: Optional[Sequence[str]] = None,
            revision: Optional[float] = None,
            rule_id: Optional[float] = None,
            scopes: Optional[Sequence[str]] = None,
            sequence_number: Optional[float] = None,
            service_entries: Optional[PolicySecurityPolicyRuleServiceEntriesArgs] = None,
            services: Optional[Sequence[str]] = None,
            source_groups: Optional[Sequence[str]] = None,
            sources_excluded: Optional[bool] = None,
            tags: Optional[Sequence[PolicySecurityPolicyRuleTagArgs]] = None) -> PolicySecurityPolicyRule
    func GetPolicySecurityPolicyRule(ctx *Context, name string, id IDInput, state *PolicySecurityPolicyRuleState, opts ...ResourceOption) (*PolicySecurityPolicyRule, error)
    public static PolicySecurityPolicyRule Get(string name, Input<string> id, PolicySecurityPolicyRuleState? state, CustomResourceOptions? opts = null)
    public static PolicySecurityPolicyRule get(String name, Output<String> id, PolicySecurityPolicyRuleState state, CustomResourceOptions options)
    resources:  _:    type: nsxt:PolicySecurityPolicyRule    get:      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.
    The following state arguments are supported:
    Action string
    Rule action, one of ALLOW, DROP, REJECT and JUMP_TO_APPLICATION. Default is ALLOW. JUMP_TO_APPLICATION is only applicable in Environment category.
    Context PolicySecurityPolicyRuleContext
    The context which the object belongs to. If it's not provided, it will be derived from policy_path.
    Description string
    Description of the resource.
    DestinationGroups List<string>
    Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    DestinationsExcluded bool
    A boolean value indicating negation of destination groups.
    Direction string
    Traffic direction, one of IN, OUT or IN_OUT. Default is IN_OUT.
    Disabled bool
    Flag to disable this rule. Default is false.
    DisplayName string
    Display name of the resource.
    IpVersion string
    Version of IP protocol, one of NONE, IPV4, IPV6, IPV4_IPV6. Default is IPV4_IPV6. For Ethernet category rules, use NONE value.
    LogLabel string
    Additional information (string) which will be propagated to the rule syslog.
    Logged bool
    Flag to enable packet logging. Default is false.
    Notes string
    Additional notes on changes.
    NsxId 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.
    PolicyPath string
    The path of the Security Policy which the object belongs to
    PolicySecurityPolicyRuleId string
    Profiles List<string>
    Set of profile paths relevant for this rule.
    Revision double
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    RuleId double
    Unique positive number that is assigned by the system and is useful for debugging.
    Scopes List<string>
    Set of policy object paths where the rule is applied.
    SequenceNumber double
    This field is used to resolve conflicts between multiple Rules under Security or Gateway Policy for a Domain. Please note that sequence numbers should start with 1 and not 0 to avoid confusion.
    ServiceEntries PolicySecurityPolicyRuleServiceEntries
    Set of explicit protocol/port service definition
    Services List<string>
    Set of service paths to match.
    SourceGroups List<string>
    Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    SourcesExcluded bool
    A boolean value indicating negation of source groups.
    Tags List<PolicySecurityPolicyRuleTag>
    A list of scope + tag pairs to associate with this policy.
    Action string
    Rule action, one of ALLOW, DROP, REJECT and JUMP_TO_APPLICATION. Default is ALLOW. JUMP_TO_APPLICATION is only applicable in Environment category.
    Context PolicySecurityPolicyRuleContextArgs
    The context which the object belongs to. If it's not provided, it will be derived from policy_path.
    Description string
    Description of the resource.
    DestinationGroups []string
    Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    DestinationsExcluded bool
    A boolean value indicating negation of destination groups.
    Direction string
    Traffic direction, one of IN, OUT or IN_OUT. Default is IN_OUT.
    Disabled bool
    Flag to disable this rule. Default is false.
    DisplayName string
    Display name of the resource.
    IpVersion string
    Version of IP protocol, one of NONE, IPV4, IPV6, IPV4_IPV6. Default is IPV4_IPV6. For Ethernet category rules, use NONE value.
    LogLabel string
    Additional information (string) which will be propagated to the rule syslog.
    Logged bool
    Flag to enable packet logging. Default is false.
    Notes string
    Additional notes on changes.
    NsxId 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.
    PolicyPath string
    The path of the Security Policy which the object belongs to
    PolicySecurityPolicyRuleId string
    Profiles []string
    Set of profile paths relevant for this rule.
    Revision float64
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    RuleId float64
    Unique positive number that is assigned by the system and is useful for debugging.
    Scopes []string
    Set of policy object paths where the rule is applied.
    SequenceNumber float64
    This field is used to resolve conflicts between multiple Rules under Security or Gateway Policy for a Domain. Please note that sequence numbers should start with 1 and not 0 to avoid confusion.
    ServiceEntries PolicySecurityPolicyRuleServiceEntriesArgs
    Set of explicit protocol/port service definition
    Services []string
    Set of service paths to match.
    SourceGroups []string
    Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    SourcesExcluded bool
    A boolean value indicating negation of source groups.
    Tags []PolicySecurityPolicyRuleTagArgs
    A list of scope + tag pairs to associate with this policy.
    action String
    Rule action, one of ALLOW, DROP, REJECT and JUMP_TO_APPLICATION. Default is ALLOW. JUMP_TO_APPLICATION is only applicable in Environment category.
    context PolicySecurityPolicyRuleContext
    The context which the object belongs to. If it's not provided, it will be derived from policy_path.
    description String
    Description of the resource.
    destinationGroups List<String>
    Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    destinationsExcluded Boolean
    A boolean value indicating negation of destination groups.
    direction String
    Traffic direction, one of IN, OUT or IN_OUT. Default is IN_OUT.
    disabled Boolean
    Flag to disable this rule. Default is false.
    displayName String
    Display name of the resource.
    ipVersion String
    Version of IP protocol, one of NONE, IPV4, IPV6, IPV4_IPV6. Default is IPV4_IPV6. For Ethernet category rules, use NONE value.
    logLabel String
    Additional information (string) which will be propagated to the rule syslog.
    logged Boolean
    Flag to enable packet logging. Default is false.
    notes String
    Additional notes on changes.
    nsxId 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.
    policyPath String
    The path of the Security Policy which the object belongs to
    policySecurityPolicyRuleId String
    profiles List<String>
    Set of profile paths relevant for this rule.
    revision Double
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    ruleId Double
    Unique positive number that is assigned by the system and is useful for debugging.
    scopes List<String>
    Set of policy object paths where the rule is applied.
    sequenceNumber Double
    This field is used to resolve conflicts between multiple Rules under Security or Gateway Policy for a Domain. Please note that sequence numbers should start with 1 and not 0 to avoid confusion.
    serviceEntries PolicySecurityPolicyRuleServiceEntries
    Set of explicit protocol/port service definition
    services List<String>
    Set of service paths to match.
    sourceGroups List<String>
    Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    sourcesExcluded Boolean
    A boolean value indicating negation of source groups.
    tags List<PolicySecurityPolicyRuleTag>
    A list of scope + tag pairs to associate with this policy.
    action string
    Rule action, one of ALLOW, DROP, REJECT and JUMP_TO_APPLICATION. Default is ALLOW. JUMP_TO_APPLICATION is only applicable in Environment category.
    context PolicySecurityPolicyRuleContext
    The context which the object belongs to. If it's not provided, it will be derived from policy_path.
    description string
    Description of the resource.
    destinationGroups string[]
    Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    destinationsExcluded boolean
    A boolean value indicating negation of destination groups.
    direction string
    Traffic direction, one of IN, OUT or IN_OUT. Default is IN_OUT.
    disabled boolean
    Flag to disable this rule. Default is false.
    displayName string
    Display name of the resource.
    ipVersion string
    Version of IP protocol, one of NONE, IPV4, IPV6, IPV4_IPV6. Default is IPV4_IPV6. For Ethernet category rules, use NONE value.
    logLabel string
    Additional information (string) which will be propagated to the rule syslog.
    logged boolean
    Flag to enable packet logging. Default is false.
    notes string
    Additional notes on changes.
    nsxId 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.
    policyPath string
    The path of the Security Policy which the object belongs to
    policySecurityPolicyRuleId string
    profiles string[]
    Set of profile paths relevant for this rule.
    revision number
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    ruleId number
    Unique positive number that is assigned by the system and is useful for debugging.
    scopes string[]
    Set of policy object paths where the rule is applied.
    sequenceNumber number
    This field is used to resolve conflicts between multiple Rules under Security or Gateway Policy for a Domain. Please note that sequence numbers should start with 1 and not 0 to avoid confusion.
    serviceEntries PolicySecurityPolicyRuleServiceEntries
    Set of explicit protocol/port service definition
    services string[]
    Set of service paths to match.
    sourceGroups string[]
    Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    sourcesExcluded boolean
    A boolean value indicating negation of source groups.
    tags PolicySecurityPolicyRuleTag[]
    A list of scope + tag pairs to associate with this policy.
    action str
    Rule action, one of ALLOW, DROP, REJECT and JUMP_TO_APPLICATION. Default is ALLOW. JUMP_TO_APPLICATION is only applicable in Environment category.
    context PolicySecurityPolicyRuleContextArgs
    The context which the object belongs to. If it's not provided, it will be derived from policy_path.
    description str
    Description of the resource.
    destination_groups Sequence[str]
    Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    destinations_excluded bool
    A boolean value indicating negation of destination groups.
    direction str
    Traffic direction, one of IN, OUT or IN_OUT. Default is IN_OUT.
    disabled bool
    Flag to disable this rule. Default is false.
    display_name str
    Display name of the resource.
    ip_version str
    Version of IP protocol, one of NONE, IPV4, IPV6, IPV4_IPV6. Default is IPV4_IPV6. For Ethernet category rules, use NONE value.
    log_label str
    Additional information (string) which will be propagated to the rule syslog.
    logged bool
    Flag to enable packet logging. Default is false.
    notes str
    Additional notes on changes.
    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_path str
    The path of the Security Policy which the object belongs to
    policy_security_policy_rule_id str
    profiles Sequence[str]
    Set of profile paths relevant for this rule.
    revision float
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    rule_id float
    Unique positive number that is assigned by the system and is useful for debugging.
    scopes Sequence[str]
    Set of policy object paths where the rule is applied.
    sequence_number float
    This field is used to resolve conflicts between multiple Rules under Security or Gateway Policy for a Domain. Please note that sequence numbers should start with 1 and not 0 to avoid confusion.
    service_entries PolicySecurityPolicyRuleServiceEntriesArgs
    Set of explicit protocol/port service definition
    services Sequence[str]
    Set of service paths to match.
    source_groups Sequence[str]
    Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    sources_excluded bool
    A boolean value indicating negation of source groups.
    tags Sequence[PolicySecurityPolicyRuleTagArgs]
    A list of scope + tag pairs to associate with this policy.
    action String
    Rule action, one of ALLOW, DROP, REJECT and JUMP_TO_APPLICATION. Default is ALLOW. JUMP_TO_APPLICATION is only applicable in Environment category.
    context Property Map
    The context which the object belongs to. If it's not provided, it will be derived from policy_path.
    description String
    Description of the resource.
    destinationGroups List<String>
    Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    destinationsExcluded Boolean
    A boolean value indicating negation of destination groups.
    direction String
    Traffic direction, one of IN, OUT or IN_OUT. Default is IN_OUT.
    disabled Boolean
    Flag to disable this rule. Default is false.
    displayName String
    Display name of the resource.
    ipVersion String
    Version of IP protocol, one of NONE, IPV4, IPV6, IPV4_IPV6. Default is IPV4_IPV6. For Ethernet category rules, use NONE value.
    logLabel String
    Additional information (string) which will be propagated to the rule syslog.
    logged Boolean
    Flag to enable packet logging. Default is false.
    notes String
    Additional notes on changes.
    nsxId 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.
    policyPath String
    The path of the Security Policy which the object belongs to
    policySecurityPolicyRuleId String
    profiles List<String>
    Set of profile paths relevant for this rule.
    revision Number
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    ruleId Number
    Unique positive number that is assigned by the system and is useful for debugging.
    scopes List<String>
    Set of policy object paths where the rule is applied.
    sequenceNumber Number
    This field is used to resolve conflicts between multiple Rules under Security or Gateway Policy for a Domain. Please note that sequence numbers should start with 1 and not 0 to avoid confusion.
    serviceEntries Property Map
    Set of explicit protocol/port service definition
    services List<String>
    Set of service paths to match.
    sourceGroups List<String>
    Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
    sourcesExcluded Boolean
    A boolean value indicating negation of source groups.
    tags List<Property Map>
    A list of scope + tag pairs to associate with this policy.

    Supporting Types

    PolicySecurityPolicyRuleContext, PolicySecurityPolicyRuleContextArgs

    ProjectId string
    The ID of the project which the object belongs to
    ProjectId string
    The ID of the project which the object belongs to
    projectId String
    The ID of the project which the object belongs to
    projectId string
    The ID of the project which the object belongs to
    project_id str
    The ID of the project which the object belongs to
    projectId String
    The ID of the project which the object belongs to

    PolicySecurityPolicyRuleServiceEntries, PolicySecurityPolicyRuleServiceEntriesArgs

    algorithmEntries List<Property Map>
    Set of Algorithm type service entries
    etherTypeEntries List<Property Map>
    Set of Ether type service entries
    icmpEntries List<Property Map>
    Set of ICMP type service entries
    igmpEntries List<Property Map>
    Set of IGMP type service entries
    ipProtocolEntries List<Property Map>
    Set of IP Protocol type service entries
    l4PortSetEntries List<Property Map>
    Set of L4 ports set service entries

    PolicySecurityPolicyRuleServiceEntriesAlgorithmEntry, PolicySecurityPolicyRuleServiceEntriesAlgorithmEntryArgs

    Algorithm string
    Algorithm: one of ORACLE_TNS, FTP, SUN_RPC_TCP, SUN_RPC_UDP, MS_RPC_TCP, MS_RPC_UDP, NBNS_BROADCAST(Deprecated), NBDG_BROADCAST(Deprecated), TFTP
    DestinationPort string
    a single destination port
    Description string
    Description of the resource.
    DisplayName string
    Display name of the service entry
    SourcePorts List<string>
    Set of source ports/ranges
    Algorithm string
    Algorithm: one of ORACLE_TNS, FTP, SUN_RPC_TCP, SUN_RPC_UDP, MS_RPC_TCP, MS_RPC_UDP, NBNS_BROADCAST(Deprecated), NBDG_BROADCAST(Deprecated), TFTP
    DestinationPort string
    a single destination port
    Description string
    Description of the resource.
    DisplayName string
    Display name of the service entry
    SourcePorts []string
    Set of source ports/ranges
    algorithm String
    Algorithm: one of ORACLE_TNS, FTP, SUN_RPC_TCP, SUN_RPC_UDP, MS_RPC_TCP, MS_RPC_UDP, NBNS_BROADCAST(Deprecated), NBDG_BROADCAST(Deprecated), TFTP
    destinationPort String
    a single destination port
    description String
    Description of the resource.
    displayName String
    Display name of the service entry
    sourcePorts List<String>
    Set of source ports/ranges
    algorithm string
    Algorithm: one of ORACLE_TNS, FTP, SUN_RPC_TCP, SUN_RPC_UDP, MS_RPC_TCP, MS_RPC_UDP, NBNS_BROADCAST(Deprecated), NBDG_BROADCAST(Deprecated), TFTP
    destinationPort string
    a single destination port
    description string
    Description of the resource.
    displayName string
    Display name of the service entry
    sourcePorts string[]
    Set of source ports/ranges
    algorithm str
    Algorithm: one of ORACLE_TNS, FTP, SUN_RPC_TCP, SUN_RPC_UDP, MS_RPC_TCP, MS_RPC_UDP, NBNS_BROADCAST(Deprecated), NBDG_BROADCAST(Deprecated), TFTP
    destination_port str
    a single destination port
    description str
    Description of the resource.
    display_name str
    Display name of the service entry
    source_ports Sequence[str]
    Set of source ports/ranges
    algorithm String
    Algorithm: one of ORACLE_TNS, FTP, SUN_RPC_TCP, SUN_RPC_UDP, MS_RPC_TCP, MS_RPC_UDP, NBNS_BROADCAST(Deprecated), NBDG_BROADCAST(Deprecated), TFTP
    destinationPort String
    a single destination port
    description String
    Description of the resource.
    displayName String
    Display name of the service entry
    sourcePorts List<String>
    Set of source ports/ranges

    PolicySecurityPolicyRuleServiceEntriesEtherTypeEntry, PolicySecurityPolicyRuleServiceEntriesEtherTypeEntryArgs

    EtherType double
    Type of the encapsulated protocol
    Description string
    Description of the resource.
    DisplayName string
    Display name of the service entry
    EtherType float64
    Type of the encapsulated protocol
    Description string
    Description of the resource.
    DisplayName string
    Display name of the service entry
    etherType Double
    Type of the encapsulated protocol
    description String
    Description of the resource.
    displayName String
    Display name of the service entry
    etherType number
    Type of the encapsulated protocol
    description string
    Description of the resource.
    displayName string
    Display name of the service entry
    ether_type float
    Type of the encapsulated protocol
    description str
    Description of the resource.
    display_name str
    Display name of the service entry
    etherType Number
    Type of the encapsulated protocol
    description String
    Description of the resource.
    displayName String
    Display name of the service entry

    PolicySecurityPolicyRuleServiceEntriesIcmpEntry, PolicySecurityPolicyRuleServiceEntriesIcmpEntryArgs

    Protocol string
    Version of ICMP protocol: ICMPv4 or ICMPv6
    Description string
    Description of the resource.
    DisplayName string
    Display name of the service entry
    IcmpCode string
    ICMP message code
    IcmpType string
    ICMP message type
    Protocol string
    Version of ICMP protocol: ICMPv4 or ICMPv6
    Description string
    Description of the resource.
    DisplayName string
    Display name of the service entry
    IcmpCode string
    ICMP message code
    IcmpType string
    ICMP message type
    protocol String
    Version of ICMP protocol: ICMPv4 or ICMPv6
    description String
    Description of the resource.
    displayName String
    Display name of the service entry
    icmpCode String
    ICMP message code
    icmpType String
    ICMP message type
    protocol string
    Version of ICMP protocol: ICMPv4 or ICMPv6
    description string
    Description of the resource.
    displayName string
    Display name of the service entry
    icmpCode string
    ICMP message code
    icmpType string
    ICMP message type
    protocol str
    Version of ICMP protocol: ICMPv4 or ICMPv6
    description str
    Description of the resource.
    display_name str
    Display name of the service entry
    icmp_code str
    ICMP message code
    icmp_type str
    ICMP message type
    protocol String
    Version of ICMP protocol: ICMPv4 or ICMPv6
    description String
    Description of the resource.
    displayName String
    Display name of the service entry
    icmpCode String
    ICMP message code
    icmpType String
    ICMP message type

    PolicySecurityPolicyRuleServiceEntriesIgmpEntry, PolicySecurityPolicyRuleServiceEntriesIgmpEntryArgs

    Description string
    Description of the resource.
    DisplayName string
    Display name of the service entry
    Description string
    Description of the resource.
    DisplayName string
    Display name of the service entry
    description String
    Description of the resource.
    displayName String
    Display name of the service entry
    description string
    Description of the resource.
    displayName string
    Display name of the service entry
    description str
    Description of the resource.
    display_name str
    Display name of the service entry
    description String
    Description of the resource.
    displayName String
    Display name of the service entry

    PolicySecurityPolicyRuleServiceEntriesIpProtocolEntry, PolicySecurityPolicyRuleServiceEntriesIpProtocolEntryArgs

    Protocol double
    IP protocol number
    Description string
    Description of the resource.
    DisplayName string
    Display name of the service entry
    Protocol float64
    IP protocol number
    Description string
    Description of the resource.
    DisplayName string
    Display name of the service entry
    protocol Double
    IP protocol number
    description String
    Description of the resource.
    displayName String
    Display name of the service entry
    protocol number
    IP protocol number
    description string
    Description of the resource.
    displayName string
    Display name of the service entry
    protocol float
    IP protocol number
    description str
    Description of the resource.
    display_name str
    Display name of the service entry
    protocol Number
    IP protocol number
    description String
    Description of the resource.
    displayName String
    Display name of the service entry

    PolicySecurityPolicyRuleServiceEntriesL4PortSetEntry, PolicySecurityPolicyRuleServiceEntriesL4PortSetEntryArgs

    Protocol string
    L4 protocol: TCP or UDP
    Description string
    Description of the resource.
    DestinationPorts List<string>
    Set of destination ports
    DisplayName string
    Display name of the service entry
    SourcePorts List<string>
    Set of source ports
    Protocol string
    L4 protocol: TCP or UDP
    Description string
    Description of the resource.
    DestinationPorts []string
    Set of destination ports
    DisplayName string
    Display name of the service entry
    SourcePorts []string
    Set of source ports
    protocol String
    L4 protocol: TCP or UDP
    description String
    Description of the resource.
    destinationPorts List<String>
    Set of destination ports
    displayName String
    Display name of the service entry
    sourcePorts List<String>
    Set of source ports
    protocol string
    L4 protocol: TCP or UDP
    description string
    Description of the resource.
    destinationPorts string[]
    Set of destination ports
    displayName string
    Display name of the service entry
    sourcePorts string[]
    Set of source ports
    protocol str
    L4 protocol: TCP or UDP
    description str
    Description of the resource.
    destination_ports Sequence[str]
    Set of destination ports
    display_name str
    Display name of the service entry
    source_ports Sequence[str]
    Set of source ports
    protocol String
    L4 protocol: TCP or UDP
    description String
    Description of the resource.
    destinationPorts List<String>
    Set of destination ports
    displayName String
    Display name of the service entry
    sourcePorts List<String>
    Set of source ports

    PolicySecurityPolicyRuleTag, PolicySecurityPolicyRuleTagArgs

    Scope string
    Set of policy object paths where the rule is applied.
    Tag string
    A list of scope + tag pairs to associate with this policy.
    Scope string
    Set of policy object paths where the rule is applied.
    Tag string
    A list of scope + tag pairs to associate with this policy.
    scope String
    Set of policy object paths where the rule is applied.
    tag String
    A list of scope + tag pairs to associate with this policy.
    scope string
    Set of policy object paths where the rule is applied.
    tag string
    A list of scope + tag pairs to associate with this policy.
    scope str
    Set of policy object paths where the rule is applied.
    tag str
    A list of scope + tag pairs to associate with this policy.
    scope String
    Set of policy object paths where the rule is applied.
    tag String
    A list of scope + tag pairs to associate with this policy.

    Package Details

    Repository
    nsxt vmware/terraform-provider-nsxt
    License
    Notes
    This Pulumi package is based on the nsxt Terraform Provider.
    nsxt logo
    nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware