1. Packages
  2. Ibm Provider
  3. API Docs
  4. PiNetworkSecurityGroupRule
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.PiNetworkSecurityGroupRule

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Add or remove a network security group rule.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const networkSecurityGroupRule = new ibm.PiNetworkSecurityGroupRule("networkSecurityGroupRule", {
        piAction: "allow",
        piCloudInstanceId: "<value of the cloud_instance_id>",
        piDestinationPorts: {
            maximum: 37466,
            minimum: 1200,
        },
        piNetworkSecurityGroupId: "<value of network_security_group_id>",
        piProtocol: {
            tcpFlags: [
                {
                    flag: "ack",
                },
                {
                    flag: "syn",
                },
                {
                    flag: "psh",
                },
            ],
            type: "tcp",
        },
        piRemote: {
            id: "<value of remote_id>",
            type: "network-security-group",
        },
        piSourcePorts: {
            maximum: 19500,
            minimum: 1000,
        },
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    network_security_group_rule = ibm.PiNetworkSecurityGroupRule("networkSecurityGroupRule",
        pi_action="allow",
        pi_cloud_instance_id="<value of the cloud_instance_id>",
        pi_destination_ports={
            "maximum": 37466,
            "minimum": 1200,
        },
        pi_network_security_group_id="<value of network_security_group_id>",
        pi_protocol={
            "tcp_flags": [
                {
                    "flag": "ack",
                },
                {
                    "flag": "syn",
                },
                {
                    "flag": "psh",
                },
            ],
            "type": "tcp",
        },
        pi_remote={
            "id": "<value of remote_id>",
            "type": "network-security-group",
        },
        pi_source_ports={
            "maximum": 19500,
            "minimum": 1000,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.NewPiNetworkSecurityGroupRule(ctx, "networkSecurityGroupRule", &ibm.PiNetworkSecurityGroupRuleArgs{
    			PiAction:          pulumi.String("allow"),
    			PiCloudInstanceId: pulumi.String("<value of the cloud_instance_id>"),
    			PiDestinationPorts: &ibm.PiNetworkSecurityGroupRulePiDestinationPortsArgs{
    				Maximum: pulumi.Float64(37466),
    				Minimum: pulumi.Float64(1200),
    			},
    			PiNetworkSecurityGroupId: pulumi.String("<value of network_security_group_id>"),
    			PiProtocol: &ibm.PiNetworkSecurityGroupRulePiProtocolArgs{
    				TcpFlags: ibm.PiNetworkSecurityGroupRulePiProtocolTcpFlagArray{
    					&ibm.PiNetworkSecurityGroupRulePiProtocolTcpFlagArgs{
    						Flag: pulumi.String("ack"),
    					},
    					&ibm.PiNetworkSecurityGroupRulePiProtocolTcpFlagArgs{
    						Flag: pulumi.String("syn"),
    					},
    					&ibm.PiNetworkSecurityGroupRulePiProtocolTcpFlagArgs{
    						Flag: pulumi.String("psh"),
    					},
    				},
    				Type: pulumi.String("tcp"),
    			},
    			PiRemote: &ibm.PiNetworkSecurityGroupRulePiRemoteArgs{
    				Id:   pulumi.String("<value of remote_id>"),
    				Type: pulumi.String("network-security-group"),
    			},
    			PiSourcePorts: &ibm.PiNetworkSecurityGroupRulePiSourcePortsArgs{
    				Maximum: pulumi.Float64(19500),
    				Minimum: pulumi.Float64(1000),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var networkSecurityGroupRule = new Ibm.PiNetworkSecurityGroupRule("networkSecurityGroupRule", new()
        {
            PiAction = "allow",
            PiCloudInstanceId = "<value of the cloud_instance_id>",
            PiDestinationPorts = new Ibm.Inputs.PiNetworkSecurityGroupRulePiDestinationPortsArgs
            {
                Maximum = 37466,
                Minimum = 1200,
            },
            PiNetworkSecurityGroupId = "<value of network_security_group_id>",
            PiProtocol = new Ibm.Inputs.PiNetworkSecurityGroupRulePiProtocolArgs
            {
                TcpFlags = new[]
                {
                    new Ibm.Inputs.PiNetworkSecurityGroupRulePiProtocolTcpFlagArgs
                    {
                        Flag = "ack",
                    },
                    new Ibm.Inputs.PiNetworkSecurityGroupRulePiProtocolTcpFlagArgs
                    {
                        Flag = "syn",
                    },
                    new Ibm.Inputs.PiNetworkSecurityGroupRulePiProtocolTcpFlagArgs
                    {
                        Flag = "psh",
                    },
                },
                Type = "tcp",
            },
            PiRemote = new Ibm.Inputs.PiNetworkSecurityGroupRulePiRemoteArgs
            {
                Id = "<value of remote_id>",
                Type = "network-security-group",
            },
            PiSourcePorts = new Ibm.Inputs.PiNetworkSecurityGroupRulePiSourcePortsArgs
            {
                Maximum = 19500,
                Minimum = 1000,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.PiNetworkSecurityGroupRule;
    import com.pulumi.ibm.PiNetworkSecurityGroupRuleArgs;
    import com.pulumi.ibm.inputs.PiNetworkSecurityGroupRulePiDestinationPortsArgs;
    import com.pulumi.ibm.inputs.PiNetworkSecurityGroupRulePiProtocolArgs;
    import com.pulumi.ibm.inputs.PiNetworkSecurityGroupRulePiRemoteArgs;
    import com.pulumi.ibm.inputs.PiNetworkSecurityGroupRulePiSourcePortsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var networkSecurityGroupRule = new PiNetworkSecurityGroupRule("networkSecurityGroupRule", PiNetworkSecurityGroupRuleArgs.builder()
                .piAction("allow")
                .piCloudInstanceId("<value of the cloud_instance_id>")
                .piDestinationPorts(PiNetworkSecurityGroupRulePiDestinationPortsArgs.builder()
                    .maximum(37466)
                    .minimum(1200)
                    .build())
                .piNetworkSecurityGroupId("<value of network_security_group_id>")
                .piProtocol(PiNetworkSecurityGroupRulePiProtocolArgs.builder()
                    .tcpFlags(                
                        PiNetworkSecurityGroupRulePiProtocolTcpFlagArgs.builder()
                            .flag("ack")
                            .build(),
                        PiNetworkSecurityGroupRulePiProtocolTcpFlagArgs.builder()
                            .flag("syn")
                            .build(),
                        PiNetworkSecurityGroupRulePiProtocolTcpFlagArgs.builder()
                            .flag("psh")
                            .build())
                    .type("tcp")
                    .build())
                .piRemote(PiNetworkSecurityGroupRulePiRemoteArgs.builder()
                    .id("<value of remote_id>")
                    .type("network-security-group")
                    .build())
                .piSourcePorts(PiNetworkSecurityGroupRulePiSourcePortsArgs.builder()
                    .maximum(19500)
                    .minimum(1000)
                    .build())
                .build());
    
        }
    }
    
    resources:
      networkSecurityGroupRule:
        type: ibm:PiNetworkSecurityGroupRule
        properties:
          piAction: allow
          piCloudInstanceId: <value of the cloud_instance_id>
          piDestinationPorts:
            maximum: 37466
            minimum: 1200
          piNetworkSecurityGroupId: <value of network_security_group_id>
          piProtocol:
            tcpFlags:
              - flag: ack
              - flag: syn
              - flag: psh
            type: tcp
          piRemote:
            id: <value of remote_id>
            type: network-security-group
          piSourcePorts:
            maximum: 19500
            minimum: 1000
    

    Notes

    • Please find supported Regions for endpoints.
    • If a Power cloud instance is provisioned at lon04, The provider level attributes should be as follows:
      • region - lon
      • zone - lon04

    Example usage:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
        }
    }
    
    {}
    

    Example

    terraform import ibm_pi_network_security_group_rule.example d7bec597-4726-451f-8a63-e62e6f19c32c/cea6651a-bc0a-4438-9f8a-a0770bbf3ebb
    

    Create PiNetworkSecurityGroupRule Resource

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

    Constructor syntax

    new PiNetworkSecurityGroupRule(name: string, args: PiNetworkSecurityGroupRuleArgs, opts?: CustomResourceOptions);
    @overload
    def PiNetworkSecurityGroupRule(resource_name: str,
                                   args: PiNetworkSecurityGroupRuleInitArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def PiNetworkSecurityGroupRule(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   pi_cloud_instance_id: Optional[str] = None,
                                   pi_network_security_group_id: Optional[str] = None,
                                   ibm_pi_network_security_group_rule_id: Optional[str] = None,
                                   pi_action: Optional[str] = None,
                                   pi_destination_port: Optional[PiNetworkSecurityGroupRulePiDestinationPortArgs] = None,
                                   pi_destination_ports: Optional[PiNetworkSecurityGroupRulePiDestinationPortsArgs] = None,
                                   pi_network_security_group_rule_id: Optional[str] = None,
                                   pi_protocol: Optional[PiNetworkSecurityGroupRulePiProtocolArgs] = None,
                                   pi_remote: Optional[PiNetworkSecurityGroupRulePiRemoteArgs] = None,
                                   pi_source_port: Optional[PiNetworkSecurityGroupRulePiSourcePortArgs] = None,
                                   pi_source_ports: Optional[PiNetworkSecurityGroupRulePiSourcePortsArgs] = None,
                                   timeouts: Optional[PiNetworkSecurityGroupRuleTimeoutsArgs] = None)
    func NewPiNetworkSecurityGroupRule(ctx *Context, name string, args PiNetworkSecurityGroupRuleArgs, opts ...ResourceOption) (*PiNetworkSecurityGroupRule, error)
    public PiNetworkSecurityGroupRule(string name, PiNetworkSecurityGroupRuleArgs args, CustomResourceOptions? opts = null)
    public PiNetworkSecurityGroupRule(String name, PiNetworkSecurityGroupRuleArgs args)
    public PiNetworkSecurityGroupRule(String name, PiNetworkSecurityGroupRuleArgs args, CustomResourceOptions options)
    
    type: ibm:PiNetworkSecurityGroupRule
    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 PiNetworkSecurityGroupRuleArgs
    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 PiNetworkSecurityGroupRuleInitArgs
    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 PiNetworkSecurityGroupRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PiNetworkSecurityGroupRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PiNetworkSecurityGroupRuleArgs
    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 piNetworkSecurityGroupRuleResource = new Ibm.PiNetworkSecurityGroupRule("piNetworkSecurityGroupRuleResource", new()
    {
        PiCloudInstanceId = "string",
        PiNetworkSecurityGroupId = "string",
        IbmPiNetworkSecurityGroupRuleId = "string",
        PiAction = "string",
        PiDestinationPort = new Ibm.Inputs.PiNetworkSecurityGroupRulePiDestinationPortArgs
        {
            Maximum = 0,
            Minimum = 0,
        },
        PiNetworkSecurityGroupRuleId = "string",
        PiProtocol = new Ibm.Inputs.PiNetworkSecurityGroupRulePiProtocolArgs
        {
            Type = "string",
            IcmpType = "string",
            TcpFlags = new[]
            {
                new Ibm.Inputs.PiNetworkSecurityGroupRulePiProtocolTcpFlagArgs
                {
                    Flag = "string",
                },
            },
        },
        PiRemote = new Ibm.Inputs.PiNetworkSecurityGroupRulePiRemoteArgs
        {
            Id = "string",
            Type = "string",
        },
        PiSourcePort = new Ibm.Inputs.PiNetworkSecurityGroupRulePiSourcePortArgs
        {
            Maximum = 0,
            Minimum = 0,
        },
        Timeouts = new Ibm.Inputs.PiNetworkSecurityGroupRuleTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
    });
    
    example, err := ibm.NewPiNetworkSecurityGroupRule(ctx, "piNetworkSecurityGroupRuleResource", &ibm.PiNetworkSecurityGroupRuleArgs{
    	PiCloudInstanceId:               pulumi.String("string"),
    	PiNetworkSecurityGroupId:        pulumi.String("string"),
    	IbmPiNetworkSecurityGroupRuleId: pulumi.String("string"),
    	PiAction:                        pulumi.String("string"),
    	PiDestinationPort: &ibm.PiNetworkSecurityGroupRulePiDestinationPortArgs{
    		Maximum: pulumi.Float64(0),
    		Minimum: pulumi.Float64(0),
    	},
    	PiNetworkSecurityGroupRuleId: pulumi.String("string"),
    	PiProtocol: &ibm.PiNetworkSecurityGroupRulePiProtocolArgs{
    		Type:     pulumi.String("string"),
    		IcmpType: pulumi.String("string"),
    		TcpFlags: ibm.PiNetworkSecurityGroupRulePiProtocolTcpFlagArray{
    			&ibm.PiNetworkSecurityGroupRulePiProtocolTcpFlagArgs{
    				Flag: pulumi.String("string"),
    			},
    		},
    	},
    	PiRemote: &ibm.PiNetworkSecurityGroupRulePiRemoteArgs{
    		Id:   pulumi.String("string"),
    		Type: pulumi.String("string"),
    	},
    	PiSourcePort: &ibm.PiNetworkSecurityGroupRulePiSourcePortArgs{
    		Maximum: pulumi.Float64(0),
    		Minimum: pulumi.Float64(0),
    	},
    	Timeouts: &ibm.PiNetworkSecurityGroupRuleTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    })
    
    var piNetworkSecurityGroupRuleResource = new PiNetworkSecurityGroupRule("piNetworkSecurityGroupRuleResource", PiNetworkSecurityGroupRuleArgs.builder()
        .piCloudInstanceId("string")
        .piNetworkSecurityGroupId("string")
        .ibmPiNetworkSecurityGroupRuleId("string")
        .piAction("string")
        .piDestinationPort(PiNetworkSecurityGroupRulePiDestinationPortArgs.builder()
            .maximum(0)
            .minimum(0)
            .build())
        .piNetworkSecurityGroupRuleId("string")
        .piProtocol(PiNetworkSecurityGroupRulePiProtocolArgs.builder()
            .type("string")
            .icmpType("string")
            .tcpFlags(PiNetworkSecurityGroupRulePiProtocolTcpFlagArgs.builder()
                .flag("string")
                .build())
            .build())
        .piRemote(PiNetworkSecurityGroupRulePiRemoteArgs.builder()
            .id("string")
            .type("string")
            .build())
        .piSourcePort(PiNetworkSecurityGroupRulePiSourcePortArgs.builder()
            .maximum(0)
            .minimum(0)
            .build())
        .timeouts(PiNetworkSecurityGroupRuleTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .build());
    
    pi_network_security_group_rule_resource = ibm.PiNetworkSecurityGroupRule("piNetworkSecurityGroupRuleResource",
        pi_cloud_instance_id="string",
        pi_network_security_group_id="string",
        ibm_pi_network_security_group_rule_id="string",
        pi_action="string",
        pi_destination_port={
            "maximum": 0,
            "minimum": 0,
        },
        pi_network_security_group_rule_id="string",
        pi_protocol={
            "type": "string",
            "icmp_type": "string",
            "tcp_flags": [{
                "flag": "string",
            }],
        },
        pi_remote={
            "id": "string",
            "type": "string",
        },
        pi_source_port={
            "maximum": 0,
            "minimum": 0,
        },
        timeouts={
            "create": "string",
            "delete": "string",
        })
    
    const piNetworkSecurityGroupRuleResource = new ibm.PiNetworkSecurityGroupRule("piNetworkSecurityGroupRuleResource", {
        piCloudInstanceId: "string",
        piNetworkSecurityGroupId: "string",
        ibmPiNetworkSecurityGroupRuleId: "string",
        piAction: "string",
        piDestinationPort: {
            maximum: 0,
            minimum: 0,
        },
        piNetworkSecurityGroupRuleId: "string",
        piProtocol: {
            type: "string",
            icmpType: "string",
            tcpFlags: [{
                flag: "string",
            }],
        },
        piRemote: {
            id: "string",
            type: "string",
        },
        piSourcePort: {
            maximum: 0,
            minimum: 0,
        },
        timeouts: {
            create: "string",
            "delete": "string",
        },
    });
    
    type: ibm:PiNetworkSecurityGroupRule
    properties:
        ibmPiNetworkSecurityGroupRuleId: string
        piAction: string
        piCloudInstanceId: string
        piDestinationPort:
            maximum: 0
            minimum: 0
        piNetworkSecurityGroupId: string
        piNetworkSecurityGroupRuleId: string
        piProtocol:
            icmpType: string
            tcpFlags:
                - flag: string
            type: string
        piRemote:
            id: string
            type: string
        piSourcePort:
            maximum: 0
            minimum: 0
        timeouts:
            create: string
            delete: string
    

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

    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiNetworkSecurityGroupId string
    The unique identifier of the network security group.
    IbmPiNetworkSecurityGroupRuleId string
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    PiAction string
    The action to take if the rule matches network traffic. Supported values are: allow, deny. Required if pi_network_security_group_rule_id is not provided.
    PiDestinationPort PiNetworkSecurityGroupRulePiDestinationPort

    The list of destination port.

    Nested schema for pi_destination_port:

    PiDestinationPorts PiNetworkSecurityGroupRulePiDestinationPorts

    The list of destination port. Deprecated, please use pi_destination_port.

    Nested schema for pi_destination_ports:

    Deprecated: Deprecated

    PiNetworkSecurityGroupRuleId string
    The network security group rule id to remove. Required if none of the other optional fields are provided.
    PiProtocol PiNetworkSecurityGroupRulePiProtocol

    The list of protocol. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_protocol:

    PiRemote PiNetworkSecurityGroupRulePiRemote

    List of remote. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_remote:

    PiSourcePort PiNetworkSecurityGroupRulePiSourcePort

    List of source port

    Nested schema for pi_source_port:

    PiSourcePorts PiNetworkSecurityGroupRulePiSourcePorts

    List of source port. Deprecated, please use pi_source_port.

    Nested schema for pi_source_ports:

    Deprecated: Deprecated

    Timeouts PiNetworkSecurityGroupRuleTimeouts
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiNetworkSecurityGroupId string
    The unique identifier of the network security group.
    IbmPiNetworkSecurityGroupRuleId string
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    PiAction string
    The action to take if the rule matches network traffic. Supported values are: allow, deny. Required if pi_network_security_group_rule_id is not provided.
    PiDestinationPort PiNetworkSecurityGroupRulePiDestinationPortArgs

    The list of destination port.

    Nested schema for pi_destination_port:

    PiDestinationPorts PiNetworkSecurityGroupRulePiDestinationPortsArgs

    The list of destination port. Deprecated, please use pi_destination_port.

    Nested schema for pi_destination_ports:

    Deprecated: Deprecated

    PiNetworkSecurityGroupRuleId string
    The network security group rule id to remove. Required if none of the other optional fields are provided.
    PiProtocol PiNetworkSecurityGroupRulePiProtocolArgs

    The list of protocol. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_protocol:

    PiRemote PiNetworkSecurityGroupRulePiRemoteArgs

    List of remote. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_remote:

    PiSourcePort PiNetworkSecurityGroupRulePiSourcePortArgs

    List of source port

    Nested schema for pi_source_port:

    PiSourcePorts PiNetworkSecurityGroupRulePiSourcePortsArgs

    List of source port. Deprecated, please use pi_source_port.

    Nested schema for pi_source_ports:

    Deprecated: Deprecated

    Timeouts PiNetworkSecurityGroupRuleTimeoutsArgs
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piNetworkSecurityGroupId String
    The unique identifier of the network security group.
    ibmPiNetworkSecurityGroupRuleId String
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    piAction String
    The action to take if the rule matches network traffic. Supported values are: allow, deny. Required if pi_network_security_group_rule_id is not provided.
    piDestinationPort PiNetworkSecurityGroupRulePiDestinationPort

    The list of destination port.

    Nested schema for pi_destination_port:

    piDestinationPorts PiNetworkSecurityGroupRulePiDestinationPorts

    The list of destination port. Deprecated, please use pi_destination_port.

    Nested schema for pi_destination_ports:

    Deprecated: Deprecated

    piNetworkSecurityGroupRuleId String
    The network security group rule id to remove. Required if none of the other optional fields are provided.
    piProtocol PiNetworkSecurityGroupRulePiProtocol

    The list of protocol. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_protocol:

    piRemote PiNetworkSecurityGroupRulePiRemote

    List of remote. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_remote:

    piSourcePort PiNetworkSecurityGroupRulePiSourcePort

    List of source port

    Nested schema for pi_source_port:

    piSourcePorts PiNetworkSecurityGroupRulePiSourcePorts

    List of source port. Deprecated, please use pi_source_port.

    Nested schema for pi_source_ports:

    Deprecated: Deprecated

    timeouts PiNetworkSecurityGroupRuleTimeouts
    piCloudInstanceId string
    The GUID of the service instance associated with an account.
    piNetworkSecurityGroupId string
    The unique identifier of the network security group.
    ibmPiNetworkSecurityGroupRuleId string
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    piAction string
    The action to take if the rule matches network traffic. Supported values are: allow, deny. Required if pi_network_security_group_rule_id is not provided.
    piDestinationPort PiNetworkSecurityGroupRulePiDestinationPort

    The list of destination port.

    Nested schema for pi_destination_port:

    piDestinationPorts PiNetworkSecurityGroupRulePiDestinationPorts

    The list of destination port. Deprecated, please use pi_destination_port.

    Nested schema for pi_destination_ports:

    Deprecated: Deprecated

    piNetworkSecurityGroupRuleId string
    The network security group rule id to remove. Required if none of the other optional fields are provided.
    piProtocol PiNetworkSecurityGroupRulePiProtocol

    The list of protocol. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_protocol:

    piRemote PiNetworkSecurityGroupRulePiRemote

    List of remote. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_remote:

    piSourcePort PiNetworkSecurityGroupRulePiSourcePort

    List of source port

    Nested schema for pi_source_port:

    piSourcePorts PiNetworkSecurityGroupRulePiSourcePorts

    List of source port. Deprecated, please use pi_source_port.

    Nested schema for pi_source_ports:

    Deprecated: Deprecated

    timeouts PiNetworkSecurityGroupRuleTimeouts
    pi_cloud_instance_id str
    The GUID of the service instance associated with an account.
    pi_network_security_group_id str
    The unique identifier of the network security group.
    ibm_pi_network_security_group_rule_id str
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    pi_action str
    The action to take if the rule matches network traffic. Supported values are: allow, deny. Required if pi_network_security_group_rule_id is not provided.
    pi_destination_port PiNetworkSecurityGroupRulePiDestinationPortArgs

    The list of destination port.

    Nested schema for pi_destination_port:

    pi_destination_ports PiNetworkSecurityGroupRulePiDestinationPortsArgs

    The list of destination port. Deprecated, please use pi_destination_port.

    Nested schema for pi_destination_ports:

    Deprecated: Deprecated

    pi_network_security_group_rule_id str
    The network security group rule id to remove. Required if none of the other optional fields are provided.
    pi_protocol PiNetworkSecurityGroupRulePiProtocolArgs

    The list of protocol. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_protocol:

    pi_remote PiNetworkSecurityGroupRulePiRemoteArgs

    List of remote. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_remote:

    pi_source_port PiNetworkSecurityGroupRulePiSourcePortArgs

    List of source port

    Nested schema for pi_source_port:

    pi_source_ports PiNetworkSecurityGroupRulePiSourcePortsArgs

    List of source port. Deprecated, please use pi_source_port.

    Nested schema for pi_source_ports:

    Deprecated: Deprecated

    timeouts PiNetworkSecurityGroupRuleTimeoutsArgs
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piNetworkSecurityGroupId String
    The unique identifier of the network security group.
    ibmPiNetworkSecurityGroupRuleId String
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    piAction String
    The action to take if the rule matches network traffic. Supported values are: allow, deny. Required if pi_network_security_group_rule_id is not provided.
    piDestinationPort Property Map

    The list of destination port.

    Nested schema for pi_destination_port:

    piDestinationPorts Property Map

    The list of destination port. Deprecated, please use pi_destination_port.

    Nested schema for pi_destination_ports:

    Deprecated: Deprecated

    piNetworkSecurityGroupRuleId String
    The network security group rule id to remove. Required if none of the other optional fields are provided.
    piProtocol Property Map

    The list of protocol. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_protocol:

    piRemote Property Map

    List of remote. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_remote:

    piSourcePort Property Map

    List of source port

    Nested schema for pi_source_port:

    piSourcePorts Property Map

    List of source port. Deprecated, please use pi_source_port.

    Nested schema for pi_source_ports:

    Deprecated: Deprecated

    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PiNetworkSecurityGroupRule resource produces the following output properties:

    Crn string
    (String) The network security group's crn.
    Default bool
    (Boolean) Indicates if the network security group is the default network security group in the workspace.
    Id string
    The provider-assigned unique ID for this managed resource.
    Members List<PiNetworkSecurityGroupRuleMember>
    (List) The list of IPv4 addresses and\or network interfaces in the network security group.
    Name string
    (String) The unique name of the network security group rule.
    NetworkSecurityGroupId string
    (String) The unique identifier of the network security group.
    Rules List<PiNetworkSecurityGroupRuleRule>
    (List) The list of rules in the network security group.
    UserTags List<string>
    (List) List of user tags attached to the resource.
    Crn string
    (String) The network security group's crn.
    Default bool
    (Boolean) Indicates if the network security group is the default network security group in the workspace.
    Id string
    The provider-assigned unique ID for this managed resource.
    Members []PiNetworkSecurityGroupRuleMember
    (List) The list of IPv4 addresses and\or network interfaces in the network security group.
    Name string
    (String) The unique name of the network security group rule.
    NetworkSecurityGroupId string
    (String) The unique identifier of the network security group.
    Rules []PiNetworkSecurityGroupRuleRule
    (List) The list of rules in the network security group.
    UserTags []string
    (List) List of user tags attached to the resource.
    crn String
    (String) The network security group's crn.
    default_ Boolean
    (Boolean) Indicates if the network security group is the default network security group in the workspace.
    id String
    The provider-assigned unique ID for this managed resource.
    members List<PiNetworkSecurityGroupRuleMember>
    (List) The list of IPv4 addresses and\or network interfaces in the network security group.
    name String
    (String) The unique name of the network security group rule.
    networkSecurityGroupId String
    (String) The unique identifier of the network security group.
    rules List<PiNetworkSecurityGroupRuleRule>
    (List) The list of rules in the network security group.
    userTags List<String>
    (List) List of user tags attached to the resource.
    crn string
    (String) The network security group's crn.
    default boolean
    (Boolean) Indicates if the network security group is the default network security group in the workspace.
    id string
    The provider-assigned unique ID for this managed resource.
    members PiNetworkSecurityGroupRuleMember[]
    (List) The list of IPv4 addresses and\or network interfaces in the network security group.
    name string
    (String) The unique name of the network security group rule.
    networkSecurityGroupId string
    (String) The unique identifier of the network security group.
    rules PiNetworkSecurityGroupRuleRule[]
    (List) The list of rules in the network security group.
    userTags string[]
    (List) List of user tags attached to the resource.
    crn str
    (String) The network security group's crn.
    default bool
    (Boolean) Indicates if the network security group is the default network security group in the workspace.
    id str
    The provider-assigned unique ID for this managed resource.
    members Sequence[PiNetworkSecurityGroupRuleMember]
    (List) The list of IPv4 addresses and\or network interfaces in the network security group.
    name str
    (String) The unique name of the network security group rule.
    network_security_group_id str
    (String) The unique identifier of the network security group.
    rules Sequence[PiNetworkSecurityGroupRuleRule]
    (List) The list of rules in the network security group.
    user_tags Sequence[str]
    (List) List of user tags attached to the resource.
    crn String
    (String) The network security group's crn.
    default Boolean
    (Boolean) Indicates if the network security group is the default network security group in the workspace.
    id String
    The provider-assigned unique ID for this managed resource.
    members List<Property Map>
    (List) The list of IPv4 addresses and\or network interfaces in the network security group.
    name String
    (String) The unique name of the network security group rule.
    networkSecurityGroupId String
    (String) The unique identifier of the network security group.
    rules List<Property Map>
    (List) The list of rules in the network security group.
    userTags List<String>
    (List) List of user tags attached to the resource.

    Look up Existing PiNetworkSecurityGroupRule Resource

    Get an existing PiNetworkSecurityGroupRule 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?: PiNetworkSecurityGroupRuleState, opts?: CustomResourceOptions): PiNetworkSecurityGroupRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            crn: Optional[str] = None,
            default: Optional[bool] = None,
            ibm_pi_network_security_group_rule_id: Optional[str] = None,
            members: Optional[Sequence[PiNetworkSecurityGroupRuleMemberArgs]] = None,
            name: Optional[str] = None,
            network_security_group_id: Optional[str] = None,
            pi_action: Optional[str] = None,
            pi_cloud_instance_id: Optional[str] = None,
            pi_destination_port: Optional[PiNetworkSecurityGroupRulePiDestinationPortArgs] = None,
            pi_destination_ports: Optional[PiNetworkSecurityGroupRulePiDestinationPortsArgs] = None,
            pi_network_security_group_id: Optional[str] = None,
            pi_network_security_group_rule_id: Optional[str] = None,
            pi_protocol: Optional[PiNetworkSecurityGroupRulePiProtocolArgs] = None,
            pi_remote: Optional[PiNetworkSecurityGroupRulePiRemoteArgs] = None,
            pi_source_port: Optional[PiNetworkSecurityGroupRulePiSourcePortArgs] = None,
            pi_source_ports: Optional[PiNetworkSecurityGroupRulePiSourcePortsArgs] = None,
            rules: Optional[Sequence[PiNetworkSecurityGroupRuleRuleArgs]] = None,
            timeouts: Optional[PiNetworkSecurityGroupRuleTimeoutsArgs] = None,
            user_tags: Optional[Sequence[str]] = None) -> PiNetworkSecurityGroupRule
    func GetPiNetworkSecurityGroupRule(ctx *Context, name string, id IDInput, state *PiNetworkSecurityGroupRuleState, opts ...ResourceOption) (*PiNetworkSecurityGroupRule, error)
    public static PiNetworkSecurityGroupRule Get(string name, Input<string> id, PiNetworkSecurityGroupRuleState? state, CustomResourceOptions? opts = null)
    public static PiNetworkSecurityGroupRule get(String name, Output<String> id, PiNetworkSecurityGroupRuleState state, CustomResourceOptions options)
    resources:  _:    type: ibm:PiNetworkSecurityGroupRule    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:
    Crn string
    (String) The network security group's crn.
    Default bool
    (Boolean) Indicates if the network security group is the default network security group in the workspace.
    IbmPiNetworkSecurityGroupRuleId string
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    Members List<PiNetworkSecurityGroupRuleMember>
    (List) The list of IPv4 addresses and\or network interfaces in the network security group.
    Name string
    (String) The unique name of the network security group rule.
    NetworkSecurityGroupId string
    (String) The unique identifier of the network security group.
    PiAction string
    The action to take if the rule matches network traffic. Supported values are: allow, deny. Required if pi_network_security_group_rule_id is not provided.
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiDestinationPort PiNetworkSecurityGroupRulePiDestinationPort

    The list of destination port.

    Nested schema for pi_destination_port:

    PiDestinationPorts PiNetworkSecurityGroupRulePiDestinationPorts

    The list of destination port. Deprecated, please use pi_destination_port.

    Nested schema for pi_destination_ports:

    Deprecated: Deprecated

    PiNetworkSecurityGroupId string
    The unique identifier of the network security group.
    PiNetworkSecurityGroupRuleId string
    The network security group rule id to remove. Required if none of the other optional fields are provided.
    PiProtocol PiNetworkSecurityGroupRulePiProtocol

    The list of protocol. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_protocol:

    PiRemote PiNetworkSecurityGroupRulePiRemote

    List of remote. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_remote:

    PiSourcePort PiNetworkSecurityGroupRulePiSourcePort

    List of source port

    Nested schema for pi_source_port:

    PiSourcePorts PiNetworkSecurityGroupRulePiSourcePorts

    List of source port. Deprecated, please use pi_source_port.

    Nested schema for pi_source_ports:

    Deprecated: Deprecated

    Rules List<PiNetworkSecurityGroupRuleRule>
    (List) The list of rules in the network security group.
    Timeouts PiNetworkSecurityGroupRuleTimeouts
    UserTags List<string>
    (List) List of user tags attached to the resource.
    Crn string
    (String) The network security group's crn.
    Default bool
    (Boolean) Indicates if the network security group is the default network security group in the workspace.
    IbmPiNetworkSecurityGroupRuleId string
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    Members []PiNetworkSecurityGroupRuleMemberArgs
    (List) The list of IPv4 addresses and\or network interfaces in the network security group.
    Name string
    (String) The unique name of the network security group rule.
    NetworkSecurityGroupId string
    (String) The unique identifier of the network security group.
    PiAction string
    The action to take if the rule matches network traffic. Supported values are: allow, deny. Required if pi_network_security_group_rule_id is not provided.
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiDestinationPort PiNetworkSecurityGroupRulePiDestinationPortArgs

    The list of destination port.

    Nested schema for pi_destination_port:

    PiDestinationPorts PiNetworkSecurityGroupRulePiDestinationPortsArgs

    The list of destination port. Deprecated, please use pi_destination_port.

    Nested schema for pi_destination_ports:

    Deprecated: Deprecated

    PiNetworkSecurityGroupId string
    The unique identifier of the network security group.
    PiNetworkSecurityGroupRuleId string
    The network security group rule id to remove. Required if none of the other optional fields are provided.
    PiProtocol PiNetworkSecurityGroupRulePiProtocolArgs

    The list of protocol. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_protocol:

    PiRemote PiNetworkSecurityGroupRulePiRemoteArgs

    List of remote. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_remote:

    PiSourcePort PiNetworkSecurityGroupRulePiSourcePortArgs

    List of source port

    Nested schema for pi_source_port:

    PiSourcePorts PiNetworkSecurityGroupRulePiSourcePortsArgs

    List of source port. Deprecated, please use pi_source_port.

    Nested schema for pi_source_ports:

    Deprecated: Deprecated

    Rules []PiNetworkSecurityGroupRuleRuleArgs
    (List) The list of rules in the network security group.
    Timeouts PiNetworkSecurityGroupRuleTimeoutsArgs
    UserTags []string
    (List) List of user tags attached to the resource.
    crn String
    (String) The network security group's crn.
    default_ Boolean
    (Boolean) Indicates if the network security group is the default network security group in the workspace.
    ibmPiNetworkSecurityGroupRuleId String
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    members List<PiNetworkSecurityGroupRuleMember>
    (List) The list of IPv4 addresses and\or network interfaces in the network security group.
    name String
    (String) The unique name of the network security group rule.
    networkSecurityGroupId String
    (String) The unique identifier of the network security group.
    piAction String
    The action to take if the rule matches network traffic. Supported values are: allow, deny. Required if pi_network_security_group_rule_id is not provided.
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piDestinationPort PiNetworkSecurityGroupRulePiDestinationPort

    The list of destination port.

    Nested schema for pi_destination_port:

    piDestinationPorts PiNetworkSecurityGroupRulePiDestinationPorts

    The list of destination port. Deprecated, please use pi_destination_port.

    Nested schema for pi_destination_ports:

    Deprecated: Deprecated

    piNetworkSecurityGroupId String
    The unique identifier of the network security group.
    piNetworkSecurityGroupRuleId String
    The network security group rule id to remove. Required if none of the other optional fields are provided.
    piProtocol PiNetworkSecurityGroupRulePiProtocol

    The list of protocol. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_protocol:

    piRemote PiNetworkSecurityGroupRulePiRemote

    List of remote. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_remote:

    piSourcePort PiNetworkSecurityGroupRulePiSourcePort

    List of source port

    Nested schema for pi_source_port:

    piSourcePorts PiNetworkSecurityGroupRulePiSourcePorts

    List of source port. Deprecated, please use pi_source_port.

    Nested schema for pi_source_ports:

    Deprecated: Deprecated

    rules List<PiNetworkSecurityGroupRuleRule>
    (List) The list of rules in the network security group.
    timeouts PiNetworkSecurityGroupRuleTimeouts
    userTags List<String>
    (List) List of user tags attached to the resource.
    crn string
    (String) The network security group's crn.
    default boolean
    (Boolean) Indicates if the network security group is the default network security group in the workspace.
    ibmPiNetworkSecurityGroupRuleId string
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    members PiNetworkSecurityGroupRuleMember[]
    (List) The list of IPv4 addresses and\or network interfaces in the network security group.
    name string
    (String) The unique name of the network security group rule.
    networkSecurityGroupId string
    (String) The unique identifier of the network security group.
    piAction string
    The action to take if the rule matches network traffic. Supported values are: allow, deny. Required if pi_network_security_group_rule_id is not provided.
    piCloudInstanceId string
    The GUID of the service instance associated with an account.
    piDestinationPort PiNetworkSecurityGroupRulePiDestinationPort

    The list of destination port.

    Nested schema for pi_destination_port:

    piDestinationPorts PiNetworkSecurityGroupRulePiDestinationPorts

    The list of destination port. Deprecated, please use pi_destination_port.

    Nested schema for pi_destination_ports:

    Deprecated: Deprecated

    piNetworkSecurityGroupId string
    The unique identifier of the network security group.
    piNetworkSecurityGroupRuleId string
    The network security group rule id to remove. Required if none of the other optional fields are provided.
    piProtocol PiNetworkSecurityGroupRulePiProtocol

    The list of protocol. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_protocol:

    piRemote PiNetworkSecurityGroupRulePiRemote

    List of remote. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_remote:

    piSourcePort PiNetworkSecurityGroupRulePiSourcePort

    List of source port

    Nested schema for pi_source_port:

    piSourcePorts PiNetworkSecurityGroupRulePiSourcePorts

    List of source port. Deprecated, please use pi_source_port.

    Nested schema for pi_source_ports:

    Deprecated: Deprecated

    rules PiNetworkSecurityGroupRuleRule[]
    (List) The list of rules in the network security group.
    timeouts PiNetworkSecurityGroupRuleTimeouts
    userTags string[]
    (List) List of user tags attached to the resource.
    crn str
    (String) The network security group's crn.
    default bool
    (Boolean) Indicates if the network security group is the default network security group in the workspace.
    ibm_pi_network_security_group_rule_id str
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    members Sequence[PiNetworkSecurityGroupRuleMemberArgs]
    (List) The list of IPv4 addresses and\or network interfaces in the network security group.
    name str
    (String) The unique name of the network security group rule.
    network_security_group_id str
    (String) The unique identifier of the network security group.
    pi_action str
    The action to take if the rule matches network traffic. Supported values are: allow, deny. Required if pi_network_security_group_rule_id is not provided.
    pi_cloud_instance_id str
    The GUID of the service instance associated with an account.
    pi_destination_port PiNetworkSecurityGroupRulePiDestinationPortArgs

    The list of destination port.

    Nested schema for pi_destination_port:

    pi_destination_ports PiNetworkSecurityGroupRulePiDestinationPortsArgs

    The list of destination port. Deprecated, please use pi_destination_port.

    Nested schema for pi_destination_ports:

    Deprecated: Deprecated

    pi_network_security_group_id str
    The unique identifier of the network security group.
    pi_network_security_group_rule_id str
    The network security group rule id to remove. Required if none of the other optional fields are provided.
    pi_protocol PiNetworkSecurityGroupRulePiProtocolArgs

    The list of protocol. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_protocol:

    pi_remote PiNetworkSecurityGroupRulePiRemoteArgs

    List of remote. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_remote:

    pi_source_port PiNetworkSecurityGroupRulePiSourcePortArgs

    List of source port

    Nested schema for pi_source_port:

    pi_source_ports PiNetworkSecurityGroupRulePiSourcePortsArgs

    List of source port. Deprecated, please use pi_source_port.

    Nested schema for pi_source_ports:

    Deprecated: Deprecated

    rules Sequence[PiNetworkSecurityGroupRuleRuleArgs]
    (List) The list of rules in the network security group.
    timeouts PiNetworkSecurityGroupRuleTimeoutsArgs
    user_tags Sequence[str]
    (List) List of user tags attached to the resource.
    crn String
    (String) The network security group's crn.
    default Boolean
    (Boolean) Indicates if the network security group is the default network security group in the workspace.
    ibmPiNetworkSecurityGroupRuleId String
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    members List<Property Map>
    (List) The list of IPv4 addresses and\or network interfaces in the network security group.
    name String
    (String) The unique name of the network security group rule.
    networkSecurityGroupId String
    (String) The unique identifier of the network security group.
    piAction String
    The action to take if the rule matches network traffic. Supported values are: allow, deny. Required if pi_network_security_group_rule_id is not provided.
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piDestinationPort Property Map

    The list of destination port.

    Nested schema for pi_destination_port:

    piDestinationPorts Property Map

    The list of destination port. Deprecated, please use pi_destination_port.

    Nested schema for pi_destination_ports:

    Deprecated: Deprecated

    piNetworkSecurityGroupId String
    The unique identifier of the network security group.
    piNetworkSecurityGroupRuleId String
    The network security group rule id to remove. Required if none of the other optional fields are provided.
    piProtocol Property Map

    The list of protocol. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_protocol:

    piRemote Property Map

    List of remote. Required if pi_network_security_group_rule_id is not provided.

    Nested schema for pi_remote:

    piSourcePort Property Map

    List of source port

    Nested schema for pi_source_port:

    piSourcePorts Property Map

    List of source port. Deprecated, please use pi_source_port.

    Nested schema for pi_source_ports:

    Deprecated: Deprecated

    rules List<Property Map>
    (List) The list of rules in the network security group.
    timeouts Property Map
    userTags List<String>
    (List) List of user tags attached to the resource.

    Supporting Types

    PiNetworkSecurityGroupRuleMember, PiNetworkSecurityGroupRuleMemberArgs

    Id string
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    MacAddress string
    (String) The mac address of a network interface included if the type is network-interface.
    NetworkInterfaceId string
    (String) The network ID of a network interface included if the type is network-interface.
    Target string
    (String) If ipv4-address type, then IPv4 address or if network-interface type, then network interface id.
    Type string
    (String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    Id string
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    MacAddress string
    (String) The mac address of a network interface included if the type is network-interface.
    NetworkInterfaceId string
    (String) The network ID of a network interface included if the type is network-interface.
    Target string
    (String) If ipv4-address type, then IPv4 address or if network-interface type, then network interface id.
    Type string
    (String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    id String
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    macAddress String
    (String) The mac address of a network interface included if the type is network-interface.
    networkInterfaceId String
    (String) The network ID of a network interface included if the type is network-interface.
    target String
    (String) If ipv4-address type, then IPv4 address or if network-interface type, then network interface id.
    type String
    (String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    id string
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    macAddress string
    (String) The mac address of a network interface included if the type is network-interface.
    networkInterfaceId string
    (String) The network ID of a network interface included if the type is network-interface.
    target string
    (String) If ipv4-address type, then IPv4 address or if network-interface type, then network interface id.
    type string
    (String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    id str
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    mac_address str
    (String) The mac address of a network interface included if the type is network-interface.
    network_interface_id str
    (String) The network ID of a network interface included if the type is network-interface.
    target str
    (String) If ipv4-address type, then IPv4 address or if network-interface type, then network interface id.
    type str
    (String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    id String
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    macAddress String
    (String) The mac address of a network interface included if the type is network-interface.
    networkInterfaceId String
    (String) The network ID of a network interface included if the type is network-interface.
    target String
    (String) If ipv4-address type, then IPv4 address or if network-interface type, then network interface id.
    type String
    (String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.

    PiNetworkSecurityGroupRulePiDestinationPort, PiNetworkSecurityGroupRulePiDestinationPortArgs

    Maximum double
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    Minimum double
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    Maximum float64
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    Minimum float64
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum Double
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum Double
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum number
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum number
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum float
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum float
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum Number
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum Number
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.

    PiNetworkSecurityGroupRulePiDestinationPorts, PiNetworkSecurityGroupRulePiDestinationPortsArgs

    Maximum double
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    Minimum double
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    Maximum float64
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    Minimum float64
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum Double
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum Double
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum number
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum number
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum float
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum float
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum Number
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum Number
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.

    PiNetworkSecurityGroupRulePiProtocol, PiNetworkSecurityGroupRulePiProtocolArgs

    Type string
    The protocol of the network traffic. Supported values are: icmp, tcp, udp, all.
    IcmpType string
    If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched. Supported values are: all, destination-unreach, echo, echo-reply, source-quench, time-exceeded.
    TcpFlags List<PiNetworkSecurityGroupRulePiProtocolTcpFlag>
    If tcp type, the list of TCP flags and if not present then all flags are matched. Supported values are: syn, ack, fin, rst.
    Type string
    The protocol of the network traffic. Supported values are: icmp, tcp, udp, all.
    IcmpType string
    If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched. Supported values are: all, destination-unreach, echo, echo-reply, source-quench, time-exceeded.
    TcpFlags []PiNetworkSecurityGroupRulePiProtocolTcpFlag
    If tcp type, the list of TCP flags and if not present then all flags are matched. Supported values are: syn, ack, fin, rst.
    type String
    The protocol of the network traffic. Supported values are: icmp, tcp, udp, all.
    icmpType String
    If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched. Supported values are: all, destination-unreach, echo, echo-reply, source-quench, time-exceeded.
    tcpFlags List<PiNetworkSecurityGroupRulePiProtocolTcpFlag>
    If tcp type, the list of TCP flags and if not present then all flags are matched. Supported values are: syn, ack, fin, rst.
    type string
    The protocol of the network traffic. Supported values are: icmp, tcp, udp, all.
    icmpType string
    If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched. Supported values are: all, destination-unreach, echo, echo-reply, source-quench, time-exceeded.
    tcpFlags PiNetworkSecurityGroupRulePiProtocolTcpFlag[]
    If tcp type, the list of TCP flags and if not present then all flags are matched. Supported values are: syn, ack, fin, rst.
    type str
    The protocol of the network traffic. Supported values are: icmp, tcp, udp, all.
    icmp_type str
    If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched. Supported values are: all, destination-unreach, echo, echo-reply, source-quench, time-exceeded.
    tcp_flags Sequence[PiNetworkSecurityGroupRulePiProtocolTcpFlag]
    If tcp type, the list of TCP flags and if not present then all flags are matched. Supported values are: syn, ack, fin, rst.
    type String
    The protocol of the network traffic. Supported values are: icmp, tcp, udp, all.
    icmpType String
    If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched. Supported values are: all, destination-unreach, echo, echo-reply, source-quench, time-exceeded.
    tcpFlags List<Property Map>
    If tcp type, the list of TCP flags and if not present then all flags are matched. Supported values are: syn, ack, fin, rst.

    PiNetworkSecurityGroupRulePiProtocolTcpFlag, PiNetworkSecurityGroupRulePiProtocolTcpFlagArgs

    Flag string
    TCP flag.
    Flag string
    TCP flag.
    flag String
    TCP flag.
    flag string
    TCP flag.
    flag str
    TCP flag.
    flag String
    TCP flag.

    PiNetworkSecurityGroupRulePiRemote, PiNetworkSecurityGroupRulePiRemoteArgs

    Id string
    The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    Type string
    The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    Id string
    The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    Type string
    The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    id String
    The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    type String
    The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    id string
    The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    type string
    The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    id str
    The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    type str
    The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    id String
    The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    type String
    The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.

    PiNetworkSecurityGroupRulePiSourcePort, PiNetworkSecurityGroupRulePiSourcePortArgs

    Maximum double
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    Minimum double
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    Maximum float64
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    Minimum float64
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum Double
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum Double
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum number
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum number
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum float
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum float
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum Number
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum Number
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.

    PiNetworkSecurityGroupRulePiSourcePorts, PiNetworkSecurityGroupRulePiSourcePortsArgs

    Maximum double
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    Minimum double
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    Maximum float64
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    Minimum float64
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum Double
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum Double
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum number
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum number
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum float
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum float
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum Number
    The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum Number
    The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.

    PiNetworkSecurityGroupRuleRule, PiNetworkSecurityGroupRuleRuleArgs

    Action string
    (String) The action to take if the rule matches network traffic. Supported values are: allow, deny.
    DestinationPorts List<PiNetworkSecurityGroupRuleRuleDestinationPort>
    (List) The list of destination port.
    Id string
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    Protocols List<PiNetworkSecurityGroupRuleRuleProtocol>
    (List) The list of protocol.
    Remotes List<PiNetworkSecurityGroupRuleRuleRemote>
    (List) List of remote.
    SourcePorts List<PiNetworkSecurityGroupRuleRuleSourcePort>
    (List) List of source port
    Action string
    (String) The action to take if the rule matches network traffic. Supported values are: allow, deny.
    DestinationPorts []PiNetworkSecurityGroupRuleRuleDestinationPort
    (List) The list of destination port.
    Id string
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    Protocols []PiNetworkSecurityGroupRuleRuleProtocol
    (List) The list of protocol.
    Remotes []PiNetworkSecurityGroupRuleRuleRemote
    (List) List of remote.
    SourcePorts []PiNetworkSecurityGroupRuleRuleSourcePort
    (List) List of source port
    action String
    (String) The action to take if the rule matches network traffic. Supported values are: allow, deny.
    destinationPorts List<PiNetworkSecurityGroupRuleRuleDestinationPort>
    (List) The list of destination port.
    id String
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    protocols List<PiNetworkSecurityGroupRuleRuleProtocol>
    (List) The list of protocol.
    remotes List<PiNetworkSecurityGroupRuleRuleRemote>
    (List) List of remote.
    sourcePorts List<PiNetworkSecurityGroupRuleRuleSourcePort>
    (List) List of source port
    action string
    (String) The action to take if the rule matches network traffic. Supported values are: allow, deny.
    destinationPorts PiNetworkSecurityGroupRuleRuleDestinationPort[]
    (List) The list of destination port.
    id string
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    protocols PiNetworkSecurityGroupRuleRuleProtocol[]
    (List) The list of protocol.
    remotes PiNetworkSecurityGroupRuleRuleRemote[]
    (List) List of remote.
    sourcePorts PiNetworkSecurityGroupRuleRuleSourcePort[]
    (List) List of source port
    action str
    (String) The action to take if the rule matches network traffic. Supported values are: allow, deny.
    destination_ports Sequence[PiNetworkSecurityGroupRuleRuleDestinationPort]
    (List) The list of destination port.
    id str
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    protocols Sequence[PiNetworkSecurityGroupRuleRuleProtocol]
    (List) The list of protocol.
    remotes Sequence[PiNetworkSecurityGroupRuleRuleRemote]
    (List) List of remote.
    source_ports Sequence[PiNetworkSecurityGroupRuleRuleSourcePort]
    (List) List of source port
    action String
    (String) The action to take if the rule matches network traffic. Supported values are: allow, deny.
    destinationPorts List<Property Map>
    (List) The list of destination port.
    id String
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    protocols List<Property Map>
    (List) The list of protocol.
    remotes List<Property Map>
    (List) List of remote.
    sourcePorts List<Property Map>
    (List) List of source port

    PiNetworkSecurityGroupRuleRuleDestinationPort, PiNetworkSecurityGroupRuleRuleDestinationPortArgs

    Maximum double
    (Int) The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    Minimum double
    (Int) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    Maximum float64
    (Int) The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    Minimum float64
    (Int) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum Double
    (Int) The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum Double
    (Int) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum number
    (Int) The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum number
    (Int) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum float
    (Int) The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum float
    (Int) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum Number
    (Int) The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum Number
    (Int) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.

    PiNetworkSecurityGroupRuleRuleProtocol, PiNetworkSecurityGroupRuleRuleProtocolArgs

    IcmpType string
    (String) If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched. Supported values are: all, destination-unreach, echo, echo-reply, source-quench, time-exceeded.
    TcpFlags List<PiNetworkSecurityGroupRuleRuleProtocolTcpFlag>
    (String) If tcp type, the list of TCP flags and if not present then all flags are matched. Supported values are: syn, ack, fin, rst.
    Type string
    (String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    IcmpType string
    (String) If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched. Supported values are: all, destination-unreach, echo, echo-reply, source-quench, time-exceeded.
    TcpFlags []PiNetworkSecurityGroupRuleRuleProtocolTcpFlag
    (String) If tcp type, the list of TCP flags and if not present then all flags are matched. Supported values are: syn, ack, fin, rst.
    Type string
    (String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    icmpType String
    (String) If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched. Supported values are: all, destination-unreach, echo, echo-reply, source-quench, time-exceeded.
    tcpFlags List<PiNetworkSecurityGroupRuleRuleProtocolTcpFlag>
    (String) If tcp type, the list of TCP flags and if not present then all flags are matched. Supported values are: syn, ack, fin, rst.
    type String
    (String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    icmpType string
    (String) If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched. Supported values are: all, destination-unreach, echo, echo-reply, source-quench, time-exceeded.
    tcpFlags PiNetworkSecurityGroupRuleRuleProtocolTcpFlag[]
    (String) If tcp type, the list of TCP flags and if not present then all flags are matched. Supported values are: syn, ack, fin, rst.
    type string
    (String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    icmp_type str
    (String) If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched. Supported values are: all, destination-unreach, echo, echo-reply, source-quench, time-exceeded.
    tcp_flags Sequence[PiNetworkSecurityGroupRuleRuleProtocolTcpFlag]
    (String) If tcp type, the list of TCP flags and if not present then all flags are matched. Supported values are: syn, ack, fin, rst.
    type str
    (String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    icmpType String
    (String) If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched. Supported values are: all, destination-unreach, echo, echo-reply, source-quench, time-exceeded.
    tcpFlags List<Property Map>
    (String) If tcp type, the list of TCP flags and if not present then all flags are matched. Supported values are: syn, ack, fin, rst.
    type String
    (String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.

    PiNetworkSecurityGroupRuleRuleProtocolTcpFlag, PiNetworkSecurityGroupRuleRuleProtocolTcpFlagArgs

    Flag string
    Flag string
    flag String
    flag string
    flag str
    flag String

    PiNetworkSecurityGroupRuleRuleRemote, PiNetworkSecurityGroupRuleRuleRemoteArgs

    Id string
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    Type string
    (String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    Id string
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    Type string
    (String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    id String
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    type String
    (String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    id string
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    type string
    (String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    id str
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    type str
    (String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
    id String
    (String) The id of the remote network address group or network security group the rules apply to. Not required for default-network-address-group.
    type String
    (String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.

    PiNetworkSecurityGroupRuleRuleSourcePort, PiNetworkSecurityGroupRuleRuleSourcePortArgs

    Maximum double
    (Int) The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    Minimum double
    (Int) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    Maximum float64
    (Int) The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    Minimum float64
    (Int) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum Double
    (Int) The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum Double
    (Int) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum number
    (Int) The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum number
    (Int) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum float
    (Int) The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum float
    (Int) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
    maximum Number
    (Int) The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
    minimum Number
    (Int) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.

    PiNetworkSecurityGroupRuleTimeouts, PiNetworkSecurityGroupRuleTimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    The ibm_pi_network_security_group_rule resource can be imported by using cloud_instance_id, network_security_group_id and network_security_group_rule_id.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

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