1. Packages
  2. Ibm Provider
  3. API Docs
  4. PiNetworkSecurityGroupMember
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

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",
});
Copy
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")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
resources:
  networkSecurityGroupMember:
    type: ibm:PiNetworkSecurityGroupMember
    properties:
      piCloudInstanceId: <value of the cloud_instance_id>
      piNetworkSecurityGroupId: network_security_group_id
      piTarget: target
      piType: ipv4-address
Copy

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";
Copy
import pulumi
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => 
{
});
Copy
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) {
    }
}
Copy
{}
Copy

Example

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

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 This property is required. string
The unique name of the resource.
args This property is required. PiNetworkSecurityGroupMemberArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. PiNetworkSecurityGroupMemberArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. PiNetworkSecurityGroupMemberArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
    },
});
Copy
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: .PiNetworkSecurityGroupMemberRuleArray{
&.PiNetworkSecurityGroupMemberRuleArgs{
Action: pulumi.String("string"),
DestinationPorts: .PiNetworkSecurityGroupMemberRuleDestinationPortArray{
&.PiNetworkSecurityGroupMemberRuleDestinationPortArgs{
Maximum: pulumi.Float64(0),
Minimum: pulumi.Float64(0),
},
},
Id: pulumi.String("string"),
Protocols: .PiNetworkSecurityGroupMemberRuleProtocolArray{
&.PiNetworkSecurityGroupMemberRuleProtocolArgs{
IcmpType: pulumi.String("string"),
TcpFlags: .PiNetworkSecurityGroupMemberRuleProtocolTcpFlagArray{
&.PiNetworkSecurityGroupMemberRuleProtocolTcpFlagArgs{
Flag: pulumi.String("string"),
},
},
Type: pulumi.String("string"),
},
},
Remotes: .PiNetworkSecurityGroupMemberRuleRemoteArray{
&.PiNetworkSecurityGroupMemberRuleRemoteArgs{
Id: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
SourcePorts: .PiNetworkSecurityGroupMemberRuleSourcePortArray{
&.PiNetworkSecurityGroupMemberRuleSourcePortArgs{
Maximum: pulumi.Float64(0),
Minimum: pulumi.Float64(0),
},
},
},
},
Timeouts: &.PiNetworkSecurityGroupMemberTimeoutsArgs{
Delete: pulumi.String("string"),
},
})
Copy
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());
Copy
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",
    })
Copy
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",
    },
});
Copy
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
Copy

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:

