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

ibm.IsSecurityGroup

Explore with Pulumi AI

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

    Create, delete, and update a security group. Provides a networking security group resource that controls access to the public and private interfaces of a virtual server instance. To create rules for the security group, use the is_security_group_rule resource. For more information, about security group, see API Docs(https://cloud.ibm.com/docs/vpc?topic=vpc-using-security-groups).

    Note: VPC infrastructure services are a regional specific based endpoint, by default targets to us-south. Please make sure to target right region in the provider block as shown in the provider.tf file, if VPC service is created in region other than us-south.

    provider.tf

    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 Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const exampleIsVpc = new ibm.IsVpc("exampleIsVpc", {});
    const exampleIsSecurityGroup = new ibm.IsSecurityGroup("exampleIsSecurityGroup", {vpc: exampleIsVpc.isVpcId});
    
    import pulumi
    import pulumi_ibm as ibm
    
    example_is_vpc = ibm.IsVpc("exampleIsVpc")
    example_is_security_group = ibm.IsSecurityGroup("exampleIsSecurityGroup", vpc=example_is_vpc.is_vpc_id)
    
    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 {
    		exampleIsVpc, err := ibm.NewIsVpc(ctx, "exampleIsVpc", nil)
    		if err != nil {
    			return err
    		}
    		_, err = ibm.NewIsSecurityGroup(ctx, "exampleIsSecurityGroup", &ibm.IsSecurityGroupArgs{
    			Vpc: exampleIsVpc.IsVpcId,
    		})
    		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 exampleIsVpc = new Ibm.IsVpc("exampleIsVpc");
    
        var exampleIsSecurityGroup = new Ibm.IsSecurityGroup("exampleIsSecurityGroup", new()
        {
            Vpc = exampleIsVpc.IsVpcId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IsVpc;
    import com.pulumi.ibm.IsSecurityGroup;
    import com.pulumi.ibm.IsSecurityGroupArgs;
    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 exampleIsVpc = new IsVpc("exampleIsVpc");
    
            var exampleIsSecurityGroup = new IsSecurityGroup("exampleIsSecurityGroup", IsSecurityGroupArgs.builder()
                .vpc(exampleIsVpc.isVpcId())
                .build());
    
        }
    }
    
    resources:
      exampleIsVpc:
        type: ibm:IsVpc
      exampleIsSecurityGroup:
        type: ibm:IsSecurityGroup
        properties:
          vpc: ${exampleIsVpc.isVpcId}
    

    Create IsSecurityGroup Resource

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

    Constructor syntax

    new IsSecurityGroup(name: string, args: IsSecurityGroupArgs, opts?: CustomResourceOptions);
    @overload
    def IsSecurityGroup(resource_name: str,
                        args: IsSecurityGroupArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def IsSecurityGroup(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        vpc: Optional[str] = None,
                        access_tags: Optional[Sequence[str]] = None,
                        is_security_group_id: Optional[str] = None,
                        name: Optional[str] = None,
                        resource_group: Optional[str] = None,
                        tags: Optional[Sequence[str]] = None,
                        timeouts: Optional[IsSecurityGroupTimeoutsArgs] = None)
    func NewIsSecurityGroup(ctx *Context, name string, args IsSecurityGroupArgs, opts ...ResourceOption) (*IsSecurityGroup, error)
    public IsSecurityGroup(string name, IsSecurityGroupArgs args, CustomResourceOptions? opts = null)
    public IsSecurityGroup(String name, IsSecurityGroupArgs args)
    public IsSecurityGroup(String name, IsSecurityGroupArgs args, CustomResourceOptions options)
    
    type: ibm:IsSecurityGroup
    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 IsSecurityGroupArgs
    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 IsSecurityGroupArgs
    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 IsSecurityGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IsSecurityGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IsSecurityGroupArgs
    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 isSecurityGroupResource = new Ibm.IsSecurityGroup("isSecurityGroupResource", new()
    {
        Vpc = "string",
        AccessTags = new[]
        {
            "string",
        },
        IsSecurityGroupId = "string",
        Name = "string",
        ResourceGroup = "string",
        Tags = new[]
        {
            "string",
        },
        Timeouts = new Ibm.Inputs.IsSecurityGroupTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
    });
    
    example, err := ibm.NewIsSecurityGroup(ctx, "isSecurityGroupResource", &ibm.IsSecurityGroupArgs{
    	Vpc: pulumi.String("string"),
    	AccessTags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	IsSecurityGroupId: pulumi.String("string"),
    	Name:              pulumi.String("string"),
    	ResourceGroup:     pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Timeouts: &ibm.IsSecurityGroupTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    })
    
    var isSecurityGroupResource = new IsSecurityGroup("isSecurityGroupResource", IsSecurityGroupArgs.builder()
        .vpc("string")
        .accessTags("string")
        .isSecurityGroupId("string")
        .name("string")
        .resourceGroup("string")
        .tags("string")
        .timeouts(IsSecurityGroupTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .build());
    
    is_security_group_resource = ibm.IsSecurityGroup("isSecurityGroupResource",
        vpc="string",
        access_tags=["string"],
        is_security_group_id="string",
        name="string",
        resource_group="string",
        tags=["string"],
        timeouts={
            "create": "string",
            "delete": "string",
        })
    
    const isSecurityGroupResource = new ibm.IsSecurityGroup("isSecurityGroupResource", {
        vpc: "string",
        accessTags: ["string"],
        isSecurityGroupId: "string",
        name: "string",
        resourceGroup: "string",
        tags: ["string"],
        timeouts: {
            create: "string",
            "delete": "string",
        },
    });
    
    type: ibm:IsSecurityGroup
    properties:
        accessTags:
            - string
        isSecurityGroupId: string
        name: string
        resourceGroup: string
        tags:
            - string
        timeouts:
            create: string
            delete: string
        vpc: string
    

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

    Vpc string
    The VPC ID.
    AccessTags List<string>

    A list of access management tags to attach to the security group.

    Note: You can attach only those access tags that already exists. For more information, about creating access tags, see working with tags. You must have the access listed in the Granting users access to tag resources for access_tags access_tags must be in the format key:value.

    IsSecurityGroupId string
    (String) The ID of the security group.
    Name string
    The security group name.
    ResourceGroup string
    The resource group ID where the security group to be created.
    Tags List<string>
    The tags associated with an instance.
    Timeouts IsSecurityGroupTimeouts
    Vpc string
    The VPC ID.
    AccessTags []string

    A list of access management tags to attach to the security group.

    Note: You can attach only those access tags that already exists. For more information, about creating access tags, see working with tags. You must have the access listed in the Granting users access to tag resources for access_tags access_tags must be in the format key:value.

    IsSecurityGroupId string
    (String) The ID of the security group.
    Name string
    The security group name.
    ResourceGroup string
    The resource group ID where the security group to be created.
    Tags []string
    The tags associated with an instance.
    Timeouts IsSecurityGroupTimeoutsArgs
    vpc String
    The VPC ID.
    accessTags List<String>

    A list of access management tags to attach to the security group.

    Note: You can attach only those access tags that already exists. For more information, about creating access tags, see working with tags. You must have the access listed in the Granting users access to tag resources for access_tags access_tags must be in the format key:value.

    isSecurityGroupId String
    (String) The ID of the security group.
    name String
    The security group name.
    resourceGroup String
    The resource group ID where the security group to be created.
    tags List<String>
    The tags associated with an instance.
    timeouts IsSecurityGroupTimeouts
    vpc string
    The VPC ID.
    accessTags string[]

    A list of access management tags to attach to the security group.

    Note: You can attach only those access tags that already exists. For more information, about creating access tags, see working with tags. You must have the access listed in the Granting users access to tag resources for access_tags access_tags must be in the format key:value.

    isSecurityGroupId string
    (String) The ID of the security group.
    name string
    The security group name.
    resourceGroup string
    The resource group ID where the security group to be created.
    tags string[]
    The tags associated with an instance.
    timeouts IsSecurityGroupTimeouts
    vpc str
    The VPC ID.
    access_tags Sequence[str]

    A list of access management tags to attach to the security group.

    Note: You can attach only those access tags that already exists. For more information, about creating access tags, see working with tags. You must have the access listed in the Granting users access to tag resources for access_tags access_tags must be in the format key:value.

    is_security_group_id str
    (String) The ID of the security group.
    name str
    The security group name.
    resource_group str
    The resource group ID where the security group to be created.
    tags Sequence[str]
    The tags associated with an instance.
    timeouts IsSecurityGroupTimeoutsArgs
    vpc String
    The VPC ID.
    accessTags List<String>

    A list of access management tags to attach to the security group.

    Note: You can attach only those access tags that already exists. For more information, about creating access tags, see working with tags. You must have the access listed in the Granting users access to tag resources for access_tags access_tags must be in the format key:value.

    isSecurityGroupId String
    (String) The ID of the security group.
    name String
    The security group name.
    resourceGroup String
    The resource group ID where the security group to be created.
    tags List<String>
    The tags associated with an instance.
    timeouts Property Map

    Outputs

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

    Crn string
    (String) The CRN of the security group.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceControllerUrl string
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
    ResourceCrn string
    The crn of the resource
    ResourceGroupName string
    The resource group name in which resource is provisioned
    ResourceName string
    The name of the resource
    Rules List<IsSecurityGroupRule>
    (List of Objects) A nested block describes the rules of this security group. Nested rules blocks have the following structure.
    Crn string
    (String) The CRN of the security group.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceControllerUrl string
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
    ResourceCrn string
    The crn of the resource
    ResourceGroupName string
    The resource group name in which resource is provisioned
    ResourceName string
    The name of the resource
    Rules []IsSecurityGroupRuleType
    (List of Objects) A nested block describes the rules of this security group. Nested rules blocks have the following structure.
    crn String
    (String) The CRN of the security group.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceControllerUrl String
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
    resourceCrn String
    The crn of the resource
    resourceGroupName String
    The resource group name in which resource is provisioned
    resourceName String
    The name of the resource
    rules List<IsSecurityGroupRule>
    (List of Objects) A nested block describes the rules of this security group. Nested rules blocks have the following structure.
    crn string
    (String) The CRN of the security group.
    id string
    The provider-assigned unique ID for this managed resource.
    resourceControllerUrl string
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
    resourceCrn string
    The crn of the resource
    resourceGroupName string
    The resource group name in which resource is provisioned
    resourceName string
    The name of the resource
    rules IsSecurityGroupRule[]
    (List of Objects) A nested block describes the rules of this security group. Nested rules blocks have the following structure.
    crn str
    (String) The CRN of the security group.
    id str
    The provider-assigned unique ID for this managed resource.
    resource_controller_url str
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
    resource_crn str
    The crn of the resource
    resource_group_name str
    The resource group name in which resource is provisioned
    resource_name str
    The name of the resource
    rules Sequence[IsSecurityGroupRule]
    (List of Objects) A nested block describes the rules of this security group. Nested rules blocks have the following structure.
    crn String
    (String) The CRN of the security group.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceControllerUrl String
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
    resourceCrn String
    The crn of the resource
    resourceGroupName String
    The resource group name in which resource is provisioned
    resourceName String
    The name of the resource
    rules List<Property Map>
    (List of Objects) A nested block describes the rules of this security group. Nested rules blocks have the following structure.

    Look up Existing IsSecurityGroup Resource

    Get an existing IsSecurityGroup 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?: IsSecurityGroupState, opts?: CustomResourceOptions): IsSecurityGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_tags: Optional[Sequence[str]] = None,
            crn: Optional[str] = None,
            is_security_group_id: Optional[str] = None,
            name: Optional[str] = None,
            resource_controller_url: Optional[str] = None,
            resource_crn: Optional[str] = None,
            resource_group: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            resource_name: Optional[str] = None,
            rules: Optional[Sequence[IsSecurityGroupRuleArgs]] = None,
            tags: Optional[Sequence[str]] = None,
            timeouts: Optional[IsSecurityGroupTimeoutsArgs] = None,
            vpc: Optional[str] = None) -> IsSecurityGroup
    func GetIsSecurityGroup(ctx *Context, name string, id IDInput, state *IsSecurityGroupState, opts ...ResourceOption) (*IsSecurityGroup, error)
    public static IsSecurityGroup Get(string name, Input<string> id, IsSecurityGroupState? state, CustomResourceOptions? opts = null)
    public static IsSecurityGroup get(String name, Output<String> id, IsSecurityGroupState state, CustomResourceOptions options)
    resources:  _:    type: ibm:IsSecurityGroup    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccessTags List<string>

    A list of access management tags to attach to the security group.

    Note: You can attach only those access tags that already exists. For more information, about creating access tags, see working with tags. You must have the access listed in the Granting users access to tag resources for access_tags access_tags must be in the format key:value.

    Crn string
    (String) The CRN of the security group.
    IsSecurityGroupId string
    (String) The ID of the security group.
    Name string
    The security group name.
    ResourceControllerUrl string
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
    ResourceCrn string
    The crn of the resource
    ResourceGroup string
    The resource group ID where the security group to be created.
    ResourceGroupName string
    The resource group name in which resource is provisioned
    ResourceName string
    The name of the resource
    Rules List<IsSecurityGroupRule>
    (List of Objects) A nested block describes the rules of this security group. Nested rules blocks have the following structure.
    Tags List<string>
    The tags associated with an instance.
    Timeouts IsSecurityGroupTimeouts
    Vpc string
    The VPC ID.
    AccessTags []string

    A list of access management tags to attach to the security group.

    Note: You can attach only those access tags that already exists. For more information, about creating access tags, see working with tags. You must have the access listed in the Granting users access to tag resources for access_tags access_tags must be in the format key:value.

    Crn string
    (String) The CRN of the security group.
    IsSecurityGroupId string
    (String) The ID of the security group.
    Name string
    The security group name.
    ResourceControllerUrl string
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
    ResourceCrn string
    The crn of the resource
    ResourceGroup string
    The resource group ID where the security group to be created.
    ResourceGroupName string
    The resource group name in which resource is provisioned
    ResourceName string
    The name of the resource
    Rules []IsSecurityGroupRuleTypeArgs
    (List of Objects) A nested block describes the rules of this security group. Nested rules blocks have the following structure.
    Tags []string
    The tags associated with an instance.
    Timeouts IsSecurityGroupTimeoutsArgs
    Vpc string
    The VPC ID.
    accessTags List<String>

    A list of access management tags to attach to the security group.

    Note: You can attach only those access tags that already exists. For more information, about creating access tags, see working with tags. You must have the access listed in the Granting users access to tag resources for access_tags access_tags must be in the format key:value.

    crn String
    (String) The CRN of the security group.
    isSecurityGroupId String
    (String) The ID of the security group.
    name String
    The security group name.
    resourceControllerUrl String
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
    resourceCrn String
    The crn of the resource
    resourceGroup String
    The resource group ID where the security group to be created.
    resourceGroupName String
    The resource group name in which resource is provisioned
    resourceName String
    The name of the resource
    rules List<IsSecurityGroupRule>
    (List of Objects) A nested block describes the rules of this security group. Nested rules blocks have the following structure.
    tags List<String>
    The tags associated with an instance.
    timeouts IsSecurityGroupTimeouts
    vpc String
    The VPC ID.
    accessTags string[]

    A list of access management tags to attach to the security group.

    Note: You can attach only those access tags that already exists. For more information, about creating access tags, see working with tags. You must have the access listed in the Granting users access to tag resources for access_tags access_tags must be in the format key:value.

    crn string
    (String) The CRN of the security group.
    isSecurityGroupId string
    (String) The ID of the security group.
    name string
    The security group name.
    resourceControllerUrl string
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
    resourceCrn string
    The crn of the resource
    resourceGroup string
    The resource group ID where the security group to be created.
    resourceGroupName string
    The resource group name in which resource is provisioned
    resourceName string
    The name of the resource
    rules IsSecurityGroupRule[]
    (List of Objects) A nested block describes the rules of this security group. Nested rules blocks have the following structure.
    tags string[]
    The tags associated with an instance.
    timeouts IsSecurityGroupTimeouts
    vpc string
    The VPC ID.
    access_tags Sequence[str]

    A list of access management tags to attach to the security group.

    Note: You can attach only those access tags that already exists. For more information, about creating access tags, see working with tags. You must have the access listed in the Granting users access to tag resources for access_tags access_tags must be in the format key:value.

    crn str
    (String) The CRN of the security group.
    is_security_group_id str
    (String) The ID of the security group.
    name str
    The security group name.
    resource_controller_url str
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
    resource_crn str
    The crn of the resource
    resource_group str
    The resource group ID where the security group to be created.
    resource_group_name str
    The resource group name in which resource is provisioned
    resource_name str
    The name of the resource
    rules Sequence[IsSecurityGroupRuleArgs]
    (List of Objects) A nested block describes the rules of this security group. Nested rules blocks have the following structure.
    tags Sequence[str]
    The tags associated with an instance.
    timeouts IsSecurityGroupTimeoutsArgs
    vpc str
    The VPC ID.
    accessTags List<String>

    A list of access management tags to attach to the security group.

    Note: You can attach only those access tags that already exists. For more information, about creating access tags, see working with tags. You must have the access listed in the Granting users access to tag resources for access_tags access_tags must be in the format key:value.

    crn String
    (String) The CRN of the security group.
    isSecurityGroupId String
    (String) The ID of the security group.
    name String
    The security group name.
    resourceControllerUrl String
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
    resourceCrn String
    The crn of the resource
    resourceGroup String
    The resource group ID where the security group to be created.
    resourceGroupName String
    The resource group name in which resource is provisioned
    resourceName String
    The name of the resource
    rules List<Property Map>
    (List of Objects) A nested block describes the rules of this security group. Nested rules blocks have the following structure.
    tags List<String>
    The tags associated with an instance.
    timeouts Property Map
    vpc String
    The VPC ID.

    Supporting Types

    IsSecurityGroupRule, IsSecurityGroupRuleArgs

    Code double
    (String) The ICMP traffic code to allow.
    Direction string
    (String) The direction of the traffic either inbound or outbound.
    IpVersion string
    (String) IP version: ipv4
    Local string
    (String) The local IP address or range of local IP addresses to which this rule will allow inbound traffic (or from which, for outbound traffic). A CIDR block of 0.0.0.0/0 allows traffic to all local IP addresses (or from all local IP addresses, for outbound rules). an IP address, a CIDR block.
    PortMax double
    (Integer) The TCP/UDP port range that includes the maximum bound.
    PortMin double
    (Integer) The TCP/UDP port range that includes the minimum bound.
    Protocol string
    (String) The type of the protocol all, icmp, tcp, udp.
    Remote string
    (String) Security group id, an IP address, a CIDR block, or a single security group identifier.
    Type double
    (String) The ICMP traffic type to allow.
    Code float64
    (String) The ICMP traffic code to allow.
    Direction string
    (String) The direction of the traffic either inbound or outbound.
    IpVersion string
    (String) IP version: ipv4
    Local string
    (String) The local IP address or range of local IP addresses to which this rule will allow inbound traffic (or from which, for outbound traffic). A CIDR block of 0.0.0.0/0 allows traffic to all local IP addresses (or from all local IP addresses, for outbound rules). an IP address, a CIDR block.
    PortMax float64
    (Integer) The TCP/UDP port range that includes the maximum bound.
    PortMin float64
    (Integer) The TCP/UDP port range that includes the minimum bound.
    Protocol string
    (String) The type of the protocol all, icmp, tcp, udp.
    Remote string
    (String) Security group id, an IP address, a CIDR block, or a single security group identifier.
    Type float64
    (String) The ICMP traffic type to allow.
    code Double
    (String) The ICMP traffic code to allow.
    direction String
    (String) The direction of the traffic either inbound or outbound.
    ipVersion String
    (String) IP version: ipv4
    local String
    (String) The local IP address or range of local IP addresses to which this rule will allow inbound traffic (or from which, for outbound traffic). A CIDR block of 0.0.0.0/0 allows traffic to all local IP addresses (or from all local IP addresses, for outbound rules). an IP address, a CIDR block.
    portMax Double
    (Integer) The TCP/UDP port range that includes the maximum bound.
    portMin Double
    (Integer) The TCP/UDP port range that includes the minimum bound.
    protocol String
    (String) The type of the protocol all, icmp, tcp, udp.
    remote String
    (String) Security group id, an IP address, a CIDR block, or a single security group identifier.
    type Double
    (String) The ICMP traffic type to allow.
    code number
    (String) The ICMP traffic code to allow.
    direction string
    (String) The direction of the traffic either inbound or outbound.
    ipVersion string
    (String) IP version: ipv4
    local string
    (String) The local IP address or range of local IP addresses to which this rule will allow inbound traffic (or from which, for outbound traffic). A CIDR block of 0.0.0.0/0 allows traffic to all local IP addresses (or from all local IP addresses, for outbound rules). an IP address, a CIDR block.
    portMax number
    (Integer) The TCP/UDP port range that includes the maximum bound.
    portMin number
    (Integer) The TCP/UDP port range that includes the minimum bound.
    protocol string
    (String) The type of the protocol all, icmp, tcp, udp.
    remote string
    (String) Security group id, an IP address, a CIDR block, or a single security group identifier.
    type number
    (String) The ICMP traffic type to allow.
    code float
    (String) The ICMP traffic code to allow.
    direction str
    (String) The direction of the traffic either inbound or outbound.
    ip_version str
    (String) IP version: ipv4
    local str
    (String) The local IP address or range of local IP addresses to which this rule will allow inbound traffic (or from which, for outbound traffic). A CIDR block of 0.0.0.0/0 allows traffic to all local IP addresses (or from all local IP addresses, for outbound rules). an IP address, a CIDR block.
    port_max float
    (Integer) The TCP/UDP port range that includes the maximum bound.
    port_min float
    (Integer) The TCP/UDP port range that includes the minimum bound.
    protocol str
    (String) The type of the protocol all, icmp, tcp, udp.
    remote str
    (String) Security group id, an IP address, a CIDR block, or a single security group identifier.
    type float
    (String) The ICMP traffic type to allow.
    code Number
    (String) The ICMP traffic code to allow.
    direction String
    (String) The direction of the traffic either inbound or outbound.
    ipVersion String
    (String) IP version: ipv4
    local String
    (String) The local IP address or range of local IP addresses to which this rule will allow inbound traffic (or from which, for outbound traffic). A CIDR block of 0.0.0.0/0 allows traffic to all local IP addresses (or from all local IP addresses, for outbound rules). an IP address, a CIDR block.
    portMax Number
    (Integer) The TCP/UDP port range that includes the maximum bound.
    portMin Number
    (Integer) The TCP/UDP port range that includes the minimum bound.
    protocol String
    (String) The type of the protocol all, icmp, tcp, udp.
    remote String
    (String) Security group id, an IP address, a CIDR block, or a single security group identifier.
    type Number
    (String) The ICMP traffic type to allow.

    IsSecurityGroupTimeouts, IsSecurityGroupTimeoutsArgs

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

    Import

    The ibm_is_security_group resource can be imported by using load balancer ID.

    Example

    $ pulumi import ibm:index/isSecurityGroup:IsSecurityGroup example a1aaa111-1111-111a-1a11-a11a1a11a11a
    

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

    Package Details

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