ibm.PiNetworkSecurityGroupRule
Explore with Pulumi AI
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:
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Network stringSecurity Group Id - The unique identifier of the network security group.
- Ibm
Pi stringNetwork Security Group Rule 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.
- Pi
Action string - The action to take if the rule matches network traffic. Supported values are:
allow
,deny
. Required ifpi_network_security_group_rule_id
is not provided. - Pi
Destination PiPort Network Security Group Rule Pi Destination Port The list of destination port.
Nested schema for
pi_destination_port
:- Pi
Destination PiPorts Network Security Group Rule Pi Destination Ports The list of destination port. Deprecated, please use
pi_destination_port
.Nested schema for
pi_destination_ports
:- Pi
Network stringSecurity Group Rule Id - The network security group rule id to remove. Required if none of the other optional fields are provided.
- Pi
Protocol PiNetwork Security Group Rule Pi Protocol The list of protocol. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_protocol
:- Pi
Remote PiNetwork Security Group Rule Pi Remote List of remote. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_remote
:- Pi
Source PiPort Network Security Group Rule Pi Source Port List of source port
Nested schema for
pi_source_port
:- Pi
Source PiPorts Network Security Group Rule Pi Source Ports List of source port. Deprecated, please use
pi_source_port
.Nested schema for
pi_source_ports
:- Timeouts
Pi
Network Security Group Rule Timeouts
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Network stringSecurity Group Id - The unique identifier of the network security group.
- Ibm
Pi stringNetwork Security Group Rule 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.
- Pi
Action string - The action to take if the rule matches network traffic. Supported values are:
allow
,deny
. Required ifpi_network_security_group_rule_id
is not provided. - Pi
Destination PiPort Network Security Group Rule Pi Destination Port Args The list of destination port.
Nested schema for
pi_destination_port
:- Pi
Destination PiPorts Network Security Group Rule Pi Destination Ports Args The list of destination port. Deprecated, please use
pi_destination_port
.Nested schema for
pi_destination_ports
:- Pi
Network stringSecurity Group Rule Id - The network security group rule id to remove. Required if none of the other optional fields are provided.
- Pi
Protocol PiNetwork Security Group Rule Pi Protocol Args The list of protocol. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_protocol
:- Pi
Remote PiNetwork Security Group Rule Pi Remote Args List of remote. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_remote
:- Pi
Source PiPort Network Security Group Rule Pi Source Port Args List of source port
Nested schema for
pi_source_port
:- Pi
Source PiPorts Network Security Group Rule Pi Source Ports Args List of source port. Deprecated, please use
pi_source_port
.Nested schema for
pi_source_ports
:- Timeouts
Pi
Network Security Group Rule Timeouts Args
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Network StringSecurity Group Id - The unique identifier of the network security group.
- ibm
Pi StringNetwork Security Group Rule 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.
- pi
Action String - The action to take if the rule matches network traffic. Supported values are:
allow
,deny
. Required ifpi_network_security_group_rule_id
is not provided. - pi
Destination PiPort Network Security Group Rule Pi Destination Port The list of destination port.
Nested schema for
pi_destination_port
:- pi
Destination PiPorts Network Security Group Rule Pi Destination Ports The list of destination port. Deprecated, please use
pi_destination_port
.Nested schema for
pi_destination_ports
:- pi
Network StringSecurity Group Rule Id - The network security group rule id to remove. Required if none of the other optional fields are provided.
- pi
Protocol PiNetwork Security Group Rule Pi Protocol The list of protocol. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_protocol
:- pi
Remote PiNetwork Security Group Rule Pi Remote List of remote. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_remote
:- pi
Source PiPort Network Security Group Rule Pi Source Port List of source port
Nested schema for
pi_source_port
:- pi
Source PiPorts Network Security Group Rule Pi Source Ports List of source port. Deprecated, please use
pi_source_port
.Nested schema for
pi_source_ports
:- timeouts
Pi
Network Security Group Rule Timeouts
- pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- pi
Network stringSecurity Group Id - The unique identifier of the network security group.
- ibm
Pi stringNetwork Security Group Rule 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.
- pi
Action string - The action to take if the rule matches network traffic. Supported values are:
allow
,deny
. Required ifpi_network_security_group_rule_id
is not provided. - pi
Destination PiPort Network Security Group Rule Pi Destination Port The list of destination port.
Nested schema for
pi_destination_port
:- pi
Destination PiPorts Network Security Group Rule Pi Destination Ports The list of destination port. Deprecated, please use
pi_destination_port
.Nested schema for
pi_destination_ports
:- pi
Network stringSecurity Group Rule Id - The network security group rule id to remove. Required if none of the other optional fields are provided.
- pi
Protocol PiNetwork Security Group Rule Pi Protocol The list of protocol. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_protocol
:- pi
Remote PiNetwork Security Group Rule Pi Remote List of remote. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_remote
:- pi
Source PiPort Network Security Group Rule Pi Source Port List of source port
Nested schema for
pi_source_port
:- pi
Source PiPorts Network Security Group Rule Pi Source Ports List of source port. Deprecated, please use
pi_source_port
.Nested schema for
pi_source_ports
:- timeouts
Pi
Network Security Group Rule Timeouts
- pi_
cloud_ strinstance_ id - The GUID of the service instance associated with an account.
- pi_
network_ strsecurity_ group_ id - The unique identifier of the network security group.
- ibm_
pi_ strnetwork_ security_ group_ rule_ 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.
- pi_
action str - The action to take if the rule matches network traffic. Supported values are:
allow
,deny
. Required ifpi_network_security_group_rule_id
is not provided. - pi_
destination_ Piport Network Security Group Rule Pi Destination Port Args The list of destination port.
Nested schema for
pi_destination_port
:- pi_
destination_ Piports Network Security Group Rule Pi Destination Ports Args The list of destination port. Deprecated, please use
pi_destination_port
.Nested schema for
pi_destination_ports
:- pi_
network_ strsecurity_ group_ rule_ id - The network security group rule id to remove. Required if none of the other optional fields are provided.
- pi_
protocol PiNetwork Security Group Rule Pi Protocol Args The list of protocol. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_protocol
:- pi_
remote PiNetwork Security Group Rule Pi Remote Args List of remote. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_remote
:- pi_
source_ Piport Network Security Group Rule Pi Source Port Args List of source port
Nested schema for
pi_source_port
:- pi_
source_ Piports Network Security Group Rule Pi Source Ports Args List of source port. Deprecated, please use
pi_source_port
.Nested schema for
pi_source_ports
:- timeouts
Pi
Network Security Group Rule Timeouts Args
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Network StringSecurity Group Id - The unique identifier of the network security group.
- ibm
Pi StringNetwork Security Group Rule 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.
- pi
Action String - The action to take if the rule matches network traffic. Supported values are:
allow
,deny
. Required ifpi_network_security_group_rule_id
is not provided. - pi
Destination Property MapPort The list of destination port.
Nested schema for
pi_destination_port
:- pi
Destination Property MapPorts The list of destination port. Deprecated, please use
pi_destination_port
.Nested schema for
pi_destination_ports
:- pi
Network StringSecurity Group Rule Id - The network security group rule id to remove. Required if none of the other optional fields are provided.
- pi
Protocol Property Map The list of protocol. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_protocol
:- pi
Remote Property Map List of remote. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_remote
:- pi
Source Property MapPort List of source port
Nested schema for
pi_source_port
:- pi
Source Property MapPorts List of source port. Deprecated, please use
pi_source_port
.Nested schema for
pi_source_ports
:- 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<Pi
Network Security Group Rule Member> - (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.
- Network
Security stringGroup Id - (String) The unique identifier of the network security group.
- Rules
List<Pi
Network Security Group Rule Rule> - (List) The list of rules in the network security group.
- 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
[]Pi
Network Security Group Rule Member - (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.
- Network
Security stringGroup Id - (String) The unique identifier of the network security group.
- Rules
[]Pi
Network Security Group Rule Rule - (List) The list of rules in the network security group.
- []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<Pi
Network Security Group Rule Member> - (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.
- network
Security StringGroup Id - (String) The unique identifier of the network security group.
- rules
List<Pi
Network Security Group Rule Rule> - (List) The list of rules in the network security group.
- 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
Pi
Network Security Group Rule Member[] - (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.
- network
Security stringGroup Id - (String) The unique identifier of the network security group.
- rules
Pi
Network Security Group Rule Rule[] - (List) The list of rules in the network security group.
- 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[Pi
Network Security Group Rule Member] - (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_ strgroup_ id - (String) The unique identifier of the network security group.
- rules
Sequence[Pi
Network Security Group Rule Rule] - (List) The list of rules in the network security group.
- 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.
- network
Security StringGroup Id - (String) The unique identifier of the network security group.
- rules List<Property Map>
- (List) The list of rules in the network security group.
- 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.
- 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.
- Ibm
Pi stringNetwork Security Group Rule 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.
- Members
List<Pi
Network Security Group Rule Member> - (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.
- Network
Security stringGroup Id - (String) The unique identifier of the network security group.
- Pi
Action string - The action to take if the rule matches network traffic. Supported values are:
allow
,deny
. Required ifpi_network_security_group_rule_id
is not provided. - Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Destination PiPort Network Security Group Rule Pi Destination Port The list of destination port.
Nested schema for
pi_destination_port
:- Pi
Destination PiPorts Network Security Group Rule Pi Destination Ports The list of destination port. Deprecated, please use
pi_destination_port
.Nested schema for
pi_destination_ports
:- Pi
Network stringSecurity Group Id - The unique identifier of the network security group.
- Pi
Network stringSecurity Group Rule Id - The network security group rule id to remove. Required if none of the other optional fields are provided.
- Pi
Protocol PiNetwork Security Group Rule Pi Protocol The list of protocol. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_protocol
:- Pi
Remote PiNetwork Security Group Rule Pi Remote List of remote. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_remote
:- Pi
Source PiPort Network Security Group Rule Pi Source Port List of source port
Nested schema for
pi_source_port
:- Pi
Source PiPorts Network Security Group Rule Pi Source Ports List of source port. Deprecated, please use
pi_source_port
.Nested schema for
pi_source_ports
:- Rules
List<Pi
Network Security Group Rule Rule> - (List) The list of rules in the network security group.
- Timeouts
Pi
Network Security Group Rule Timeouts - 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.
- Ibm
Pi stringNetwork Security Group Rule 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.
- Members
[]Pi
Network Security Group Rule Member Args - (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.
- Network
Security stringGroup Id - (String) The unique identifier of the network security group.
- Pi
Action string - The action to take if the rule matches network traffic. Supported values are:
allow
,deny
. Required ifpi_network_security_group_rule_id
is not provided. - Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Destination PiPort Network Security Group Rule Pi Destination Port Args The list of destination port.
Nested schema for
pi_destination_port
:- Pi
Destination PiPorts Network Security Group Rule Pi Destination Ports Args The list of destination port. Deprecated, please use
pi_destination_port
.Nested schema for
pi_destination_ports
:- Pi
Network stringSecurity Group Id - The unique identifier of the network security group.
- Pi
Network stringSecurity Group Rule Id - The network security group rule id to remove. Required if none of the other optional fields are provided.
- Pi
Protocol PiNetwork Security Group Rule Pi Protocol Args The list of protocol. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_protocol
:- Pi
Remote PiNetwork Security Group Rule Pi Remote Args List of remote. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_remote
:- Pi
Source PiPort Network Security Group Rule Pi Source Port Args List of source port
Nested schema for
pi_source_port
:- Pi
Source PiPorts Network Security Group Rule Pi Source Ports Args List of source port. Deprecated, please use
pi_source_port
.Nested schema for
pi_source_ports
:- Rules
[]Pi
Network Security Group Rule Rule Args - (List) The list of rules in the network security group.
- Timeouts
Pi
Network Security Group Rule Timeouts Args - []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.
- ibm
Pi StringNetwork Security Group Rule 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.
- members
List<Pi
Network Security Group Rule Member> - (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.
- network
Security StringGroup Id - (String) The unique identifier of the network security group.
- pi
Action String - The action to take if the rule matches network traffic. Supported values are:
allow
,deny
. Required ifpi_network_security_group_rule_id
is not provided. - pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Destination PiPort Network Security Group Rule Pi Destination Port The list of destination port.
Nested schema for
pi_destination_port
:- pi
Destination PiPorts Network Security Group Rule Pi Destination Ports The list of destination port. Deprecated, please use
pi_destination_port
.Nested schema for
pi_destination_ports
:- pi
Network StringSecurity Group Id - The unique identifier of the network security group.
- pi
Network StringSecurity Group Rule Id - The network security group rule id to remove. Required if none of the other optional fields are provided.
- pi
Protocol PiNetwork Security Group Rule Pi Protocol The list of protocol. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_protocol
:- pi
Remote PiNetwork Security Group Rule Pi Remote List of remote. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_remote
:- pi
Source PiPort Network Security Group Rule Pi Source Port List of source port
Nested schema for
pi_source_port
:- pi
Source PiPorts Network Security Group Rule Pi Source Ports List of source port. Deprecated, please use
pi_source_port
.Nested schema for
pi_source_ports
:- rules
List<Pi
Network Security Group Rule Rule> - (List) The list of rules in the network security group.
- timeouts
Pi
Network Security Group Rule Timeouts - 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.
- ibm
Pi stringNetwork Security Group Rule 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.
- members
Pi
Network Security Group Rule Member[] - (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.
- network
Security stringGroup Id - (String) The unique identifier of the network security group.
- pi
Action string - The action to take if the rule matches network traffic. Supported values are:
allow
,deny
. Required ifpi_network_security_group_rule_id
is not provided. - pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- pi
Destination PiPort Network Security Group Rule Pi Destination Port The list of destination port.
Nested schema for
pi_destination_port
:- pi
Destination PiPorts Network Security Group Rule Pi Destination Ports The list of destination port. Deprecated, please use
pi_destination_port
.Nested schema for
pi_destination_ports
:- pi
Network stringSecurity Group Id - The unique identifier of the network security group.
- pi
Network stringSecurity Group Rule Id - The network security group rule id to remove. Required if none of the other optional fields are provided.
- pi
Protocol PiNetwork Security Group Rule Pi Protocol The list of protocol. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_protocol
:- pi
Remote PiNetwork Security Group Rule Pi Remote List of remote. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_remote
:- pi
Source PiPort Network Security Group Rule Pi Source Port List of source port
Nested schema for
pi_source_port
:- pi
Source PiPorts Network Security Group Rule Pi Source Ports List of source port. Deprecated, please use
pi_source_port
.Nested schema for
pi_source_ports
:- rules
Pi
Network Security Group Rule Rule[] - (List) The list of rules in the network security group.
- timeouts
Pi
Network Security Group Rule Timeouts - 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_ strnetwork_ security_ group_ rule_ 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.
- members
Sequence[Pi
Network Security Group Rule Member Args] - (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_ strgroup_ id - (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 ifpi_network_security_group_rule_id
is not provided. - pi_
cloud_ strinstance_ id - The GUID of the service instance associated with an account.
- pi_
destination_ Piport Network Security Group Rule Pi Destination Port Args The list of destination port.
Nested schema for
pi_destination_port
:- pi_
destination_ Piports Network Security Group Rule Pi Destination Ports Args The list of destination port. Deprecated, please use
pi_destination_port
.Nested schema for
pi_destination_ports
:- pi_
network_ strsecurity_ group_ id - The unique identifier of the network security group.
- pi_
network_ strsecurity_ group_ rule_ id - The network security group rule id to remove. Required if none of the other optional fields are provided.
- pi_
protocol PiNetwork Security Group Rule Pi Protocol Args The list of protocol. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_protocol
:- pi_
remote PiNetwork Security Group Rule Pi Remote Args List of remote. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_remote
:- pi_
source_ Piport Network Security Group Rule Pi Source Port Args List of source port
Nested schema for
pi_source_port
:- pi_
source_ Piports Network Security Group Rule Pi Source Ports Args List of source port. Deprecated, please use
pi_source_port
.Nested schema for
pi_source_ports
:- rules
Sequence[Pi
Network Security Group Rule Rule Args] - (List) The list of rules in the network security group.
- timeouts
Pi
Network Security Group Rule Timeouts Args - 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.
- ibm
Pi StringNetwork Security Group Rule 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.
- 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.
- network
Security StringGroup Id - (String) The unique identifier of the network security group.
- pi
Action String - The action to take if the rule matches network traffic. Supported values are:
allow
,deny
. Required ifpi_network_security_group_rule_id
is not provided. - pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Destination Property MapPort The list of destination port.
Nested schema for
pi_destination_port
:- pi
Destination Property MapPorts The list of destination port. Deprecated, please use
pi_destination_port
.Nested schema for
pi_destination_ports
:- pi
Network StringSecurity Group Id - The unique identifier of the network security group.
- pi
Network StringSecurity Group Rule Id - The network security group rule id to remove. Required if none of the other optional fields are provided.
- pi
Protocol Property Map The list of protocol. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_protocol
:- pi
Remote Property Map List of remote. Required if
pi_network_security_group_rule_id
is not provided.Nested schema for
pi_remote
:- pi
Source Property MapPort List of source port
Nested schema for
pi_source_port
:- pi
Source Property MapPorts List of source port. Deprecated, please use
pi_source_port
.Nested schema for
pi_source_ports
:- rules List<Property Map>
- (List) The list of rules in the network security group.
- timeouts Property Map
- 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.
- Mac
Address string - (String) The mac address of a network interface included if the type is
network-interface
. - Network
Interface stringId - (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 ifnetwork-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.
- Mac
Address string - (String) The mac address of a network interface included if the type is
network-interface
. - Network
Interface stringId - (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 ifnetwork-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.
- mac
Address String - (String) The mac address of a network interface included if the type is
network-interface
. - network
Interface StringId - (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 ifnetwork-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.
- mac
Address string - (String) The mac address of a network interface included if the type is
network-interface
. - network
Interface stringId - (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 ifnetwork-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_ strid - (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 ifnetwork-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.
- mac
Address String - (String) The mac address of a network interface included if the type is
network-interface
. - network
Interface StringId - (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 ifnetwork-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
PiNetworkSecurityGroupRulePiDestinationPorts, PiNetworkSecurityGroupRulePiDestinationPortsArgs
PiNetworkSecurityGroupRulePiProtocol, PiNetworkSecurityGroupRulePiProtocolArgs
- Type string
- The protocol of the network traffic. Supported values are:
icmp
,tcp
,udp
,all
. - Icmp
Type 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 List<PiNetwork Security Group Rule Pi Protocol Tcp Flag> - 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
. - Icmp
Type 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 []PiNetwork Security Group Rule Pi Protocol Tcp Flag - 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
. - icmp
Type 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 List<PiNetwork Security Group Rule Pi Protocol Tcp Flag> - 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
. - icmp
Type 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 PiNetwork Security Group Rule Pi Protocol Tcp Flag[] - 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[PiNetwork Security Group Rule Pi Protocol Tcp Flag] - 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
. - icmp
Type 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 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 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
PiNetworkSecurityGroupRulePiSourcePorts, PiNetworkSecurityGroupRulePiSourcePortsArgs
PiNetworkSecurityGroupRuleRule, PiNetworkSecurityGroupRuleRuleArgs
- Action string
- (String) The action to take if the rule matches network traffic. Supported values are:
allow
,deny
. - Destination
Ports List<PiNetwork Security Group Rule Rule Destination Port> - (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<Pi
Network Security Group Rule Rule Protocol> - (List) The list of protocol.
- Remotes
List<Pi
Network Security Group Rule Rule Remote> - (List) List of remote.
- Source
Ports List<PiNetwork Security Group Rule Rule Source Port> - (List) List of source port
- Action string
- (String) The action to take if the rule matches network traffic. Supported values are:
allow
,deny
. - Destination
Ports []PiNetwork Security Group Rule Rule Destination Port - (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
[]Pi
Network Security Group Rule Rule Protocol - (List) The list of protocol.
- Remotes
[]Pi
Network Security Group Rule Rule Remote - (List) List of remote.
- Source
Ports []PiNetwork Security Group Rule Rule Source Port - (List) List of source port
- action String
- (String) The action to take if the rule matches network traffic. Supported values are:
allow
,deny
. - destination
Ports List<PiNetwork Security Group Rule Rule Destination Port> - (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<Pi
Network Security Group Rule Rule Protocol> - (List) The list of protocol.
- remotes
List<Pi
Network Security Group Rule Rule Remote> - (List) List of remote.
- source
Ports List<PiNetwork Security Group Rule Rule Source Port> - (List) List of source port
- action string
- (String) The action to take if the rule matches network traffic. Supported values are:
allow
,deny
. - destination
Ports PiNetwork Security Group Rule Rule Destination Port[] - (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
Pi
Network Security Group Rule Rule Protocol[] - (List) The list of protocol.
- remotes
Pi
Network Security Group Rule Rule Remote[] - (List) List of remote.
- source
Ports PiNetwork Security Group Rule Rule Source Port[] - (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[PiNetwork Security Group Rule Rule Destination Port] - (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[Pi
Network Security Group Rule Rule Protocol] - (List) The list of protocol.
- remotes
Sequence[Pi
Network Security Group Rule Rule Remote] - (List) List of remote.
- source_
ports Sequence[PiNetwork Security Group Rule Rule Source Port] - (List) List of source port
- action String
- (String) The action to take if the rule matches network traffic. Supported values are:
allow
,deny
. - destination
Ports 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.
- source
Ports 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
- Icmp
Type 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
. - Tcp
Flags List<PiNetwork Security Group Rule Rule Protocol Tcp Flag> - (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 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
. - Tcp
Flags []PiNetwork Security Group Rule Rule Protocol Tcp Flag - (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 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
. - tcp
Flags List<PiNetwork Security Group Rule Rule Protocol Tcp Flag> - (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 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
. - tcp
Flags PiNetwork Security Group Rule Rule Protocol Tcp Flag[] - (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[PiNetwork Security Group Rule Rule Protocol Tcp Flag] - (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
.
- icmp
Type 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
. - tcp
Flags 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
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.