outscale.SecurityGroup
Explore with Pulumi AI
Manages a security group.
Security groups you create to use in a Net contain a default outbound rule that allows all outbound flows.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
Optional resource
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const net01 = new outscale.Net("net01", {ipRange: "10.0.0.0/16"});
import pulumi
import pulumi_outscale as outscale
net01 = outscale.Net("net01", ip_range="10.0.0.0/16")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.NewNet(ctx, "net01", &outscale.NetArgs{
			IpRange: pulumi.String("10.0.0.0/16"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() => 
{
    var net01 = new Outscale.Net("net01", new()
    {
        IpRange = "10.0.0.0/16",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.Net;
import com.pulumi.outscale.NetArgs;
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 net01 = new Net("net01", NetArgs.builder()
            .ipRange("10.0.0.0/16")
            .build());
    }
}
resources:
  net01:
    type: outscale:Net
    properties:
      ipRange: 10.0.0.0/16
Create a security group for a Net
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const securityGroup01 = new outscale.SecurityGroup("securityGroup01", {
    description: "Terraform security group",
    securityGroupName: "terraform-security-group",
    netId: outscale_net.net01.net_id,
});
import pulumi
import pulumi_outscale as outscale
security_group01 = outscale.SecurityGroup("securityGroup01",
    description="Terraform security group",
    security_group_name="terraform-security-group",
    net_id=outscale_net["net01"]["net_id"])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.NewSecurityGroup(ctx, "securityGroup01", &outscale.SecurityGroupArgs{
			Description:       pulumi.String("Terraform security group"),
			SecurityGroupName: pulumi.String("terraform-security-group"),
			NetId:             pulumi.Any(outscale_net.Net01.Net_id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() => 
{
    var securityGroup01 = new Outscale.SecurityGroup("securityGroup01", new()
    {
        Description = "Terraform security group",
        SecurityGroupName = "terraform-security-group",
        NetId = outscale_net.Net01.Net_id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.SecurityGroup;
import com.pulumi.outscale.SecurityGroupArgs;
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 securityGroup01 = new SecurityGroup("securityGroup01", SecurityGroupArgs.builder()
            .description("Terraform security group")
            .securityGroupName("terraform-security-group")
            .netId(outscale_net.net01().net_id())
            .build());
    }
}
resources:
  securityGroup01:
    type: outscale:SecurityGroup
    properties:
      description: Terraform security group
      securityGroupName: terraform-security-group
      netId: ${outscale_net.net01.net_id}
Create a security group for a Net without the default outbound rule
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const securityGroup02 = new outscale.SecurityGroup("securityGroup02", {
    removeDefaultOutboundRule: true,
    description: "Terraform security group without outbound rule",
    securityGroupName: "terraform-security-group-empty",
    netId: outscale_net.net01.net_id,
});
import pulumi
import pulumi_outscale as outscale
security_group02 = outscale.SecurityGroup("securityGroup02",
    remove_default_outbound_rule=True,
    description="Terraform security group without outbound rule",
    security_group_name="terraform-security-group-empty",
    net_id=outscale_net["net01"]["net_id"])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.NewSecurityGroup(ctx, "securityGroup02", &outscale.SecurityGroupArgs{
			RemoveDefaultOutboundRule: pulumi.Bool(true),
			Description:               pulumi.String("Terraform security group without outbound rule"),
			SecurityGroupName:         pulumi.String("terraform-security-group-empty"),
			NetId:                     pulumi.Any(outscale_net.Net01.Net_id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() => 
{
    var securityGroup02 = new Outscale.SecurityGroup("securityGroup02", new()
    {
        RemoveDefaultOutboundRule = true,
        Description = "Terraform security group without outbound rule",
        SecurityGroupName = "terraform-security-group-empty",
        NetId = outscale_net.Net01.Net_id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.SecurityGroup;
import com.pulumi.outscale.SecurityGroupArgs;
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 securityGroup02 = new SecurityGroup("securityGroup02", SecurityGroupArgs.builder()
            .removeDefaultOutboundRule(true)
            .description("Terraform security group without outbound rule")
            .securityGroupName("terraform-security-group-empty")
            .netId(outscale_net.net01().net_id())
            .build());
    }
}
resources:
  securityGroup02:
    type: outscale:SecurityGroup
    properties:
      removeDefaultOutboundRule: true
      description: Terraform security group without outbound rule
      securityGroupName: terraform-security-group-empty
      netId: ${outscale_net.net01.net_id}
Create SecurityGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecurityGroup(name: string, args?: SecurityGroupArgs, opts?: CustomResourceOptions);@overload
def SecurityGroup(resource_name: str,
                  args: Optional[SecurityGroupArgs] = None,
                  opts: Optional[ResourceOptions] = None)
@overload
def SecurityGroup(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  description: Optional[str] = None,
                  net_id: Optional[str] = None,
                  outscale_security_group_id: Optional[str] = None,
                  remove_default_outbound_rule: Optional[bool] = None,
                  security_group_name: Optional[str] = None,
                  tag: Optional[Mapping[str, str]] = None,
                  tags: Optional[Sequence[SecurityGroupTagArgs]] = None)func NewSecurityGroup(ctx *Context, name string, args *SecurityGroupArgs, opts ...ResourceOption) (*SecurityGroup, error)public SecurityGroup(string name, SecurityGroupArgs? args = null, CustomResourceOptions? opts = null)
public SecurityGroup(String name, SecurityGroupArgs args)
public SecurityGroup(String name, SecurityGroupArgs args, CustomResourceOptions options)
type: outscale:SecurityGroup
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 SecurityGroupArgs
- 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 SecurityGroupArgs
- 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 SecurityGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurityGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecurityGroupArgs
- 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 securityGroupResource = new Outscale.SecurityGroup("securityGroupResource", new()
{
    Description = "string",
    NetId = "string",
    OutscaleSecurityGroupId = "string",
    RemoveDefaultOutboundRule = false,
    SecurityGroupName = "string",
    Tag = 
    {
        { "string", "string" },
    },
    Tags = new[]
    {
        new Outscale.Inputs.SecurityGroupTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
});
example, err := outscale.NewSecurityGroup(ctx, "securityGroupResource", &outscale.SecurityGroupArgs{
Description: pulumi.String("string"),
NetId: pulumi.String("string"),
OutscaleSecurityGroupId: pulumi.String("string"),
RemoveDefaultOutboundRule: pulumi.Bool(false),
SecurityGroupName: pulumi.String("string"),
Tag: pulumi.StringMap{
"string": pulumi.String("string"),
},
Tags: .SecurityGroupTagArray{
&.SecurityGroupTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var securityGroupResource = new SecurityGroup("securityGroupResource", SecurityGroupArgs.builder()
    .description("string")
    .netId("string")
    .outscaleSecurityGroupId("string")
    .removeDefaultOutboundRule(false)
    .securityGroupName("string")
    .tag(Map.of("string", "string"))
    .tags(SecurityGroupTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .build());
security_group_resource = outscale.SecurityGroup("securityGroupResource",
    description="string",
    net_id="string",
    outscale_security_group_id="string",
    remove_default_outbound_rule=False,
    security_group_name="string",
    tag={
        "string": "string",
    },
    tags=[{
        "key": "string",
        "value": "string",
    }])
const securityGroupResource = new outscale.SecurityGroup("securityGroupResource", {
    description: "string",
    netId: "string",
    outscaleSecurityGroupId: "string",
    removeDefaultOutboundRule: false,
    securityGroupName: "string",
    tag: {
        string: "string",
    },
    tags: [{
        key: "string",
        value: "string",
    }],
});
type: outscale:SecurityGroup
properties:
    description: string
    netId: string
    outscaleSecurityGroupId: string
    removeDefaultOutboundRule: false
    securityGroupName: string
    tag:
        string: string
    tags:
        - key: string
          value: string
SecurityGroup 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 SecurityGroup resource accepts the following input properties:
- Description string
- A description for the security group.
This description can contain between 1 and 255 characters. Allowed characters are a-z,A-Z,0-9, accented letters, spaces, and_.-:/()#,@[]+=&;{}!$*.
- NetId string
- The ID of the Net for the security group.
- OutscaleSecurity stringGroup Id 
- RemoveDefault boolOutbound Rule 
- (Net only) By default or if set to false, the security group is created with a default outbound rule allowing all outbound flows. If set to true, the security group is created without a default outbound rule. For an existing security group, setting this parameter to true deletes the security group and creates a new one.
- SecurityGroup stringName 
- The name of the security group.
This name must not start with sg-. This name must be unique and contain between 1 and 255 characters. Allowed characters area-z,A-Z,0-9, spaces, and_.-:/()#,@[]+=&;{}!$*.
- Tag Dictionary<string, string>
- 
List<SecurityGroup Tag> 
- A tag to add to this resource. You can specify this argument several times.
- Description string
- A description for the security group.
This description can contain between 1 and 255 characters. Allowed characters are a-z,A-Z,0-9, accented letters, spaces, and_.-:/()#,@[]+=&;{}!$*.
- NetId string
- The ID of the Net for the security group.
- OutscaleSecurity stringGroup Id 
- RemoveDefault boolOutbound Rule 
- (Net only) By default or if set to false, the security group is created with a default outbound rule allowing all outbound flows. If set to true, the security group is created without a default outbound rule. For an existing security group, setting this parameter to true deletes the security group and creates a new one.
- SecurityGroup stringName 
- The name of the security group.
This name must not start with sg-. This name must be unique and contain between 1 and 255 characters. Allowed characters area-z,A-Z,0-9, spaces, and_.-:/()#,@[]+=&;{}!$*.
- Tag map[string]string
- 
[]SecurityGroup Tag Args 
- A tag to add to this resource. You can specify this argument several times.
- description String
- A description for the security group.
This description can contain between 1 and 255 characters. Allowed characters are a-z,A-Z,0-9, accented letters, spaces, and_.-:/()#,@[]+=&;{}!$*.
- netId String
- The ID of the Net for the security group.
- outscaleSecurity StringGroup Id 
- removeDefault BooleanOutbound Rule 
- (Net only) By default or if set to false, the security group is created with a default outbound rule allowing all outbound flows. If set to true, the security group is created without a default outbound rule. For an existing security group, setting this parameter to true deletes the security group and creates a new one.
- securityGroup StringName 
- The name of the security group.
This name must not start with sg-. This name must be unique and contain between 1 and 255 characters. Allowed characters area-z,A-Z,0-9, spaces, and_.-:/()#,@[]+=&;{}!$*.
- tag Map<String,String>
- 
List<SecurityGroup Tag> 
- A tag to add to this resource. You can specify this argument several times.
- description string
- A description for the security group.
This description can contain between 1 and 255 characters. Allowed characters are a-z,A-Z,0-9, accented letters, spaces, and_.-:/()#,@[]+=&;{}!$*.
- netId string
- The ID of the Net for the security group.
- outscaleSecurity stringGroup Id 
- removeDefault booleanOutbound Rule 
- (Net only) By default or if set to false, the security group is created with a default outbound rule allowing all outbound flows. If set to true, the security group is created without a default outbound rule. For an existing security group, setting this parameter to true deletes the security group and creates a new one.
- securityGroup stringName 
- The name of the security group.
This name must not start with sg-. This name must be unique and contain between 1 and 255 characters. Allowed characters area-z,A-Z,0-9, spaces, and_.-:/()#,@[]+=&;{}!$*.
- tag {[key: string]: string}
- 
SecurityGroup Tag[] 
- A tag to add to this resource. You can specify this argument several times.
- description str
- A description for the security group.
This description can contain between 1 and 255 characters. Allowed characters are a-z,A-Z,0-9, accented letters, spaces, and_.-:/()#,@[]+=&;{}!$*.
- net_id str
- The ID of the Net for the security group.
- outscale_security_ strgroup_ id 
- remove_default_ booloutbound_ rule 
- (Net only) By default or if set to false, the security group is created with a default outbound rule allowing all outbound flows. If set to true, the security group is created without a default outbound rule. For an existing security group, setting this parameter to true deletes the security group and creates a new one.
- security_group_ strname 
- The name of the security group.
This name must not start with sg-. This name must be unique and contain between 1 and 255 characters. Allowed characters area-z,A-Z,0-9, spaces, and_.-:/()#,@[]+=&;{}!$*.
- tag Mapping[str, str]
- 
Sequence[SecurityGroup Tag Args] 
- A tag to add to this resource. You can specify this argument several times.
- description String
- A description for the security group.
This description can contain between 1 and 255 characters. Allowed characters are a-z,A-Z,0-9, accented letters, spaces, and_.-:/()#,@[]+=&;{}!$*.
- netId String
- The ID of the Net for the security group.
- outscaleSecurity StringGroup Id 
- removeDefault BooleanOutbound Rule 
- (Net only) By default or if set to false, the security group is created with a default outbound rule allowing all outbound flows. If set to true, the security group is created without a default outbound rule. For an existing security group, setting this parameter to true deletes the security group and creates a new one.
- securityGroup StringName 
- The name of the security group.
This name must not start with sg-. This name must be unique and contain between 1 and 255 characters. Allowed characters area-z,A-Z,0-9, spaces, and_.-:/()#,@[]+=&;{}!$*.
- tag Map<String>
- List<Property Map>
- A tag to add to this resource. You can specify this argument several times.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityGroup resource produces the following output properties:
- AccountId string
- The account ID that owns the source or destination security group.
- Id string
- The provider-assigned unique ID for this managed resource.
- InboundRules List<SecurityGroup Inbound Rule> 
- The inbound rules associated with the security group.
- OutboundRules List<SecurityGroup Outbound Rule> 
- The outbound rules associated with the security group.
- RequestId string
- SecurityGroup stringId 
- The ID of the security group.
- AccountId string
- The account ID that owns the source or destination security group.
- Id string
- The provider-assigned unique ID for this managed resource.
- InboundRules []SecurityGroup Inbound Rule 
- The inbound rules associated with the security group.
- OutboundRules []SecurityGroup Outbound Rule 
- The outbound rules associated with the security group.
- RequestId string
- SecurityGroup stringId 
- The ID of the security group.
- accountId String
- The account ID that owns the source or destination security group.
- id String
- The provider-assigned unique ID for this managed resource.
- inboundRules List<SecurityGroup Inbound Rule> 
- The inbound rules associated with the security group.
- outboundRules List<SecurityGroup Outbound Rule> 
- The outbound rules associated with the security group.
- requestId String
- securityGroup StringId 
- The ID of the security group.
- accountId string
- The account ID that owns the source or destination security group.
- id string
- The provider-assigned unique ID for this managed resource.
- inboundRules SecurityGroup Inbound Rule[] 
- The inbound rules associated with the security group.
- outboundRules SecurityGroup Outbound Rule[] 
- The outbound rules associated with the security group.
- requestId string
- securityGroup stringId 
- The ID of the security group.
- account_id str
- The account ID that owns the source or destination security group.
- id str
- The provider-assigned unique ID for this managed resource.
- inbound_rules Sequence[SecurityGroup Inbound Rule] 
- The inbound rules associated with the security group.
- outbound_rules Sequence[SecurityGroup Outbound Rule] 
- The outbound rules associated with the security group.
- request_id str
- security_group_ strid 
- The ID of the security group.
- accountId String
- The account ID that owns the source or destination security group.
- id String
- The provider-assigned unique ID for this managed resource.
- inboundRules List<Property Map>
- The inbound rules associated with the security group.
- outboundRules List<Property Map>
- The outbound rules associated with the security group.
- requestId String
- securityGroup StringId 
- The ID of the security group.
Look up Existing SecurityGroup Resource
Get an existing SecurityGroup 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?: SecurityGroupState, opts?: CustomResourceOptions): SecurityGroup@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        description: Optional[str] = None,
        inbound_rules: Optional[Sequence[SecurityGroupInboundRuleArgs]] = None,
        net_id: Optional[str] = None,
        outbound_rules: Optional[Sequence[SecurityGroupOutboundRuleArgs]] = None,
        outscale_security_group_id: Optional[str] = None,
        remove_default_outbound_rule: Optional[bool] = None,
        request_id: Optional[str] = None,
        security_group_id: Optional[str] = None,
        security_group_name: Optional[str] = None,
        tag: Optional[Mapping[str, str]] = None,
        tags: Optional[Sequence[SecurityGroupTagArgs]] = None) -> SecurityGroupfunc GetSecurityGroup(ctx *Context, name string, id IDInput, state *SecurityGroupState, opts ...ResourceOption) (*SecurityGroup, error)public static SecurityGroup Get(string name, Input<string> id, SecurityGroupState? state, CustomResourceOptions? opts = null)public static SecurityGroup get(String name, Output<String> id, SecurityGroupState state, CustomResourceOptions options)resources:  _:    type: outscale:SecurityGroup    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.
- AccountId string
- The account ID that owns the source or destination security group.
- Description string
- A description for the security group.
This description can contain between 1 and 255 characters. Allowed characters are a-z,A-Z,0-9, accented letters, spaces, and_.-:/()#,@[]+=&;{}!$*.
- InboundRules List<SecurityGroup Inbound Rule> 
- The inbound rules associated with the security group.
- NetId string
- The ID of the Net for the security group.
- OutboundRules List<SecurityGroup Outbound Rule> 
- The outbound rules associated with the security group.
- OutscaleSecurity stringGroup Id 
- RemoveDefault boolOutbound Rule 
- (Net only) By default or if set to false, the security group is created with a default outbound rule allowing all outbound flows. If set to true, the security group is created without a default outbound rule. For an existing security group, setting this parameter to true deletes the security group and creates a new one.
- RequestId string
- SecurityGroup stringId 
- The ID of the security group.
- SecurityGroup stringName 
- The name of the security group.
This name must not start with sg-. This name must be unique and contain between 1 and 255 characters. Allowed characters area-z,A-Z,0-9, spaces, and_.-:/()#,@[]+=&;{}!$*.
- Tag Dictionary<string, string>
- 
List<SecurityGroup Tag> 
- A tag to add to this resource. You can specify this argument several times.
- AccountId string
- The account ID that owns the source or destination security group.
- Description string
- A description for the security group.
This description can contain between 1 and 255 characters. Allowed characters are a-z,A-Z,0-9, accented letters, spaces, and_.-:/()#,@[]+=&;{}!$*.
- InboundRules []SecurityGroup Inbound Rule Args 
- The inbound rules associated with the security group.
- NetId string
- The ID of the Net for the security group.
- OutboundRules []SecurityGroup Outbound Rule Args 
- The outbound rules associated with the security group.
- OutscaleSecurity stringGroup Id 
- RemoveDefault boolOutbound Rule 
- (Net only) By default or if set to false, the security group is created with a default outbound rule allowing all outbound flows. If set to true, the security group is created without a default outbound rule. For an existing security group, setting this parameter to true deletes the security group and creates a new one.
- RequestId string
- SecurityGroup stringId 
- The ID of the security group.
- SecurityGroup stringName 
- The name of the security group.
This name must not start with sg-. This name must be unique and contain between 1 and 255 characters. Allowed characters area-z,A-Z,0-9, spaces, and_.-:/()#,@[]+=&;{}!$*.
- Tag map[string]string
- 
[]SecurityGroup Tag Args 
- A tag to add to this resource. You can specify this argument several times.
- accountId String
- The account ID that owns the source or destination security group.
- description String
- A description for the security group.
This description can contain between 1 and 255 characters. Allowed characters are a-z,A-Z,0-9, accented letters, spaces, and_.-:/()#,@[]+=&;{}!$*.
- inboundRules List<SecurityGroup Inbound Rule> 
- The inbound rules associated with the security group.
- netId String
- The ID of the Net for the security group.
- outboundRules List<SecurityGroup Outbound Rule> 
- The outbound rules associated with the security group.
- outscaleSecurity StringGroup Id 
- removeDefault BooleanOutbound Rule 
- (Net only) By default or if set to false, the security group is created with a default outbound rule allowing all outbound flows. If set to true, the security group is created without a default outbound rule. For an existing security group, setting this parameter to true deletes the security group and creates a new one.
- requestId String
- securityGroup StringId 
- The ID of the security group.
- securityGroup StringName 
- The name of the security group.
This name must not start with sg-. This name must be unique and contain between 1 and 255 characters. Allowed characters area-z,A-Z,0-9, spaces, and_.-:/()#,@[]+=&;{}!$*.
- tag Map<String,String>
- 
List<SecurityGroup Tag> 
- A tag to add to this resource. You can specify this argument several times.
- accountId string
- The account ID that owns the source or destination security group.
- description string
- A description for the security group.
This description can contain between 1 and 255 characters. Allowed characters are a-z,A-Z,0-9, accented letters, spaces, and_.-:/()#,@[]+=&;{}!$*.
- inboundRules SecurityGroup Inbound Rule[] 
- The inbound rules associated with the security group.
- netId string
- The ID of the Net for the security group.
- outboundRules SecurityGroup Outbound Rule[] 
- The outbound rules associated with the security group.
- outscaleSecurity stringGroup Id 
- removeDefault booleanOutbound Rule 
- (Net only) By default or if set to false, the security group is created with a default outbound rule allowing all outbound flows. If set to true, the security group is created without a default outbound rule. For an existing security group, setting this parameter to true deletes the security group and creates a new one.
- requestId string
- securityGroup stringId 
- The ID of the security group.
- securityGroup stringName 
- The name of the security group.
This name must not start with sg-. This name must be unique and contain between 1 and 255 characters. Allowed characters area-z,A-Z,0-9, spaces, and_.-:/()#,@[]+=&;{}!$*.
- tag {[key: string]: string}
- 
SecurityGroup Tag[] 
- A tag to add to this resource. You can specify this argument several times.
- account_id str
- The account ID that owns the source or destination security group.
- description str
- A description for the security group.
This description can contain between 1 and 255 characters. Allowed characters are a-z,A-Z,0-9, accented letters, spaces, and_.-:/()#,@[]+=&;{}!$*.
- inbound_rules Sequence[SecurityGroup Inbound Rule Args] 
- The inbound rules associated with the security group.
- net_id str
- The ID of the Net for the security group.
- outbound_rules Sequence[SecurityGroup Outbound Rule Args] 
- The outbound rules associated with the security group.
- outscale_security_ strgroup_ id 
- remove_default_ booloutbound_ rule 
- (Net only) By default or if set to false, the security group is created with a default outbound rule allowing all outbound flows. If set to true, the security group is created without a default outbound rule. For an existing security group, setting this parameter to true deletes the security group and creates a new one.
- request_id str
- security_group_ strid 
- The ID of the security group.
- security_group_ strname 
- The name of the security group.
This name must not start with sg-. This name must be unique and contain between 1 and 255 characters. Allowed characters area-z,A-Z,0-9, spaces, and_.-:/()#,@[]+=&;{}!$*.
- tag Mapping[str, str]
- 
Sequence[SecurityGroup Tag Args] 
- A tag to add to this resource. You can specify this argument several times.
- accountId String
- The account ID that owns the source or destination security group.
- description String
- A description for the security group.
This description can contain between 1 and 255 characters. Allowed characters are a-z,A-Z,0-9, accented letters, spaces, and_.-:/()#,@[]+=&;{}!$*.
- inboundRules List<Property Map>
- The inbound rules associated with the security group.
- netId String
- The ID of the Net for the security group.
- outboundRules List<Property Map>
- The outbound rules associated with the security group.
- outscaleSecurity StringGroup Id 
- removeDefault BooleanOutbound Rule 
- (Net only) By default or if set to false, the security group is created with a default outbound rule allowing all outbound flows. If set to true, the security group is created without a default outbound rule. For an existing security group, setting this parameter to true deletes the security group and creates a new one.
- requestId String
- securityGroup StringId 
- The ID of the security group.
- securityGroup StringName 
- The name of the security group.
This name must not start with sg-. This name must be unique and contain between 1 and 255 characters. Allowed characters area-z,A-Z,0-9, spaces, and_.-:/()#,@[]+=&;{}!$*.
- tag Map<String>
- List<Property Map>
- A tag to add to this resource. You can specify this argument several times.
Supporting Types
SecurityGroupInboundRule, SecurityGroupInboundRuleArgs        
- FromPort doubleRange 
- The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- IpProtocol string
- The IP protocol name (tcp,udp,icmp, or-1for all protocols). By default,-1. In a Net, this can also be an IP protocol number. For more information, see the IANA.org website.
- IpRanges List<string>
- One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
- SecurityGroups List<ImmutableMembers Dictionary<string, string>> 
- Information about one or more source or destination security groups.
- ToPort doubleRange 
- The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- FromPort float64Range 
- The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- IpProtocol string
- The IP protocol name (tcp,udp,icmp, or-1for all protocols). By default,-1. In a Net, this can also be an IP protocol number. For more information, see the IANA.org website.
- IpRanges []string
- One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
- SecurityGroups []map[string]stringMembers 
- Information about one or more source or destination security groups.
- ToPort float64Range 
- The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- fromPort DoubleRange 
- The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- ipProtocol String
- The IP protocol name (tcp,udp,icmp, or-1for all protocols). By default,-1. In a Net, this can also be an IP protocol number. For more information, see the IANA.org website.
- ipRanges List<String>
- One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
- securityGroups List<Map<String,String>>Members 
- Information about one or more source or destination security groups.
- toPort DoubleRange 
- The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- fromPort numberRange 
- The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- ipProtocol string
- The IP protocol name (tcp,udp,icmp, or-1for all protocols). By default,-1. In a Net, this can also be an IP protocol number. For more information, see the IANA.org website.
- ipRanges string[]
- One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
- securityGroups {[key: string]: string}[]Members 
- Information about one or more source or destination security groups.
- toPort numberRange 
- The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- from_port_ floatrange 
- The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- ip_protocol str
- The IP protocol name (tcp,udp,icmp, or-1for all protocols). By default,-1. In a Net, this can also be an IP protocol number. For more information, see the IANA.org website.
- ip_ranges Sequence[str]
- One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
- security_groups_ Sequence[Mapping[str, str]]members 
- Information about one or more source or destination security groups.
- to_port_ floatrange 
- The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- fromPort NumberRange 
- The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- ipProtocol String
- The IP protocol name (tcp,udp,icmp, or-1for all protocols). By default,-1. In a Net, this can also be an IP protocol number. For more information, see the IANA.org website.
- ipRanges List<String>
- One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
- securityGroups List<Map<String>>Members 
- Information about one or more source or destination security groups.
- toPort NumberRange 
- The end of the port range for the TCP and UDP protocols, or an ICMP code number.
SecurityGroupOutboundRule, SecurityGroupOutboundRuleArgs        
- FromPort doubleRange 
- The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- IpProtocol string
- The IP protocol name (tcp,udp,icmp, or-1for all protocols). By default,-1. In a Net, this can also be an IP protocol number. For more information, see the IANA.org website.
- IpRanges List<string>
- One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
- SecurityGroups List<ImmutableMembers Dictionary<string, string>> 
- Information about one or more source or destination security groups.
- ToPort doubleRange 
- The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- FromPort float64Range 
- The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- IpProtocol string
- The IP protocol name (tcp,udp,icmp, or-1for all protocols). By default,-1. In a Net, this can also be an IP protocol number. For more information, see the IANA.org website.
- IpRanges []string
- One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
- SecurityGroups []map[string]stringMembers 
- Information about one or more source or destination security groups.
- ToPort float64Range 
- The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- fromPort DoubleRange 
- The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- ipProtocol String
- The IP protocol name (tcp,udp,icmp, or-1for all protocols). By default,-1. In a Net, this can also be an IP protocol number. For more information, see the IANA.org website.
- ipRanges List<String>
- One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
- securityGroups List<Map<String,String>>Members 
- Information about one or more source or destination security groups.
- toPort DoubleRange 
- The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- fromPort numberRange 
- The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- ipProtocol string
- The IP protocol name (tcp,udp,icmp, or-1for all protocols). By default,-1. In a Net, this can also be an IP protocol number. For more information, see the IANA.org website.
- ipRanges string[]
- One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
- securityGroups {[key: string]: string}[]Members 
- Information about one or more source or destination security groups.
- toPort numberRange 
- The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- from_port_ floatrange 
- The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- ip_protocol str
- The IP protocol name (tcp,udp,icmp, or-1for all protocols). By default,-1. In a Net, this can also be an IP protocol number. For more information, see the IANA.org website.
- ip_ranges Sequence[str]
- One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
- security_groups_ Sequence[Mapping[str, str]]members 
- Information about one or more source or destination security groups.
- to_port_ floatrange 
- The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- fromPort NumberRange 
- The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- ipProtocol String
- The IP protocol name (tcp,udp,icmp, or-1for all protocols). By default,-1. In a Net, this can also be an IP protocol number. For more information, see the IANA.org website.
- ipRanges List<String>
- One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
- securityGroups List<Map<String>>Members 
- Information about one or more source or destination security groups.
- toPort NumberRange 
- The end of the port range for the TCP and UDP protocols, or an ICMP code number.
SecurityGroupTag, SecurityGroupTagArgs      
Import
A security group can be imported using its ID. For example:
console
$ pulumi import outscale:index/securityGroup:SecurityGroup ImportedSecurityGroup sg-87654321
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.