ibm.IsSecurityGroup
Explore with Pulumi AI
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.
- 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 formatkey:value
.- Is
Security stringGroup Id - (String) The ID of the security group.
- Name string
- The security group name.
- Resource
Group string - The resource group ID where the security group to be created.
- List<string>
- The tags associated with an instance.
- Timeouts
Is
Security Group Timeouts
- Vpc string
- The VPC ID.
- []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 formatkey:value
.- Is
Security stringGroup Id - (String) The ID of the security group.
- Name string
- The security group name.
- Resource
Group string - The resource group ID where the security group to be created.
- []string
- The tags associated with an instance.
- Timeouts
Is
Security Group Timeouts Args
- vpc String
- The VPC ID.
- 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 formatkey:value
.- is
Security StringGroup Id - (String) The ID of the security group.
- name String
- The security group name.
- resource
Group String - The resource group ID where the security group to be created.
- List<String>
- The tags associated with an instance.
- timeouts
Is
Security Group Timeouts
- vpc string
- The VPC ID.
- 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 formatkey:value
.- is
Security stringGroup Id - (String) The ID of the security group.
- name string
- The security group name.
- resource
Group string - The resource group ID where the security group to be created.
- string[]
- The tags associated with an instance.
- timeouts
Is
Security Group Timeouts
- vpc str
- The VPC ID.
- 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 formatkey:value
.- is_
security_ strgroup_ id - (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.
- Sequence[str]
- The tags associated with an instance.
- timeouts
Is
Security Group Timeouts Args
- vpc String
- The VPC ID.
- 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 formatkey:value
.- is
Security StringGroup Id - (String) The ID of the security group.
- name String
- The security group name.
- resource
Group String - The resource group ID where the security group to be created.
- 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.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Crn string - The crn of the resource
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- Rules
List<Is
Security Group Rule> - (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.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Crn string - The crn of the resource
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- Rules
[]Is
Security Group Rule Type - (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.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn String - The crn of the resource
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name String - The name of the resource
- rules
List<Is
Security Group Rule> - (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.
- resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn string - The crn of the resource
- resource
Group stringName - The resource group name in which resource is provisioned
- resource
Name string - The name of the resource
- rules
Is
Security Group Rule[] - (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_ strurl - 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_ strname - The resource group name in which resource is provisioned
- resource_
name str - The name of the resource
- rules
Sequence[Is
Security Group Rule] - (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.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn String - The crn of the resource
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name 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.
- 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 formatkey:value
.- Crn string
- (String) The CRN of the security group.
- Is
Security stringGroup Id - (String) The ID of the security group.
- Name string
- The security group name.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Crn string - The crn of the resource
- Resource
Group string - The resource group ID where the security group to be created.
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- Rules
List<Is
Security Group Rule> - (List of Objects) A nested block describes the rules of this security group. Nested
rules
blocks have the following structure. - List<string>
- The tags associated with an instance.
- Timeouts
Is
Security Group Timeouts - Vpc string
- The VPC ID.
- []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 formatkey:value
.- Crn string
- (String) The CRN of the security group.
- Is
Security stringGroup Id - (String) The ID of the security group.
- Name string
- The security group name.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Crn string - The crn of the resource
- Resource
Group string - The resource group ID where the security group to be created.
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- Rules
[]Is
Security Group Rule Type Args - (List of Objects) A nested block describes the rules of this security group. Nested
rules
blocks have the following structure. - []string
- The tags associated with an instance.
- Timeouts
Is
Security Group Timeouts Args - Vpc string
- The VPC ID.
- 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 formatkey:value
.- crn String
- (String) The CRN of the security group.
- is
Security StringGroup Id - (String) The ID of the security group.
- name String
- The security group name.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn String - The crn of the resource
- resource
Group String - The resource group ID where the security group to be created.
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name String - The name of the resource
- rules
List<Is
Security Group Rule> - (List of Objects) A nested block describes the rules of this security group. Nested
rules
blocks have the following structure. - List<String>
- The tags associated with an instance.
- timeouts
Is
Security Group Timeouts - vpc String
- The VPC ID.
- 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 formatkey:value
.- crn string
- (String) The CRN of the security group.
- is
Security stringGroup Id - (String) The ID of the security group.
- name string
- The security group name.
- resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn string - The crn of the resource
- resource
Group string - The resource group ID where the security group to be created.
- resource
Group stringName - The resource group name in which resource is provisioned
- resource
Name string - The name of the resource
- rules
Is
Security Group Rule[] - (List of Objects) A nested block describes the rules of this security group. Nested
rules
blocks have the following structure. - string[]
- The tags associated with an instance.
- timeouts
Is
Security Group Timeouts - vpc string
- The VPC ID.
- 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 formatkey:value
.- crn str
- (String) The CRN of the security group.
- is_
security_ strgroup_ id - (String) The ID of the security group.
- name str
- The security group name.
- resource_
controller_ strurl - 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_ strname - The resource group name in which resource is provisioned
- resource_
name str - The name of the resource
- rules
Sequence[Is
Security Group Rule Args] - (List of Objects) A nested block describes the rules of this security group. Nested
rules
blocks have the following structure. - Sequence[str]
- The tags associated with an instance.
- timeouts
Is
Security Group Timeouts Args - vpc str
- The VPC ID.
- 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 formatkey:value
.- crn String
- (String) The CRN of the security group.
- is
Security StringGroup Id - (String) The ID of the security group.
- name String
- The security group name.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn String - The crn of the resource
- resource
Group String - The resource group ID where the security group to be created.
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name 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. - 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
oroutbound
. - Ip
Version 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. - Port
Max double - (Integer) The
TCP/UDP
port range that includes the maximum bound. - Port
Min 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
oroutbound
. - Ip
Version 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. - Port
Max float64 - (Integer) The
TCP/UDP
port range that includes the maximum bound. - Port
Min 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
oroutbound
. - ip
Version 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. - port
Max Double - (Integer) The
TCP/UDP
port range that includes the maximum bound. - port
Min 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
oroutbound
. - ip
Version 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. - port
Max number - (Integer) The
TCP/UDP
port range that includes the maximum bound. - port
Min 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
oroutbound
. - 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
oroutbound
. - ip
Version 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. - port
Max Number - (Integer) The
TCP/UDP
port range that includes the maximum bound. - port
Min 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
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.