ibm.PiNetworkSecurityGroupMember
Explore with Pulumi AI
Add or remove a network security group member.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const networkSecurityGroupMember = new ibm.PiNetworkSecurityGroupMember("networkSecurityGroupMember", {
piCloudInstanceId: "<value of the cloud_instance_id>",
piNetworkSecurityGroupId: "network_security_group_id",
piTarget: "target",
piType: "ipv4-address",
});
import pulumi
import pulumi_ibm as ibm
network_security_group_member = ibm.PiNetworkSecurityGroupMember("networkSecurityGroupMember",
pi_cloud_instance_id="<value of the cloud_instance_id>",
pi_network_security_group_id="network_security_group_id",
pi_target="target",
pi_type="ipv4-address")
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.NewPiNetworkSecurityGroupMember(ctx, "networkSecurityGroupMember", &ibm.PiNetworkSecurityGroupMemberArgs{
PiCloudInstanceId: pulumi.String("<value of the cloud_instance_id>"),
PiNetworkSecurityGroupId: pulumi.String("network_security_group_id"),
PiTarget: pulumi.String("target"),
PiType: pulumi.String("ipv4-address"),
})
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 networkSecurityGroupMember = new Ibm.PiNetworkSecurityGroupMember("networkSecurityGroupMember", new()
{
PiCloudInstanceId = "<value of the cloud_instance_id>",
PiNetworkSecurityGroupId = "network_security_group_id",
PiTarget = "target",
PiType = "ipv4-address",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.PiNetworkSecurityGroupMember;
import com.pulumi.ibm.PiNetworkSecurityGroupMemberArgs;
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 networkSecurityGroupMember = new PiNetworkSecurityGroupMember("networkSecurityGroupMember", PiNetworkSecurityGroupMemberArgs.builder()
.piCloudInstanceId("<value of the cloud_instance_id>")
.piNetworkSecurityGroupId("network_security_group_id")
.piTarget("target")
.piType("ipv4-address")
.build());
}
}
resources:
networkSecurityGroupMember:
type: ibm:PiNetworkSecurityGroupMember
properties:
piCloudInstanceId: <value of the cloud_instance_id>
piNetworkSecurityGroupId: network_security_group_id
piTarget: target
piType: ipv4-address
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_member.example d7bec597-4726-451f-8a63-e62e6f19c32c/cea6651a-bc0a-4438-9f8a-a0770bbf3ebb
Create PiNetworkSecurityGroupMember Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PiNetworkSecurityGroupMember(name: string, args: PiNetworkSecurityGroupMemberArgs, opts?: CustomResourceOptions);
@overload
def PiNetworkSecurityGroupMember(resource_name: str,
args: PiNetworkSecurityGroupMemberInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PiNetworkSecurityGroupMember(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_member_id: Optional[str] = None,
pi_network_security_group_member_id: Optional[str] = None,
pi_target: Optional[str] = None,
pi_type: Optional[str] = None,
rules: Optional[Sequence[PiNetworkSecurityGroupMemberRuleArgs]] = None,
timeouts: Optional[PiNetworkSecurityGroupMemberTimeoutsArgs] = None)
func NewPiNetworkSecurityGroupMember(ctx *Context, name string, args PiNetworkSecurityGroupMemberArgs, opts ...ResourceOption) (*PiNetworkSecurityGroupMember, error)
public PiNetworkSecurityGroupMember(string name, PiNetworkSecurityGroupMemberArgs args, CustomResourceOptions? opts = null)
public PiNetworkSecurityGroupMember(String name, PiNetworkSecurityGroupMemberArgs args)
public PiNetworkSecurityGroupMember(String name, PiNetworkSecurityGroupMemberArgs args, CustomResourceOptions options)
type: ibm:PiNetworkSecurityGroupMember
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 PiNetworkSecurityGroupMemberArgs
- 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 PiNetworkSecurityGroupMemberInitArgs
- 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 PiNetworkSecurityGroupMemberArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PiNetworkSecurityGroupMemberArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PiNetworkSecurityGroupMemberArgs
- 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 piNetworkSecurityGroupMemberResource = new Ibm.PiNetworkSecurityGroupMember("piNetworkSecurityGroupMemberResource", new()
{
PiCloudInstanceId = "string",
PiNetworkSecurityGroupId = "string",
IbmPiNetworkSecurityGroupMemberId = "string",
PiNetworkSecurityGroupMemberId = "string",
PiTarget = "string",
PiType = "string",
Rules = new[]
{
new Ibm.Inputs.PiNetworkSecurityGroupMemberRuleArgs
{
Action = "string",
DestinationPorts = new[]
{
new Ibm.Inputs.PiNetworkSecurityGroupMemberRuleDestinationPortArgs
{
Maximum = 0,
Minimum = 0,
},
},
Id = "string",
Protocols = new[]
{
new Ibm.Inputs.PiNetworkSecurityGroupMemberRuleProtocolArgs
{
IcmpType = "string",
TcpFlags = new[]
{
new Ibm.Inputs.PiNetworkSecurityGroupMemberRuleProtocolTcpFlagArgs
{
Flag = "string",
},
},
Type = "string",
},
},
Remotes = new[]
{
new Ibm.Inputs.PiNetworkSecurityGroupMemberRuleRemoteArgs
{
Id = "string",
Type = "string",
},
},
SourcePorts = new[]
{
new Ibm.Inputs.PiNetworkSecurityGroupMemberRuleSourcePortArgs
{
Maximum = 0,
Minimum = 0,
},
},
},
},
Timeouts = new Ibm.Inputs.PiNetworkSecurityGroupMemberTimeoutsArgs
{
Delete = "string",
},
});
example, err := ibm.NewPiNetworkSecurityGroupMember(ctx, "piNetworkSecurityGroupMemberResource", &ibm.PiNetworkSecurityGroupMemberArgs{
PiCloudInstanceId: pulumi.String("string"),
PiNetworkSecurityGroupId: pulumi.String("string"),
IbmPiNetworkSecurityGroupMemberId: pulumi.String("string"),
PiNetworkSecurityGroupMemberId: pulumi.String("string"),
PiTarget: pulumi.String("string"),
PiType: pulumi.String("string"),
Rules: ibm.PiNetworkSecurityGroupMemberRuleArray{
&ibm.PiNetworkSecurityGroupMemberRuleArgs{
Action: pulumi.String("string"),
DestinationPorts: ibm.PiNetworkSecurityGroupMemberRuleDestinationPortArray{
&ibm.PiNetworkSecurityGroupMemberRuleDestinationPortArgs{
Maximum: pulumi.Float64(0),
Minimum: pulumi.Float64(0),
},
},
Id: pulumi.String("string"),
Protocols: ibm.PiNetworkSecurityGroupMemberRuleProtocolArray{
&ibm.PiNetworkSecurityGroupMemberRuleProtocolArgs{
IcmpType: pulumi.String("string"),
TcpFlags: ibm.PiNetworkSecurityGroupMemberRuleProtocolTcpFlagArray{
&ibm.PiNetworkSecurityGroupMemberRuleProtocolTcpFlagArgs{
Flag: pulumi.String("string"),
},
},
Type: pulumi.String("string"),
},
},
Remotes: ibm.PiNetworkSecurityGroupMemberRuleRemoteArray{
&ibm.PiNetworkSecurityGroupMemberRuleRemoteArgs{
Id: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
SourcePorts: ibm.PiNetworkSecurityGroupMemberRuleSourcePortArray{
&ibm.PiNetworkSecurityGroupMemberRuleSourcePortArgs{
Maximum: pulumi.Float64(0),
Minimum: pulumi.Float64(0),
},
},
},
},
Timeouts: &ibm.PiNetworkSecurityGroupMemberTimeoutsArgs{
Delete: pulumi.String("string"),
},
})
var piNetworkSecurityGroupMemberResource = new PiNetworkSecurityGroupMember("piNetworkSecurityGroupMemberResource", PiNetworkSecurityGroupMemberArgs.builder()
.piCloudInstanceId("string")
.piNetworkSecurityGroupId("string")
.ibmPiNetworkSecurityGroupMemberId("string")
.piNetworkSecurityGroupMemberId("string")
.piTarget("string")
.piType("string")
.rules(PiNetworkSecurityGroupMemberRuleArgs.builder()
.action("string")
.destinationPorts(PiNetworkSecurityGroupMemberRuleDestinationPortArgs.builder()
.maximum(0)
.minimum(0)
.build())
.id("string")
.protocols(PiNetworkSecurityGroupMemberRuleProtocolArgs.builder()
.icmpType("string")
.tcpFlags(PiNetworkSecurityGroupMemberRuleProtocolTcpFlagArgs.builder()
.flag("string")
.build())
.type("string")
.build())
.remotes(PiNetworkSecurityGroupMemberRuleRemoteArgs.builder()
.id("string")
.type("string")
.build())
.sourcePorts(PiNetworkSecurityGroupMemberRuleSourcePortArgs.builder()
.maximum(0)
.minimum(0)
.build())
.build())
.timeouts(PiNetworkSecurityGroupMemberTimeoutsArgs.builder()
.delete("string")
.build())
.build());
pi_network_security_group_member_resource = ibm.PiNetworkSecurityGroupMember("piNetworkSecurityGroupMemberResource",
pi_cloud_instance_id="string",
pi_network_security_group_id="string",
ibm_pi_network_security_group_member_id="string",
pi_network_security_group_member_id="string",
pi_target="string",
pi_type="string",
rules=[{
"action": "string",
"destination_ports": [{
"maximum": 0,
"minimum": 0,
}],
"id": "string",
"protocols": [{
"icmp_type": "string",
"tcp_flags": [{
"flag": "string",
}],
"type": "string",
}],
"remotes": [{
"id": "string",
"type": "string",
}],
"source_ports": [{
"maximum": 0,
"minimum": 0,
}],
}],
timeouts={
"delete": "string",
})
const piNetworkSecurityGroupMemberResource = new ibm.PiNetworkSecurityGroupMember("piNetworkSecurityGroupMemberResource", {
piCloudInstanceId: "string",
piNetworkSecurityGroupId: "string",
ibmPiNetworkSecurityGroupMemberId: "string",
piNetworkSecurityGroupMemberId: "string",
piTarget: "string",
piType: "string",
rules: [{
action: "string",
destinationPorts: [{
maximum: 0,
minimum: 0,
}],
id: "string",
protocols: [{
icmpType: "string",
tcpFlags: [{
flag: "string",
}],
type: "string",
}],
remotes: [{
id: "string",
type: "string",
}],
sourcePorts: [{
maximum: 0,
minimum: 0,
}],
}],
timeouts: {
"delete": "string",
},
});
type: ibm:PiNetworkSecurityGroupMember
properties:
ibmPiNetworkSecurityGroupMemberId: string
piCloudInstanceId: string
piNetworkSecurityGroupId: string
piNetworkSecurityGroupMemberId: string
piTarget: string
piType: string
rules:
- action: string
destinationPorts:
- maximum: 0
minimum: 0
id: string
protocols:
- icmpType: string
tcpFlags:
- flag: string
type: string
remotes:
- id: string
type: string
sourcePorts:
- maximum: 0
minimum: 0
timeouts:
delete: string
PiNetworkSecurityGroupMember 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 PiNetworkSecurityGroupMember 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 - Network security group ID.
- Ibm
Pi stringNetwork Security Group Member 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
Network stringSecurity Group Member Id - Network security group member ID. This conflicts with
pi_target
andpi_type
. - Pi
Target string - The target member to add. Required with
pi_type
. This conflicts withpi_network_security_group_member_id
. - Pi
Type string - The type of member. Supported values are:
ipv4-address
,network-interface
. Required withpi_target
. This conflicts withpi_network_security_group_member_id
. - Rules
List<Pi
Network Security Group Member Rule> - (List) The list of rules in the network security group.
- Timeouts
Pi
Network Security Group Member Timeouts
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Network stringSecurity Group Id - Network security group ID.
- Ibm
Pi stringNetwork Security Group Member 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
Network stringSecurity Group Member Id - Network security group member ID. This conflicts with
pi_target
andpi_type
. - Pi
Target string - The target member to add. Required with
pi_type
. This conflicts withpi_network_security_group_member_id
. - Pi
Type string - The type of member. Supported values are:
ipv4-address
,network-interface
. Required withpi_target
. This conflicts withpi_network_security_group_member_id
. - Rules
[]Pi
Network Security Group Member Rule Args - (List) The list of rules in the network security group.
- Timeouts
Pi
Network Security Group Member Timeouts Args
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Network StringSecurity Group Id - Network security group ID.
- ibm
Pi StringNetwork Security Group Member 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
Network StringSecurity Group Member Id - Network security group member ID. This conflicts with
pi_target
andpi_type
. - pi
Target String - The target member to add. Required with
pi_type
. This conflicts withpi_network_security_group_member_id
. - pi
Type String - The type of member. Supported values are:
ipv4-address
,network-interface
. Required withpi_target
. This conflicts withpi_network_security_group_member_id
. - rules
List<Pi
Network Security Group Member Rule> - (List) The list of rules in the network security group.
- timeouts
Pi
Network Security Group Member Timeouts
- pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- pi
Network stringSecurity Group Id - Network security group ID.
- ibm
Pi stringNetwork Security Group Member 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
Network stringSecurity Group Member Id - Network security group member ID. This conflicts with
pi_target
andpi_type
. - pi
Target string - The target member to add. Required with
pi_type
. This conflicts withpi_network_security_group_member_id
. - pi
Type string - The type of member. Supported values are:
ipv4-address
,network-interface
. Required withpi_target
. This conflicts withpi_network_security_group_member_id
. - rules
Pi
Network Security Group Member Rule[] - (List) The list of rules in the network security group.
- timeouts
Pi
Network Security Group Member Timeouts
- pi_
cloud_ strinstance_ id - The GUID of the service instance associated with an account.
- pi_
network_ strsecurity_ group_ id - Network security group ID.
- ibm_
pi_ strnetwork_ security_ group_ member_ 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_
network_ strsecurity_ group_ member_ id - Network security group member ID. This conflicts with
pi_target
andpi_type
. - pi_
target str - The target member to add. Required with
pi_type
. This conflicts withpi_network_security_group_member_id
. - pi_
type str - The type of member. Supported values are:
ipv4-address
,network-interface
. Required withpi_target
. This conflicts withpi_network_security_group_member_id
. - rules
Sequence[Pi
Network Security Group Member Rule Args] - (List) The list of rules in the network security group.
- timeouts
Pi
Network Security Group Member Timeouts Args
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Network StringSecurity Group Id - Network security group ID.
- ibm
Pi StringNetwork Security Group Member 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
Network StringSecurity Group Member Id - Network security group member ID. This conflicts with
pi_target
andpi_type
. - pi
Target String - The target member to add. Required with
pi_type
. This conflicts withpi_network_security_group_member_id
. - pi
Type String - The type of member. Supported values are:
ipv4-address
,network-interface
. Required withpi_target
. This conflicts withpi_network_security_group_member_id
. - rules List<Property Map>
- (List) The list of rules in the network security group.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the PiNetworkSecurityGroupMember 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 Member Member> - (List) The list of IPv4 addresses and\or network interfaces in the network security group.
- Name string
- (String) The name of the network security group.
- Network
Security stringGroup Member Id - (String) The unique identifier of the network security group resource.
- 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 Member Member - (List) The list of IPv4 addresses and\or network interfaces in the network security group.
- Name string
- (String) The name of the network security group.
- Network
Security stringGroup Member Id - (String) The unique identifier of the network security group resource.
- []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 Member Member> - (List) The list of IPv4 addresses and\or network interfaces in the network security group.
- name String
- (String) The name of the network security group.
- network
Security StringGroup Member Id - (String) The unique identifier of the network security group resource.
- 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 Member Member[] - (List) The list of IPv4 addresses and\or network interfaces in the network security group.
- name string
- (String) The name of the network security group.
- network
Security stringGroup Member Id - (String) The unique identifier of the network security group resource.
- 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 Member Member] - (List) The list of IPv4 addresses and\or network interfaces in the network security group.
- name str
- (String) The name of the network security group.
- network_
security_ strgroup_ member_ id - (String) The unique identifier of the network security group resource.
- 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 name of the network security group.
- network
Security StringGroup Member Id - (String) The unique identifier of the network security group resource.
- List<String>
- (List) List of user tags attached to the resource.
Look up Existing PiNetworkSecurityGroupMember Resource
Get an existing PiNetworkSecurityGroupMember 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?: PiNetworkSecurityGroupMemberState, opts?: CustomResourceOptions): PiNetworkSecurityGroupMember
@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_member_id: Optional[str] = None,
members: Optional[Sequence[PiNetworkSecurityGroupMemberMemberArgs]] = None,
name: Optional[str] = None,
network_security_group_member_id: Optional[str] = None,
pi_cloud_instance_id: Optional[str] = None,
pi_network_security_group_id: Optional[str] = None,
pi_network_security_group_member_id: Optional[str] = None,
pi_target: Optional[str] = None,
pi_type: Optional[str] = None,
rules: Optional[Sequence[PiNetworkSecurityGroupMemberRuleArgs]] = None,
timeouts: Optional[PiNetworkSecurityGroupMemberTimeoutsArgs] = None,
user_tags: Optional[Sequence[str]] = None) -> PiNetworkSecurityGroupMember
func GetPiNetworkSecurityGroupMember(ctx *Context, name string, id IDInput, state *PiNetworkSecurityGroupMemberState, opts ...ResourceOption) (*PiNetworkSecurityGroupMember, error)
public static PiNetworkSecurityGroupMember Get(string name, Input<string> id, PiNetworkSecurityGroupMemberState? state, CustomResourceOptions? opts = null)
public static PiNetworkSecurityGroupMember get(String name, Output<String> id, PiNetworkSecurityGroupMemberState state, CustomResourceOptions options)
resources: _: type: ibm:PiNetworkSecurityGroupMember 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 Member 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 Member Member> - (List) The list of IPv4 addresses and\or network interfaces in the network security group.
- Name string
- (String) The name of the network security group.
- Network
Security stringGroup Member Id - (String) The unique identifier of the network security group resource.
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Network stringSecurity Group Id - Network security group ID.
- Pi
Network stringSecurity Group Member Id - Network security group member ID. This conflicts with
pi_target
andpi_type
. - Pi
Target string - The target member to add. Required with
pi_type
. This conflicts withpi_network_security_group_member_id
. - Pi
Type string - The type of member. Supported values are:
ipv4-address
,network-interface
. Required withpi_target
. This conflicts withpi_network_security_group_member_id
. - Rules
List<Pi
Network Security Group Member Rule> - (List) The list of rules in the network security group.
- Timeouts
Pi
Network Security Group Member 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 Member 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 Member Member Args - (List) The list of IPv4 addresses and\or network interfaces in the network security group.
- Name string
- (String) The name of the network security group.
- Network
Security stringGroup Member Id - (String) The unique identifier of the network security group resource.
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Network stringSecurity Group Id - Network security group ID.
- Pi
Network stringSecurity Group Member Id - Network security group member ID. This conflicts with
pi_target
andpi_type
. - Pi
Target string - The target member to add. Required with
pi_type
. This conflicts withpi_network_security_group_member_id
. - Pi
Type string - The type of member. Supported values are:
ipv4-address
,network-interface
. Required withpi_target
. This conflicts withpi_network_security_group_member_id
. - Rules
[]Pi
Network Security Group Member Rule Args - (List) The list of rules in the network security group.
- Timeouts
Pi
Network Security Group Member 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 Member 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 Member Member> - (List) The list of IPv4 addresses and\or network interfaces in the network security group.
- name String
- (String) The name of the network security group.
- network
Security StringGroup Member Id - (String) The unique identifier of the network security group resource.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Network StringSecurity Group Id - Network security group ID.
- pi
Network StringSecurity Group Member Id - Network security group member ID. This conflicts with
pi_target
andpi_type
. - pi
Target String - The target member to add. Required with
pi_type
. This conflicts withpi_network_security_group_member_id
. - pi
Type String - The type of member. Supported values are:
ipv4-address
,network-interface
. Required withpi_target
. This conflicts withpi_network_security_group_member_id
. - rules
List<Pi
Network Security Group Member Rule> - (List) The list of rules in the network security group.
- timeouts
Pi
Network Security Group Member 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 Member 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 Member Member[] - (List) The list of IPv4 addresses and\or network interfaces in the network security group.
- name string
- (String) The name of the network security group.
- network
Security stringGroup Member Id - (String) The unique identifier of the network security group resource.
- pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- pi
Network stringSecurity Group Id - Network security group ID.
- pi
Network stringSecurity Group Member Id - Network security group member ID. This conflicts with
pi_target
andpi_type
. - pi
Target string - The target member to add. Required with
pi_type
. This conflicts withpi_network_security_group_member_id
. - pi
Type string - The type of member. Supported values are:
ipv4-address
,network-interface
. Required withpi_target
. This conflicts withpi_network_security_group_member_id
. - rules
Pi
Network Security Group Member Rule[] - (List) The list of rules in the network security group.
- timeouts
Pi
Network Security Group Member 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_ member_ 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 Member Member Args] - (List) The list of IPv4 addresses and\or network interfaces in the network security group.
- name str
- (String) The name of the network security group.
- network_
security_ strgroup_ member_ id - (String) The unique identifier of the network security group resource.
- pi_
cloud_ strinstance_ id - The GUID of the service instance associated with an account.
- pi_
network_ strsecurity_ group_ id - Network security group ID.
- pi_
network_ strsecurity_ group_ member_ id - Network security group member ID. This conflicts with
pi_target
andpi_type
. - pi_
target str - The target member to add. Required with
pi_type
. This conflicts withpi_network_security_group_member_id
. - pi_
type str - The type of member. Supported values are:
ipv4-address
,network-interface
. Required withpi_target
. This conflicts withpi_network_security_group_member_id
. - rules
Sequence[Pi
Network Security Group Member Rule Args] - (List) The list of rules in the network security group.
- timeouts
Pi
Network Security Group Member 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 Member 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 name of the network security group.
- network
Security StringGroup Member Id - (String) The unique identifier of the network security group resource.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Network StringSecurity Group Id - Network security group ID.
- pi
Network StringSecurity Group Member Id - Network security group member ID. This conflicts with
pi_target
andpi_type
. - pi
Target String - The target member to add. Required with
pi_type
. This conflicts withpi_network_security_group_member_id
. - pi
Type String - The type of member. Supported values are:
ipv4-address
,network-interface
. Required withpi_target
. This conflicts withpi_network_security_group_member_id
. - 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
PiNetworkSecurityGroupMemberMember, PiNetworkSecurityGroupMemberMemberArgs
- 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
.
PiNetworkSecurityGroupMemberRule, PiNetworkSecurityGroupMemberRuleArgs
- Action string
- (String) The action to take if the rule matches network traffic. Supported values are:
allow
,deny
. - Destination
Ports List<PiNetwork Security Group Member 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 Member Rule Protocol> - (List) The list of protocol.
- Remotes
List<Pi
Network Security Group Member Rule Remote> - (List) List of remote.
- Source
Ports List<PiNetwork Security Group Member 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 Member 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 Member Rule Protocol - (List) The list of protocol.
- Remotes
[]Pi
Network Security Group Member Rule Remote - (List) List of remote.
- Source
Ports []PiNetwork Security Group Member 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 Member 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 Member Rule Protocol> - (List) The list of protocol.
- remotes
List<Pi
Network Security Group Member Rule Remote> - (List) List of remote.
- source
Ports List<PiNetwork Security Group Member 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 Member 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 Member Rule Protocol[] - (List) The list of protocol.
- remotes
Pi
Network Security Group Member Rule Remote[] - (List) List of remote.
- source
Ports PiNetwork Security Group Member 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 Member 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 Member Rule Protocol] - (List) The list of protocol.
- remotes
Sequence[Pi
Network Security Group Member Rule Remote] - (List) List of remote.
- source_
ports Sequence[PiNetwork Security Group Member 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
PiNetworkSecurityGroupMemberRuleDestinationPort, PiNetworkSecurityGroupMemberRuleDestinationPortArgs
- Maximum double
- (Integer) 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
- (Integer) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum
- Maximum float64
- (Integer) 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
- (Integer) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum
- maximum Double
- (Integer) 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
- (Integer) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum
- maximum number
- (Integer) 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
- (Integer) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum
- maximum Number
- (Integer) 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
- (Integer) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum
PiNetworkSecurityGroupMemberRuleProtocol, PiNetworkSecurityGroupMemberRuleProtocolArgs
- Icmp
Type string - (String) If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched.
- Tcp
Flags List<PiNetwork Security Group Member 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.
- Tcp
Flags []PiNetwork Security Group Member 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.
- tcp
Flags List<PiNetwork Security Group Member 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.
- tcp
Flags PiNetwork Security Group Member 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.
- tcp_
flags Sequence[PiNetwork Security Group Member 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.
- 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
.
PiNetworkSecurityGroupMemberRuleProtocolTcpFlag, PiNetworkSecurityGroupMemberRuleProtocolTcpFlagArgs
- Flag string
- Flag string
- flag String
- flag string
- flag str
- flag String
PiNetworkSecurityGroupMemberRuleRemote, PiNetworkSecurityGroupMemberRuleRemoteArgs
- 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
.
PiNetworkSecurityGroupMemberRuleSourcePort, PiNetworkSecurityGroupMemberRuleSourcePortArgs
- Maximum double
- (Integer) 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
- (Integer) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum
- Maximum float64
- (Integer) 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
- (Integer) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum
- maximum Double
- (Integer) 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
- (Integer) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum
- maximum number
- (Integer) 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
- (Integer) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum
- maximum Number
- (Integer) 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
- (Integer) The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum
PiNetworkSecurityGroupMemberTimeouts, PiNetworkSecurityGroupMemberTimeoutsArgs
- Delete string
- Delete string
- delete String
- delete string
- delete str
- delete String
Import
The ibm_pi_network_security_group_member
resource can be imported by using cloud_instance_id
, network_security_group_id
and network_security_group_member_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.