PiCloudInstanceId This property is required. string
The GUID of the service instance associated with an account.
PiNetworkSecurityGroupId This property is required. string
Network security group ID.
IbmPiNetworkSecurityGroupMemberId 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.
PiNetworkSecurityGroupMemberId string
Network security group member ID. This conflicts with pi_target and pi_type.
PiTarget string
The target member to add. Required with pi_type. This conflicts with pi_network_security_group_member_id.
PiType string
The type of member. Supported values are: ipv4-address, network-interface. Required with pi_target. This conflicts with pi_network_security_group_member_id.
Rules List<PiNetworkSecurityGroupMemberRule>
(List) The list of rules in the network security group.
Timeouts PiNetworkSecurityGroupMemberTimeouts
PiCloudInstanceId This property is required. string
The GUID of the service instance associated with an account.
PiNetworkSecurityGroupId This property is required. string
Network security group ID.
IbmPiNetworkSecurityGroupMemberId 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.
PiNetworkSecurityGroupMemberId string
Network security group member ID. This conflicts with pi_target and pi_type.
PiTarget string
The target member to add. Required with pi_type. This conflicts with pi_network_security_group_member_id.
PiType string
The type of member. Supported values are: ipv4-address, network-interface. Required with pi_target. This conflicts with pi_network_security_group_member_id.
Rules []PiNetworkSecurityGroupMemberRuleArgs
(List) The list of rules in the network security group.
Timeouts PiNetworkSecurityGroupMemberTimeoutsArgs
piCloudInstanceId This property is required. String
The GUID of the service instance associated with an account.
piNetworkSecurityGroupId This property is required. String
Network security group ID.
ibmPiNetworkSecurityGroupMemberId 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.
piNetworkSecurityGroupMemberId String
Network security group member ID. This conflicts with pi_target and pi_type.
piTarget String
The target member to add. Required with pi_type. This conflicts with pi_network_security_group_member_id.
piType String
The type of member. Supported values are: ipv4-address, network-interface. Required with pi_target. This conflicts with pi_network_security_group_member_id.
rules List<PiNetworkSecurityGroupMemberRule>
(List) The list of rules in the network security group.
timeouts PiNetworkSecurityGroupMemberTimeouts
piCloudInstanceId This property is required. string
The GUID of the service instance associated with an account.
piNetworkSecurityGroupId This property is required. string
Network security group ID.
ibmPiNetworkSecurityGroupMemberId 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.
piNetworkSecurityGroupMemberId string
Network security group member ID. This conflicts with pi_target and pi_type.
piTarget string
The target member to add. Required with pi_type. This conflicts with pi_network_security_group_member_id.
piType string
The type of member. Supported values are: ipv4-address, network-interface. Required with pi_target. This conflicts with pi_network_security_group_member_id.
rules PiNetworkSecurityGroupMemberRule[]
(List) The list of rules in the network security group.
timeouts PiNetworkSecurityGroupMemberTimeouts
pi_cloud_instance_id This property is required. str
The GUID of the service instance associated with an account.
pi_network_security_group_id This property is required. str
Network security group ID.
ibm_pi_network_security_group_member_id str
(String) The id of the remote network Address group or network security group the rules apply to. Not required for default-network-address-group.
pi_network_security_group_member_id str
Network security group member ID. This conflicts with pi_target and pi_type.
pi_target str
The target member to add. Required with pi_type. This conflicts with pi_network_security_group_member_id.
pi_type str
The type of member. Supported values are: ipv4-address, network-interface. Required with pi_target. This conflicts with pi_network_security_group_member_id.
rules Sequence[PiNetworkSecurityGroupMemberRuleArgs]
(List) The list of rules in the network security group.
timeouts PiNetworkSecurityGroupMemberTimeoutsArgs
piCloudInstanceId This property is required. String
The GUID of the service instance associated with an account.
piNetworkSecurityGroupId This property is required. String
Network security group ID.
ibmPiNetworkSecurityGroupMemberId 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.
piNetworkSecurityGroupMemberId String
Network security group member ID. This conflicts with pi_target and pi_type.
piTarget String
The target member to add. Required with pi_type. This conflicts with pi_network_security_group_member_id.
piType String
The type of member. Supported values are: ipv4-address, network-interface. Required with pi_target. This conflicts with pi_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<PiNetworkSecurityGroupMemberMember>
(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.
NetworkSecurityGroupMemberId string
(String) The unique identifier of the network security group resource.
UserTags List<string>
(List) List of user tags attached to the resource.
Crn string
(String) The network security group's crn.
Default bool
(Boolean) Indicates if the network security group is the default network security group in the workspace.
Id string
The provider-assigned unique ID for this managed resource.
Members []PiNetworkSecurityGroupMemberMember
(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.
NetworkSecurityGroupMemberId string
(String) The unique identifier of the network security group resource.
UserTags []string
(List) List of user tags attached to the resource.
crn String
(String) The network security group's crn.
default_ Boolean
(Boolean) Indicates if the network security group is the default network security group in the workspace.
id String
The provider-assigned unique ID for this managed resource.
members List<PiNetworkSecurityGroupMemberMember>
(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.
networkSecurityGroupMemberId String
(String) The unique identifier of the network security group resource.
userTags List<String>
(List) List of user tags attached to the resource.
crn string
(String) The network security group's crn.
default boolean
(Boolean) Indicates if the network security group is the default network security group in the workspace.
id string
The provider-assigned unique ID for this managed resource.
members PiNetworkSecurityGroupMemberMember[]
(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.
networkSecurityGroupMemberId string
(String) The unique identifier of the network security group resource.
userTags string[]
(List) List of user tags attached to the resource.
crn str
(String) The network security group's crn.
default bool
(Boolean) Indicates if the network security group is the default network security group in the workspace.
id str
The provider-assigned unique ID for this managed resource.
members Sequence[PiNetworkSecurityGroupMemberMember]
(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_group_member_id str
(String) The unique identifier of the network security group resource.
user_tags Sequence[str]
(List) List of user tags attached to the resource.
crn String
(String) The network security group's crn.
default Boolean
(Boolean) Indicates if the network security group is the default network security group in the workspace.
id String
The provider-assigned unique ID for this managed resource.
members List<Property Map>
(List) The list of IPv4 addresses and\or network interfaces in the network security group.
name String
(String) The name of the network security group.
networkSecurityGroupMemberId String
(String) The unique identifier of the network security group resource.
userTags 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Crn string
(String) The network security group's crn.
Default bool
(Boolean) Indicates if the network security group is the default network security group in the workspace.
IbmPiNetworkSecurityGroupMemberId string
(String) The id of the remote network Address group or network security group the rules apply to. Not required for default-network-address-group.
Members List<PiNetworkSecurityGroupMemberMember>
(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.
NetworkSecurityGroupMemberId string
(String) The unique identifier of the network security group resource.
PiCloudInstanceId string
The GUID of the service instance associated with an account.
PiNetworkSecurityGroupId string
Network security group ID.
PiNetworkSecurityGroupMemberId string
Network security group member ID. This conflicts with pi_target and pi_type.
PiTarget string
The target member to add. Required with pi_type. This conflicts with pi_network_security_group_member_id.
PiType string
The type of member. Supported values are: ipv4-address, network-interface. Required with pi_target. This conflicts with pi_network_security_group_member_id.
Rules List<PiNetworkSecurityGroupMemberRule>
(List) The list of rules in the network security group.
Timeouts PiNetworkSecurityGroupMemberTimeouts
UserTags List<string>
(List) List of user tags attached to the resource.
Crn string
(String) The network security group's crn.
Default bool
(Boolean) Indicates if the network security group is the default network security group in the workspace.
IbmPiNetworkSecurityGroupMemberId string
(String) The id of the remote network Address group or network security group the rules apply to. Not required for default-network-address-group.
Members []PiNetworkSecurityGroupMemberMemberArgs
(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.
NetworkSecurityGroupMemberId string
(String) The unique identifier of the network security group resource.
PiCloudInstanceId string
The GUID of the service instance associated with an account.
PiNetworkSecurityGroupId string
Network security group ID.
PiNetworkSecurityGroupMemberId string
Network security group member ID. This conflicts with pi_target and pi_type.
PiTarget string
The target member to add. Required with pi_type. This conflicts with pi_network_security_group_member_id.
PiType string
The type of member. Supported values are: ipv4-address, network-interface. Required with pi_target. This conflicts with pi_network_security_group_member_id.
Rules []PiNetworkSecurityGroupMemberRuleArgs
(List) The list of rules in the network security group.
Timeouts PiNetworkSecurityGroupMemberTimeoutsArgs
UserTags []string
(List) List of user tags attached to the resource.
crn String
(String) The network security group's crn.
default_ Boolean
(Boolean) Indicates if the network security group is the default network security group in the workspace.
ibmPiNetworkSecurityGroupMemberId String
(String) The id of the remote network Address group or network security group the rules apply to. Not required for default-network-address-group.
members List<PiNetworkSecurityGroupMemberMember>
(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.
networkSecurityGroupMemberId String
(String) The unique identifier of the network security group resource.
piCloudInstanceId String
The GUID of the service instance associated with an account.
piNetworkSecurityGroupId String
Network security group ID.
piNetworkSecurityGroupMemberId String
Network security group member ID. This conflicts with pi_target and pi_type.
piTarget String
The target member to add. Required with pi_type. This conflicts with pi_network_security_group_member_id.
piType String
The type of member. Supported values are: ipv4-address, network-interface. Required with pi_target. This conflicts with pi_network_security_group_member_id.
rules List<PiNetworkSecurityGroupMemberRule>
(List) The list of rules in the network security group.
timeouts PiNetworkSecurityGroupMemberTimeouts
userTags List<String>
(List) List of user tags attached to the resource.
crn string
(String) The network security group's crn.
default boolean
(Boolean) Indicates if the network security group is the default network security group in the workspace.
ibmPiNetworkSecurityGroupMemberId string
(String) The id of the remote network Address group or network security group the rules apply to. Not required for default-network-address-group.
members PiNetworkSecurityGroupMemberMember[]
(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.
networkSecurityGroupMemberId string
(String) The unique identifier of the network security group resource.
piCloudInstanceId string
The GUID of the service instance associated with an account.
piNetworkSecurityGroupId string
Network security group ID.
piNetworkSecurityGroupMemberId string
Network security group member ID. This conflicts with pi_target and pi_type.
piTarget string
The target member to add. Required with pi_type. This conflicts with pi_network_security_group_member_id.
piType string
The type of member. Supported values are: ipv4-address, network-interface. Required with pi_target. This conflicts with pi_network_security_group_member_id.
rules PiNetworkSecurityGroupMemberRule[]
(List) The list of rules in the network security group.
timeouts PiNetworkSecurityGroupMemberTimeouts
userTags string[]
(List) List of user tags attached to the resource.
crn str
(String) The network security group's crn.
default bool
(Boolean) Indicates if the network security group is the default network security group in the workspace.
ibm_pi_network_security_group_member_id str
(String) The id of the remote network Address group or network security group the rules apply to. Not required for default-network-address-group.
members Sequence[PiNetworkSecurityGroupMemberMemberArgs]
(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_group_member_id str
(String) The unique identifier of the network security group resource.
pi_cloud_instance_id str
The GUID of the service instance associated with an account.
pi_network_security_group_id str
Network security group ID.
pi_network_security_group_member_id str
Network security group member ID. This conflicts with pi_target and pi_type.
pi_target str
The target member to add. Required with pi_type. This conflicts with pi_network_security_group_member_id.
pi_type str
The type of member. Supported values are: ipv4-address, network-interface. Required with pi_target. This conflicts with pi_network_security_group_member_id.
rules Sequence[PiNetworkSecurityGroupMemberRuleArgs]
(List) The list of rules in the network security group.
timeouts PiNetworkSecurityGroupMemberTimeoutsArgs
user_tags Sequence[str]
(List) List of user tags attached to the resource.
crn String
(String) The network security group's crn.
default Boolean
(Boolean) Indicates if the network security group is the default network security group in the workspace.
ibmPiNetworkSecurityGroupMemberId String
(String) The id of the remote network Address group or network security group the rules apply to. Not required for default-network-address-group.
members List<Property Map>
(List) The list of IPv4 addresses and\or network interfaces in the network security group.
name String
(String) The name of the network security group.
networkSecurityGroupMemberId String
(String) The unique identifier of the network security group resource.
piCloudInstanceId String
The GUID of the service instance associated with an account.
piNetworkSecurityGroupId String
Network security group ID.
piNetworkSecurityGroupMemberId String
Network security group member ID. This conflicts with pi_target and pi_type.
piTarget String
The target member to add. Required with pi_type. This conflicts with pi_network_security_group_member_id.
piType String
The type of member. Supported values are: ipv4-address, network-interface. Required with pi_target. This conflicts with pi_network_security_group_member_id.
rules List<Property Map>
(List) The list of rules in the network security group.
timeouts Property Map
userTags List<String>
(List) List of user tags attached to the resource.

Supporting Types

PiNetworkSecurityGroupMemberMember
, PiNetworkSecurityGroupMemberMemberArgs

Id This property is required. string
(String) The id of the remote network Address group or network security group the rules apply to. Not required for default-network-address-group.
MacAddress This property is required. string
(String) The mac address of a network interface included if the type is network-interface.
NetworkInterfaceId This property is required. string
(String) The network ID of a network interface included if the type is network-interface.
Target This property is required. string
(String) If ipv4-address type, then IPv4 address or if network-interface type, then network interface id.
Type This property is required. 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 This property is required. string
(String) The id of the remote network Address group or network security group the rules apply to. Not required for default-network-address-group.
MacAddress This property is required. string
(String) The mac address of a network interface included if the type is network-interface.
NetworkInterfaceId This property is required. string
(String) The network ID of a network interface included if the type is network-interface.
Target This property is required. string
(String) If ipv4-address type, then IPv4 address or if network-interface type, then network interface id.
Type This property is required. 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 This property is required. String
(String) The id of the remote network Address group or network security group the rules apply to. Not required for default-network-address-group.
macAddress This property is required. String
(String) The mac address of a network interface included if the type is network-interface.
networkInterfaceId This property is required. String
(String) The network ID of a network interface included if the type is network-interface.
target This property is required. String
(String) If ipv4-address type, then IPv4 address or if network-interface type, then network interface id.
type This property is required. 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 This property is required. string
(String) The id of the remote network Address group or network security group the rules apply to. Not required for default-network-address-group.
macAddress This property is required. string
(String) The mac address of a network interface included if the type is network-interface.
networkInterfaceId This property is required. string
(String) The network ID of a network interface included if the type is network-interface.
target This property is required. string
(String) If ipv4-address type, then IPv4 address or if network-interface type, then network interface id.
type This property is required. 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 This property is required. 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 This property is required. str
(String) The mac address of a network interface included if the type is network-interface.
network_interface_id This property is required. str
(String) The network ID of a network interface included if the type is network-interface.
target This property is required. str
(String) If ipv4-address type, then IPv4 address or if network-interface type, then network interface id.
type This property is required. 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 This property is required. String
(String) The id of the remote network Address group or network security group the rules apply to. Not required for default-network-address-group.
macAddress This property is required. String
(String) The mac address of a network interface included if the type is network-interface.
networkInterfaceId This property is required. String
(String) The network ID of a network interface included if the type is network-interface.
target This property is required. String
(String) If ipv4-address type, then IPv4 address or if network-interface type, then network interface id.
type This property is required. 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.
DestinationPorts List<PiNetworkSecurityGroupMemberRuleDestinationPort>
(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<PiNetworkSecurityGroupMemberRuleProtocol>
(List) The list of protocol.
Remotes List<PiNetworkSecurityGroupMemberRuleRemote>
(List) List of remote.
SourcePorts List<PiNetworkSecurityGroupMemberRuleSourcePort>
(List) List of source port
Action string
(String) The action to take if the rule matches network traffic. Supported values are: allow, deny.
DestinationPorts []PiNetworkSecurityGroupMemberRuleDestinationPort
(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 []PiNetworkSecurityGroupMemberRuleProtocol
(List) The list of protocol.
Remotes []PiNetworkSecurityGroupMemberRuleRemote
(List) List of remote.
SourcePorts []PiNetworkSecurityGroupMemberRuleSourcePort
(List) List of source port
action String
(String) The action to take if the rule matches network traffic. Supported values are: allow, deny.
destinationPorts List<PiNetworkSecurityGroupMemberRuleDestinationPort>
(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<PiNetworkSecurityGroupMemberRuleProtocol>
(List) The list of protocol.
remotes List<PiNetworkSecurityGroupMemberRuleRemote>
(List) List of remote.
sourcePorts List<PiNetworkSecurityGroupMemberRuleSourcePort>
(List) List of source port
action string
(String) The action to take if the rule matches network traffic. Supported values are: allow, deny.
destinationPorts PiNetworkSecurityGroupMemberRuleDestinationPort[]
(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 PiNetworkSecurityGroupMemberRuleProtocol[]
(List) The list of protocol.
remotes PiNetworkSecurityGroupMemberRuleRemote[]
(List) List of remote.
sourcePorts PiNetworkSecurityGroupMemberRuleSourcePort[]
(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[PiNetworkSecurityGroupMemberRuleDestinationPort]
(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[PiNetworkSecurityGroupMemberRuleProtocol]
(List) The list of protocol.
remotes Sequence[PiNetworkSecurityGroupMemberRuleRemote]
(List) List of remote.
source_ports Sequence[PiNetworkSecurityGroupMemberRuleSourcePort]
(List) List of source port
action String
(String) The action to take if the rule matches network traffic. Supported values are: allow, deny.
destinationPorts List<Property Map>
(List) The list of destination port.
id String
(String) The id of the remote network Address group or network security group the rules apply to. Not required for default-network-address-group.
protocols List<Property Map>
(List) The list of protocol.
remotes List<Property Map>
(List) List of remote.
sourcePorts List<Property Map>
(List) List of source port

PiNetworkSecurityGroupMemberRuleDestinationPort
, PiNetworkSecurityGroupMemberRuleDestinationPortArgs

Maximum This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. float
(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 This property is required. float
(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 This property is required. 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 This property is required. 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

IcmpType This property is required. string
(String) If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched.
TcpFlags This property is required. List<PiNetworkSecurityGroupMemberRuleProtocolTcpFlag>
(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 This property is required. string
(String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
IcmpType This property is required. string
(String) If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched.
TcpFlags This property is required. []PiNetworkSecurityGroupMemberRuleProtocolTcpFlag
(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 This property is required. string
(String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
icmpType This property is required. String
(String) If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched.
tcpFlags This property is required. List<PiNetworkSecurityGroupMemberRuleProtocolTcpFlag>
(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 This property is required. String
(String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
icmpType This property is required. string
(String) If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched.
tcpFlags This property is required. PiNetworkSecurityGroupMemberRuleProtocolTcpFlag[]
(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 This property is required. 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 This property is required. str
(String) If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched.
tcp_flags This property is required. Sequence[PiNetworkSecurityGroupMemberRuleProtocolTcpFlag]
(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 This property is required. str
(String) The type of remote group the rules apply to. Supported values are: network-security-group, network-address-group, default-network-address-group.
icmpType This property is required. String
(String) If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched.
tcpFlags This property is required. 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 This property is required. 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 This property is required. string
Flag This property is required. string
flag This property is required. String
flag This property is required. string
flag This property is required. str
flag This property is required. String

PiNetworkSecurityGroupMemberRuleRemote
, PiNetworkSecurityGroupMemberRuleRemoteArgs

Id This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. float
(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 This property is required. float
(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 This property is required. 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 This property is required. 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.