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

ibm.getIsSecurityGroups

Explore with Pulumi AI

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

    Provides a read-only data source for SecurityGroupCollection. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. For more information, about security group, see API Docs(https://cloud.ibm.com/docs/vpc?topic=vpc-using-security-groups).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const example = ibm.getIsSecurityGroups({});
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_security_groups()
    
    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.GetIsSecurityGroups(ctx, &ibm.GetIsSecurityGroupsArgs{}, nil)
    		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 example = Ibm.GetIsSecurityGroups.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetIsSecurityGroupsArgs;
    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) {
            final var example = IbmFunctions.getIsSecurityGroups();
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsSecurityGroups
          arguments: {}
    

    OR with Filters:

    Filter with VPC name

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const example = ibm.getIsSecurityGroups({
        vpcName: ibm_is_vpc.example.name,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_security_groups(vpc_name=ibm_is_vpc["example"]["name"])
    
    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.GetIsSecurityGroups(ctx, &ibm.GetIsSecurityGroupsArgs{
    			VpcName: pulumi.StringRef(ibm_is_vpc.Example.Name),
    		}, nil)
    		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 example = Ibm.GetIsSecurityGroups.Invoke(new()
        {
            VpcName = ibm_is_vpc.Example.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetIsSecurityGroupsArgs;
    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) {
            final var example = IbmFunctions.getIsSecurityGroups(GetIsSecurityGroupsArgs.builder()
                .vpcName(ibm_is_vpc.example().name())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsSecurityGroups
          arguments:
            vpcName: ${ibm_is_vpc.example.name}
    

    Filter with VPC ID

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const example = ibm.getIsSecurityGroups({
        vpcId: ibm_is_vpc.example.id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_security_groups(vpc_id=ibm_is_vpc["example"]["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 {
    		_, err := ibm.GetIsSecurityGroups(ctx, &ibm.GetIsSecurityGroupsArgs{
    			VpcId: pulumi.StringRef(ibm_is_vpc.Example.Id),
    		}, nil)
    		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 example = Ibm.GetIsSecurityGroups.Invoke(new()
        {
            VpcId = ibm_is_vpc.Example.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetIsSecurityGroupsArgs;
    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) {
            final var example = IbmFunctions.getIsSecurityGroups(GetIsSecurityGroupsArgs.builder()
                .vpcId(ibm_is_vpc.example().id())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsSecurityGroups
          arguments:
            vpcId: ${ibm_is_vpc.example.id}
    

    Filter with VPC CRN

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const example = ibm.getIsSecurityGroups({
        vpcCrn: ibm_is_vpc.example.crn,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_security_groups(vpc_crn=ibm_is_vpc["example"]["crn"])
    
    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.GetIsSecurityGroups(ctx, &ibm.GetIsSecurityGroupsArgs{
    			VpcCrn: pulumi.StringRef(ibm_is_vpc.Example.Crn),
    		}, nil)
    		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 example = Ibm.GetIsSecurityGroups.Invoke(new()
        {
            VpcCrn = ibm_is_vpc.Example.Crn,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetIsSecurityGroupsArgs;
    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) {
            final var example = IbmFunctions.getIsSecurityGroups(GetIsSecurityGroupsArgs.builder()
                .vpcCrn(ibm_is_vpc.example().crn())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsSecurityGroups
          arguments:
            vpcCrn: ${ibm_is_vpc.example.crn}
    

    Filter with Resource Group ID

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const example = ibm.getIsSecurityGroups({
        resourceGroup: data.ibm_resource_group["default"].id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_security_groups(resource_group=data["ibm_resource_group"]["default"]["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 {
    		_, err := ibm.GetIsSecurityGroups(ctx, &ibm.GetIsSecurityGroupsArgs{
    			ResourceGroup: pulumi.StringRef(data.Ibm_resource_group.Default.Id),
    		}, nil)
    		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 example = Ibm.GetIsSecurityGroups.Invoke(new()
        {
            ResourceGroup = data.Ibm_resource_group.Default.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetIsSecurityGroupsArgs;
    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) {
            final var example = IbmFunctions.getIsSecurityGroups(GetIsSecurityGroupsArgs.builder()
                .resourceGroup(data.ibm_resource_group().default().id())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsSecurityGroups
          arguments:
            resourceGroup: ${data.ibm_resource_group.default.id}
    

    Using getIsSecurityGroups

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getIsSecurityGroups(args: GetIsSecurityGroupsArgs, opts?: InvokeOptions): Promise<GetIsSecurityGroupsResult>
    function getIsSecurityGroupsOutput(args: GetIsSecurityGroupsOutputArgs, opts?: InvokeOptions): Output<GetIsSecurityGroupsResult>
    def get_is_security_groups(id: Optional[str] = None,
                               resource_group: Optional[str] = None,
                               vpc_crn: Optional[str] = None,
                               vpc_id: Optional[str] = None,
                               vpc_name: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetIsSecurityGroupsResult
    def get_is_security_groups_output(id: Optional[pulumi.Input[str]] = None,
                               resource_group: Optional[pulumi.Input[str]] = None,
                               vpc_crn: Optional[pulumi.Input[str]] = None,
                               vpc_id: Optional[pulumi.Input[str]] = None,
                               vpc_name: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetIsSecurityGroupsResult]
    func GetIsSecurityGroups(ctx *Context, args *GetIsSecurityGroupsArgs, opts ...InvokeOption) (*GetIsSecurityGroupsResult, error)
    func GetIsSecurityGroupsOutput(ctx *Context, args *GetIsSecurityGroupsOutputArgs, opts ...InvokeOption) GetIsSecurityGroupsResultOutput

    > Note: This function is named GetIsSecurityGroups in the Go SDK.

    public static class GetIsSecurityGroups 
    {
        public static Task<GetIsSecurityGroupsResult> InvokeAsync(GetIsSecurityGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetIsSecurityGroupsResult> Invoke(GetIsSecurityGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsSecurityGroupsResult> getIsSecurityGroups(GetIsSecurityGroupsArgs args, InvokeOptions options)
    public static Output<GetIsSecurityGroupsResult> getIsSecurityGroups(GetIsSecurityGroupsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsSecurityGroups:getIsSecurityGroups
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    (String) The unique identifier for this VPC.
    ResourceGroup string
    (List) The resource group object, for this security group.
    VpcCrn string
    Filters the collection to resources in the VPC with the specified CRN
    VpcId string
    Filters the collection to resources in the VPC with the specified identifier
    VpcName string
    Filters the collection to resources in the VPC with the exact specified name
    Id string
    (String) The unique identifier for this VPC.
    ResourceGroup string
    (List) The resource group object, for this security group.
    VpcCrn string
    Filters the collection to resources in the VPC with the specified CRN
    VpcId string
    Filters the collection to resources in the VPC with the specified identifier
    VpcName string
    Filters the collection to resources in the VPC with the exact specified name
    id String
    (String) The unique identifier for this VPC.
    resourceGroup String
    (List) The resource group object, for this security group.
    vpcCrn String
    Filters the collection to resources in the VPC with the specified CRN
    vpcId String
    Filters the collection to resources in the VPC with the specified identifier
    vpcName String
    Filters the collection to resources in the VPC with the exact specified name
    id string
    (String) The unique identifier for this VPC.
    resourceGroup string
    (List) The resource group object, for this security group.
    vpcCrn string
    Filters the collection to resources in the VPC with the specified CRN
    vpcId string
    Filters the collection to resources in the VPC with the specified identifier
    vpcName string
    Filters the collection to resources in the VPC with the exact specified name
    id str
    (String) The unique identifier for this VPC.
    resource_group str
    (List) The resource group object, for this security group.
    vpc_crn str
    Filters the collection to resources in the VPC with the specified CRN
    vpc_id str
    Filters the collection to resources in the VPC with the specified identifier
    vpc_name str
    Filters the collection to resources in the VPC with the exact specified name
    id String
    (String) The unique identifier for this VPC.
    resourceGroup String
    (List) The resource group object, for this security group.
    vpcCrn String
    Filters the collection to resources in the VPC with the specified CRN
    vpcId String
    Filters the collection to resources in the VPC with the specified identifier
    vpcName String
    Filters the collection to resources in the VPC with the exact specified name

    getIsSecurityGroups Result

    The following output properties are available:

    Id string
    (String) The unique identifier for this VPC.
    SecurityGroups List<GetIsSecurityGroupsSecurityGroup>
    (List) Collection of security groups.
    ResourceGroup string
    (List) The resource group object, for this security group.
    VpcCrn string
    Filters the collection to resources in the VPC with the specified CRN
    VpcId string
    Filters the collection to resources in the VPC with the specified identifier
    VpcName string
    Filters the collection to resources in the VPC with the exact specified name
    Id string
    (String) The unique identifier for this VPC.
    SecurityGroups []GetIsSecurityGroupsSecurityGroup
    (List) Collection of security groups.
    ResourceGroup string
    (List) The resource group object, for this security group.
    VpcCrn string
    Filters the collection to resources in the VPC with the specified CRN
    VpcId string
    Filters the collection to resources in the VPC with the specified identifier
    VpcName string
    Filters the collection to resources in the VPC with the exact specified name
    id String
    (String) The unique identifier for this VPC.
    securityGroups List<GetIsSecurityGroupsSecurityGroup>
    (List) Collection of security groups.
    resourceGroup String
    (List) The resource group object, for this security group.
    vpcCrn String
    Filters the collection to resources in the VPC with the specified CRN
    vpcId String
    Filters the collection to resources in the VPC with the specified identifier
    vpcName String
    Filters the collection to resources in the VPC with the exact specified name
    id string
    (String) The unique identifier for this VPC.
    securityGroups GetIsSecurityGroupsSecurityGroup[]
    (List) Collection of security groups.
    resourceGroup string
    (List) The resource group object, for this security group.
    vpcCrn string
    Filters the collection to resources in the VPC with the specified CRN
    vpcId string
    Filters the collection to resources in the VPC with the specified identifier
    vpcName string
    Filters the collection to resources in the VPC with the exact specified name
    id str
    (String) The unique identifier for this VPC.
    security_groups Sequence[GetIsSecurityGroupsSecurityGroup]
    (List) Collection of security groups.
    resource_group str
    (List) The resource group object, for this security group.
    vpc_crn str
    Filters the collection to resources in the VPC with the specified CRN
    vpc_id str
    Filters the collection to resources in the VPC with the specified identifier
    vpc_name str
    Filters the collection to resources in the VPC with the exact specified name
    id String
    (String) The unique identifier for this VPC.
    securityGroups List<Property Map>
    (List) Collection of security groups.
    resourceGroup String
    (List) The resource group object, for this security group.
    vpcCrn String
    Filters the collection to resources in the VPC with the specified CRN
    vpcId String
    Filters the collection to resources in the VPC with the specified identifier
    vpcName String
    Filters the collection to resources in the VPC with the exact specified name

    Supporting Types

    GetIsSecurityGroupsSecurityGroup

    AccessTags List<string>
    (List) Access management tags associated for the security group.
    CreatedAt string
    (String) The date and time that this security group was created.
    Crn string
    (String) The CRN for this VPC.
    Href string
    (String) The URL for this VPC.
    Id string
    (String) The unique identifier for this VPC.
    Name string
    (String) The unique user-defined name for this VPC.
    ResourceGroups List<GetIsSecurityGroupsSecurityGroupResourceGroup>
    (List) The resource group object, for this security group.
    Rules List<GetIsSecurityGroupsSecurityGroupRule>
    (List) The rules for this security group. If no rules exist, all traffic will be denied.
    Targets List<GetIsSecurityGroupsSecurityGroupTarget>
    (List) The targets for this security group. Nested scheme for targets:
    Vpcs List<GetIsSecurityGroupsSecurityGroupVpc>
    (List) The VPC this security group is a part of. Nested scheme for vpc:
    AccessTags []string
    (List) Access management tags associated for the security group.
    CreatedAt string
    (String) The date and time that this security group was created.
    Crn string
    (String) The CRN for this VPC.
    Href string
    (String) The URL for this VPC.
    Id string
    (String) The unique identifier for this VPC.
    Name string
    (String) The unique user-defined name for this VPC.
    ResourceGroups []GetIsSecurityGroupsSecurityGroupResourceGroup
    (List) The resource group object, for this security group.
    Rules []GetIsSecurityGroupsSecurityGroupRule
    (List) The rules for this security group. If no rules exist, all traffic will be denied.
    Targets []GetIsSecurityGroupsSecurityGroupTarget
    (List) The targets for this security group. Nested scheme for targets:
    Vpcs []GetIsSecurityGroupsSecurityGroupVpc
    (List) The VPC this security group is a part of. Nested scheme for vpc:
    accessTags List<String>
    (List) Access management tags associated for the security group.
    createdAt String
    (String) The date and time that this security group was created.
    crn String
    (String) The CRN for this VPC.
    href String
    (String) The URL for this VPC.
    id String
    (String) The unique identifier for this VPC.
    name String
    (String) The unique user-defined name for this VPC.
    resourceGroups List<GetIsSecurityGroupsSecurityGroupResourceGroup>
    (List) The resource group object, for this security group.
    rules List<GetIsSecurityGroupsSecurityGroupRule>
    (List) The rules for this security group. If no rules exist, all traffic will be denied.
    targets List<GetIsSecurityGroupsSecurityGroupTarget>
    (List) The targets for this security group. Nested scheme for targets:
    vpcs List<GetIsSecurityGroupsSecurityGroupVpc>
    (List) The VPC this security group is a part of. Nested scheme for vpc:
    accessTags string[]
    (List) Access management tags associated for the security group.
    createdAt string
    (String) The date and time that this security group was created.
    crn string
    (String) The CRN for this VPC.
    href string
    (String) The URL for this VPC.
    id string
    (String) The unique identifier for this VPC.
    name string
    (String) The unique user-defined name for this VPC.
    resourceGroups GetIsSecurityGroupsSecurityGroupResourceGroup[]
    (List) The resource group object, for this security group.
    rules GetIsSecurityGroupsSecurityGroupRule[]
    (List) The rules for this security group. If no rules exist, all traffic will be denied.
    targets GetIsSecurityGroupsSecurityGroupTarget[]
    (List) The targets for this security group. Nested scheme for targets:
    vpcs GetIsSecurityGroupsSecurityGroupVpc[]
    (List) The VPC this security group is a part of. Nested scheme for vpc:
    access_tags Sequence[str]
    (List) Access management tags associated for the security group.
    created_at str
    (String) The date and time that this security group was created.
    crn str
    (String) The CRN for this VPC.
    href str
    (String) The URL for this VPC.
    id str
    (String) The unique identifier for this VPC.
    name str
    (String) The unique user-defined name for this VPC.
    resource_groups Sequence[GetIsSecurityGroupsSecurityGroupResourceGroup]
    (List) The resource group object, for this security group.
    rules Sequence[GetIsSecurityGroupsSecurityGroupRule]
    (List) The rules for this security group. If no rules exist, all traffic will be denied.
    targets Sequence[GetIsSecurityGroupsSecurityGroupTarget]
    (List) The targets for this security group. Nested scheme for targets:
    vpcs Sequence[GetIsSecurityGroupsSecurityGroupVpc]
    (List) The VPC this security group is a part of. Nested scheme for vpc:
    accessTags List<String>
    (List) Access management tags associated for the security group.
    createdAt String
    (String) The date and time that this security group was created.
    crn String
    (String) The CRN for this VPC.
    href String
    (String) The URL for this VPC.
    id String
    (String) The unique identifier for this VPC.
    name String
    (String) The unique user-defined name for this VPC.
    resourceGroups List<Property Map>
    (List) The resource group object, for this security group.
    rules List<Property Map>
    (List) The rules for this security group. If no rules exist, all traffic will be denied.
    targets List<Property Map>
    (List) The targets for this security group. Nested scheme for targets:
    vpcs List<Property Map>
    (List) The VPC this security group is a part of. Nested scheme for vpc:

    GetIsSecurityGroupsSecurityGroupResourceGroup

    Href string
    (String) The URL for this VPC.
    Id string
    (String) The unique identifier for this VPC.
    Name string
    (String) The unique user-defined name for this VPC.
    Href string
    (String) The URL for this VPC.
    Id string
    (String) The unique identifier for this VPC.
    Name string
    (String) The unique user-defined name for this VPC.
    href String
    (String) The URL for this VPC.
    id String
    (String) The unique identifier for this VPC.
    name String
    (String) The unique user-defined name for this VPC.
    href string
    (String) The URL for this VPC.
    id string
    (String) The unique identifier for this VPC.
    name string
    (String) The unique user-defined name for this VPC.
    href str
    (String) The URL for this VPC.
    id str
    (String) The unique identifier for this VPC.
    name str
    (String) The unique user-defined name for this VPC.
    href String
    (String) The URL for this VPC.
    id String
    (String) The unique identifier for this VPC.
    name String
    (String) The unique user-defined name for this VPC.

    GetIsSecurityGroupsSecurityGroupRule

    Code double
    (Integer) The ICMP traffic code to allow.
    Direction string
    (String) The direction of traffic to enforce, either inbound or outbound.
    Href string
    (String) The URL for this VPC.
    Id string
    (String) The unique identifier for this VPC.
    IpVersion string
    (String) The IP version to enforce. The format of remote.address or remote.cidr_block must match this property, if they are used. Alternatively, if remote references a security group, then this rule only applies to IP addresses (network interfaces) in that group matching this IP version.
    Locals List<GetIsSecurityGroupsSecurityGroupRuleLocal>
    (List) 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).
    PortMax double
    (Integer) The inclusive upper bound of TCP/UDP port range.
    PortMin double
    (Integer) The inclusive lower bound of TCP/UDP port range.
    Protocol string
    (String) The protocol to enforce.
    Remotes List<GetIsSecurityGroupsSecurityGroupRuleRemote>
    (List) The IP addresses or security groups from which this rule allows traffic (or to which,for outbound rules). Can be specified as an IP address, a CIDR block, or a securitygroup. A CIDR block of 0.0.0.0/0 allows traffic from any source (or to any source,for outbound rules).
    Type double
    (Integer) The ICMP traffic type to allow.
    Code float64
    (Integer) The ICMP traffic code to allow.
    Direction string
    (String) The direction of traffic to enforce, either inbound or outbound.
    Href string
    (String) The URL for this VPC.
    Id string
    (String) The unique identifier for this VPC.
    IpVersion string
    (String) The IP version to enforce. The format of remote.address or remote.cidr_block must match this property, if they are used. Alternatively, if remote references a security group, then this rule only applies to IP addresses (network interfaces) in that group matching this IP version.
    Locals []GetIsSecurityGroupsSecurityGroupRuleLocal
    (List) 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).
    PortMax float64
    (Integer) The inclusive upper bound of TCP/UDP port range.
    PortMin float64
    (Integer) The inclusive lower bound of TCP/UDP port range.
    Protocol string
    (String) The protocol to enforce.
    Remotes []GetIsSecurityGroupsSecurityGroupRuleRemote
    (List) The IP addresses or security groups from which this rule allows traffic (or to which,for outbound rules). Can be specified as an IP address, a CIDR block, or a securitygroup. A CIDR block of 0.0.0.0/0 allows traffic from any source (or to any source,for outbound rules).
    Type float64
    (Integer) The ICMP traffic type to allow.
    code Double
    (Integer) The ICMP traffic code to allow.
    direction String
    (String) The direction of traffic to enforce, either inbound or outbound.
    href String
    (String) The URL for this VPC.
    id String
    (String) The unique identifier for this VPC.
    ipVersion String
    (String) The IP version to enforce. The format of remote.address or remote.cidr_block must match this property, if they are used. Alternatively, if remote references a security group, then this rule only applies to IP addresses (network interfaces) in that group matching this IP version.
    locals List<GetIsSecurityGroupsSecurityGroupRuleLocal>
    (List) 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).
    portMax Double
    (Integer) The inclusive upper bound of TCP/UDP port range.
    portMin Double
    (Integer) The inclusive lower bound of TCP/UDP port range.
    protocol String
    (String) The protocol to enforce.
    remotes List<GetIsSecurityGroupsSecurityGroupRuleRemote>
    (List) The IP addresses or security groups from which this rule allows traffic (or to which,for outbound rules). Can be specified as an IP address, a CIDR block, or a securitygroup. A CIDR block of 0.0.0.0/0 allows traffic from any source (or to any source,for outbound rules).
    type Double
    (Integer) The ICMP traffic type to allow.
    code number
    (Integer) The ICMP traffic code to allow.
    direction string
    (String) The direction of traffic to enforce, either inbound or outbound.
    href string
    (String) The URL for this VPC.
    id string
    (String) The unique identifier for this VPC.
    ipVersion string
    (String) The IP version to enforce. The format of remote.address or remote.cidr_block must match this property, if they are used. Alternatively, if remote references a security group, then this rule only applies to IP addresses (network interfaces) in that group matching this IP version.
    locals GetIsSecurityGroupsSecurityGroupRuleLocal[]
    (List) 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).
    portMax number
    (Integer) The inclusive upper bound of TCP/UDP port range.
    portMin number
    (Integer) The inclusive lower bound of TCP/UDP port range.
    protocol string
    (String) The protocol to enforce.
    remotes GetIsSecurityGroupsSecurityGroupRuleRemote[]
    (List) The IP addresses or security groups from which this rule allows traffic (or to which,for outbound rules). Can be specified as an IP address, a CIDR block, or a securitygroup. A CIDR block of 0.0.0.0/0 allows traffic from any source (or to any source,for outbound rules).
    type number
    (Integer) The ICMP traffic type to allow.
    code float
    (Integer) The ICMP traffic code to allow.
    direction str
    (String) The direction of traffic to enforce, either inbound or outbound.
    href str
    (String) The URL for this VPC.
    id str
    (String) The unique identifier for this VPC.
    ip_version str
    (String) The IP version to enforce. The format of remote.address or remote.cidr_block must match this property, if they are used. Alternatively, if remote references a security group, then this rule only applies to IP addresses (network interfaces) in that group matching this IP version.
    locals Sequence[GetIsSecurityGroupsSecurityGroupRuleLocal]
    (List) 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).
    port_max float
    (Integer) The inclusive upper bound of TCP/UDP port range.
    port_min float
    (Integer) The inclusive lower bound of TCP/UDP port range.
    protocol str
    (String) The protocol to enforce.
    remotes Sequence[GetIsSecurityGroupsSecurityGroupRuleRemote]
    (List) The IP addresses or security groups from which this rule allows traffic (or to which,for outbound rules). Can be specified as an IP address, a CIDR block, or a securitygroup. A CIDR block of 0.0.0.0/0 allows traffic from any source (or to any source,for outbound rules).
    type float
    (Integer) The ICMP traffic type to allow.
    code Number
    (Integer) The ICMP traffic code to allow.
    direction String
    (String) The direction of traffic to enforce, either inbound or outbound.
    href String
    (String) The URL for this VPC.
    id String
    (String) The unique identifier for this VPC.
    ipVersion String
    (String) The IP version to enforce. The format of remote.address or remote.cidr_block must match this property, if they are used. Alternatively, if remote references a security group, then this rule only applies to IP addresses (network interfaces) in that group matching this IP version.
    locals List<Property Map>
    (List) 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).
    portMax Number
    (Integer) The inclusive upper bound of TCP/UDP port range.
    portMin Number
    (Integer) The inclusive lower bound of TCP/UDP port range.
    protocol String
    (String) The protocol to enforce.
    remotes List<Property Map>
    (List) The IP addresses or security groups from which this rule allows traffic (or to which,for outbound rules). Can be specified as an IP address, a CIDR block, or a securitygroup. A CIDR block of 0.0.0.0/0 allows traffic from any source (or to any source,for outbound rules).
    type Number
    (Integer) The ICMP traffic type to allow.

    GetIsSecurityGroupsSecurityGroupRuleLocal

    Address string
    (String) The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
    CidrBlock string
    (String) The CIDR block. This property may add support for IPv6 CIDR blocks in the future. When processing a value in this property, verify that the CIDR block is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected CIDR block format was encountered.
    Address string
    (String) The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
    CidrBlock string
    (String) The CIDR block. This property may add support for IPv6 CIDR blocks in the future. When processing a value in this property, verify that the CIDR block is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected CIDR block format was encountered.
    address String
    (String) The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
    cidrBlock String
    (String) The CIDR block. This property may add support for IPv6 CIDR blocks in the future. When processing a value in this property, verify that the CIDR block is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected CIDR block format was encountered.
    address string
    (String) The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
    cidrBlock string
    (String) The CIDR block. This property may add support for IPv6 CIDR blocks in the future. When processing a value in this property, verify that the CIDR block is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected CIDR block format was encountered.
    address str
    (String) The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
    cidr_block str
    (String) The CIDR block. This property may add support for IPv6 CIDR blocks in the future. When processing a value in this property, verify that the CIDR block is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected CIDR block format was encountered.
    address String
    (String) The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
    cidrBlock String
    (String) The CIDR block. This property may add support for IPv6 CIDR blocks in the future. When processing a value in this property, verify that the CIDR block is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected CIDR block format was encountered.

    GetIsSecurityGroupsSecurityGroupRuleRemote

    Address string
    (String) The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
    CidrBlock string
    (String) The CIDR block. This property may add support for IPv6 CIDR blocks in the future. When processing a value in this property, verify that the CIDR block is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected CIDR block format was encountered.
    Crn string
    (String) The CRN for this VPC.
    Deleteds List<GetIsSecurityGroupsSecurityGroupRuleRemoteDeleted>
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    Href string
    (String) The URL for this VPC.
    Id string
    (String) The unique identifier for this VPC.
    Name string
    (String) The unique user-defined name for this VPC.
    Address string
    (String) The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
    CidrBlock string
    (String) The CIDR block. This property may add support for IPv6 CIDR blocks in the future. When processing a value in this property, verify that the CIDR block is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected CIDR block format was encountered.
    Crn string
    (String) The CRN for this VPC.
    Deleteds []GetIsSecurityGroupsSecurityGroupRuleRemoteDeleted
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    Href string
    (String) The URL for this VPC.
    Id string
    (String) The unique identifier for this VPC.
    Name string
    (String) The unique user-defined name for this VPC.
    address String
    (String) The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
    cidrBlock String
    (String) The CIDR block. This property may add support for IPv6 CIDR blocks in the future. When processing a value in this property, verify that the CIDR block is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected CIDR block format was encountered.
    crn String
    (String) The CRN for this VPC.
    deleteds List<GetIsSecurityGroupsSecurityGroupRuleRemoteDeleted>
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    href String
    (String) The URL for this VPC.
    id String
    (String) The unique identifier for this VPC.
    name String
    (String) The unique user-defined name for this VPC.
    address string
    (String) The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
    cidrBlock string
    (String) The CIDR block. This property may add support for IPv6 CIDR blocks in the future. When processing a value in this property, verify that the CIDR block is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected CIDR block format was encountered.
    crn string
    (String) The CRN for this VPC.
    deleteds GetIsSecurityGroupsSecurityGroupRuleRemoteDeleted[]
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    href string
    (String) The URL for this VPC.
    id string
    (String) The unique identifier for this VPC.
    name string
    (String) The unique user-defined name for this VPC.
    address str
    (String) The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
    cidr_block str
    (String) The CIDR block. This property may add support for IPv6 CIDR blocks in the future. When processing a value in this property, verify that the CIDR block is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected CIDR block format was encountered.
    crn str
    (String) The CRN for this VPC.
    deleteds Sequence[GetIsSecurityGroupsSecurityGroupRuleRemoteDeleted]
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    href str
    (String) The URL for this VPC.
    id str
    (String) The unique identifier for this VPC.
    name str
    (String) The unique user-defined name for this VPC.
    address String
    (String) The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
    cidrBlock String
    (String) The CIDR block. This property may add support for IPv6 CIDR blocks in the future. When processing a value in this property, verify that the CIDR block is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected CIDR block format was encountered.
    crn String
    (String) The CRN for this VPC.
    deleteds List<Property Map>
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    href String
    (String) The URL for this VPC.
    id String
    (String) The unique identifier for this VPC.
    name String
    (String) The unique user-defined name for this VPC.

    GetIsSecurityGroupsSecurityGroupRuleRemoteDeleted

    MoreInfo string
    (String) Link to documentation about deleted resources.
    MoreInfo string
    (String) Link to documentation about deleted resources.
    moreInfo String
    (String) Link to documentation about deleted resources.
    moreInfo string
    (String) Link to documentation about deleted resources.
    more_info str
    (String) Link to documentation about deleted resources.
    moreInfo String
    (String) Link to documentation about deleted resources.

    GetIsSecurityGroupsSecurityGroupTarget

    Crn string
    (String) The CRN for this VPC.
    Deleteds List<GetIsSecurityGroupsSecurityGroupTargetDeleted>
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    Href string
    (String) The URL for this VPC.
    Id string
    (String) The unique identifier for this VPC.
    Name string
    (String) The unique user-defined name for this VPC.
    ResourceType string
    (String) The resource type.
    Crn string
    (String) The CRN for this VPC.
    Deleteds []GetIsSecurityGroupsSecurityGroupTargetDeleted
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    Href string
    (String) The URL for this VPC.
    Id string
    (String) The unique identifier for this VPC.
    Name string
    (String) The unique user-defined name for this VPC.
    ResourceType string
    (String) The resource type.
    crn String
    (String) The CRN for this VPC.
    deleteds List<GetIsSecurityGroupsSecurityGroupTargetDeleted>
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    href String
    (String) The URL for this VPC.
    id String
    (String) The unique identifier for this VPC.
    name String
    (String) The unique user-defined name for this VPC.
    resourceType String
    (String) The resource type.
    crn string
    (String) The CRN for this VPC.
    deleteds GetIsSecurityGroupsSecurityGroupTargetDeleted[]
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    href string
    (String) The URL for this VPC.
    id string
    (String) The unique identifier for this VPC.
    name string
    (String) The unique user-defined name for this VPC.
    resourceType string
    (String) The resource type.
    crn str
    (String) The CRN for this VPC.
    deleteds Sequence[GetIsSecurityGroupsSecurityGroupTargetDeleted]
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    href str
    (String) The URL for this VPC.
    id str
    (String) The unique identifier for this VPC.
    name str
    (String) The unique user-defined name for this VPC.
    resource_type str
    (String) The resource type.
    crn String
    (String) The CRN for this VPC.
    deleteds List<Property Map>
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    href String
    (String) The URL for this VPC.
    id String
    (String) The unique identifier for this VPC.
    name String
    (String) The unique user-defined name for this VPC.
    resourceType String
    (String) The resource type.

    GetIsSecurityGroupsSecurityGroupTargetDeleted

    MoreInfo string
    (String) Link to documentation about deleted resources.
    MoreInfo string
    (String) Link to documentation about deleted resources.
    moreInfo String
    (String) Link to documentation about deleted resources.
    moreInfo string
    (String) Link to documentation about deleted resources.
    more_info str
    (String) Link to documentation about deleted resources.
    moreInfo String
    (String) Link to documentation about deleted resources.

    GetIsSecurityGroupsSecurityGroupVpc

    Crn string
    (String) The CRN for this VPC.
    Deleteds List<GetIsSecurityGroupsSecurityGroupVpcDeleted>
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    Href string
    (String) The URL for this VPC.
    Id string
    (String) The unique identifier for this VPC.
    Name string
    (String) The unique user-defined name for this VPC.
    Crn string
    (String) The CRN for this VPC.
    Deleteds []GetIsSecurityGroupsSecurityGroupVpcDeleted
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    Href string
    (String) The URL for this VPC.
    Id string
    (String) The unique identifier for this VPC.
    Name string
    (String) The unique user-defined name for this VPC.
    crn String
    (String) The CRN for this VPC.
    deleteds List<GetIsSecurityGroupsSecurityGroupVpcDeleted>
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    href String
    (String) The URL for this VPC.
    id String
    (String) The unique identifier for this VPC.
    name String
    (String) The unique user-defined name for this VPC.
    crn string
    (String) The CRN for this VPC.
    deleteds GetIsSecurityGroupsSecurityGroupVpcDeleted[]
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    href string
    (String) The URL for this VPC.
    id string
    (String) The unique identifier for this VPC.
    name string
    (String) The unique user-defined name for this VPC.
    crn str
    (String) The CRN for this VPC.
    deleteds Sequence[GetIsSecurityGroupsSecurityGroupVpcDeleted]
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    href str
    (String) The URL for this VPC.
    id str
    (String) The unique identifier for this VPC.
    name str
    (String) The unique user-defined name for this VPC.
    crn String
    (String) The CRN for this VPC.
    deleteds List<Property Map>
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    href String
    (String) The URL for this VPC.
    id String
    (String) The unique identifier for this VPC.
    name String
    (String) The unique user-defined name for this VPC.

    GetIsSecurityGroupsSecurityGroupVpcDeleted

    MoreInfo string
    (String) Link to documentation about deleted resources.
    MoreInfo string
    (String) Link to documentation about deleted resources.
    moreInfo String
    (String) Link to documentation about deleted resources.
    moreInfo string
    (String) Link to documentation about deleted resources.
    more_info str
    (String) Link to documentation about deleted resources.
    moreInfo String
    (String) Link to documentation about deleted 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