1. Packages
  2. Outscale Provider
  3. API Docs
  4. SecurityGroup
outscale 1.1.0 published on Thursday, Apr 3, 2025 by outscale

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"});
Copy
import pulumi
import pulumi_outscale as outscale

net01 = outscale.Net("net01", ip_range="10.0.0.0/16")
Copy
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
	})
}
Copy
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",
    });

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

    }
}
Copy
resources:
  net01:
    type: outscale:Net
    properties:
      ipRange: 10.0.0.0/16
Copy

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

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

    }
}
Copy
resources:
  securityGroup01:
    type: outscale:SecurityGroup
    properties:
      description: Terraform security group
      securityGroupName: terraform-security-group
      netId: ${outscale_net.net01.net_id}
Copy

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

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

    }
}
Copy
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}
Copy

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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. String
The unique name of the resource.
args This property is required. 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",
        },
    },
});
Copy
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"),
},
},
})
Copy
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());
Copy
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",
    }])
Copy
const securityGroupResource = new outscale.SecurityGroup("securityGroupResource", {
    description: "string",
    netId: "string",
    outscaleSecurityGroupId: "string",
    removeDefaultOutboundRule: false,
    securityGroupName: "string",
    tag: {
        string: "string",
    },
    tags: [{
        key: "string",
        value: "string",
    }],
});
Copy
type: outscale:SecurityGroup
properties:
    description: string
    netId: string
    outscaleSecurityGroupId: string
    removeDefaultOutboundRule: false
    securityGroupName: string
    tag:
        string: string
    tags:
        - key: string
          value: string
Copy

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.
OutscaleSecurityGroupId string
RemoveDefaultOutboundRule bool
(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.
SecurityGroupName string
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 are a-z, A-Z, 0-9, spaces, and _.-:/()#,@[]+=&;{}!$*.
Tag Dictionary<string, string>
Tags List<SecurityGroupTag>
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.
OutscaleSecurityGroupId string
RemoveDefaultOutboundRule bool
(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.
SecurityGroupName string
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 are a-z, A-Z, 0-9, spaces, and _.-:/()#,@[]+=&;{}!$*.
Tag map[string]string
Tags []SecurityGroupTagArgs
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.
outscaleSecurityGroupId String
removeDefaultOutboundRule Boolean
(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.
securityGroupName String
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 are a-z, A-Z, 0-9, spaces, and _.-:/()#,@[]+=&;{}!$*.
tag Map<String,String>
tags List<SecurityGroupTag>
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.
outscaleSecurityGroupId string
removeDefaultOutboundRule boolean
(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.
securityGroupName string
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 are a-z, A-Z, 0-9, spaces, and _.-:/()#,@[]+=&;{}!$*.
tag {[key: string]: string}
tags SecurityGroupTag[]
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_group_id str
remove_default_outbound_rule bool
(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_name str
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 are a-z, A-Z, 0-9, spaces, and _.-:/()#,@[]+=&;{}!$*.
tag Mapping[str, str]
tags Sequence[SecurityGroupTagArgs]
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.
outscaleSecurityGroupId String
removeDefaultOutboundRule Boolean
(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.
securityGroupName String
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 are a-z, A-Z, 0-9, spaces, and _.-:/()#,@[]+=&;{}!$*.
tag Map<String>
tags 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<SecurityGroupInboundRule>
The inbound rules associated with the security group.
OutboundRules List<SecurityGroupOutboundRule>
The outbound rules associated with the security group.
RequestId string
SecurityGroupId string
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 []SecurityGroupInboundRule
The inbound rules associated with the security group.
OutboundRules []SecurityGroupOutboundRule
The outbound rules associated with the security group.
RequestId string
SecurityGroupId string
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<SecurityGroupInboundRule>
The inbound rules associated with the security group.
outboundRules List<SecurityGroupOutboundRule>
The outbound rules associated with the security group.
requestId String
securityGroupId String
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 SecurityGroupInboundRule[]
The inbound rules associated with the security group.
outboundRules SecurityGroupOutboundRule[]
The outbound rules associated with the security group.
requestId string
securityGroupId string
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[SecurityGroupInboundRule]
The inbound rules associated with the security group.
outbound_rules Sequence[SecurityGroupOutboundRule]
The outbound rules associated with the security group.
request_id str
security_group_id str
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
securityGroupId String
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) -> SecurityGroup
func 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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
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<SecurityGroupInboundRule>
The inbound rules associated with the security group.
NetId string
The ID of the Net for the security group.
OutboundRules List<SecurityGroupOutboundRule>
The outbound rules associated with the security group.
OutscaleSecurityGroupId string
RemoveDefaultOutboundRule bool
(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
SecurityGroupId string
The ID of the security group.
SecurityGroupName string
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 are a-z, A-Z, 0-9, spaces, and _.-:/()#,@[]+=&;{}!$*.
Tag Dictionary<string, string>
Tags List<SecurityGroupTag>
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 []SecurityGroupInboundRuleArgs
The inbound rules associated with the security group.
NetId string
The ID of the Net for the security group.
OutboundRules []SecurityGroupOutboundRuleArgs
The outbound rules associated with the security group.
OutscaleSecurityGroupId string
RemoveDefaultOutboundRule bool
(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
SecurityGroupId string
The ID of the security group.
SecurityGroupName string
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 are a-z, A-Z, 0-9, spaces, and _.-:/()#,@[]+=&;{}!$*.
Tag map[string]string
Tags []SecurityGroupTagArgs
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<SecurityGroupInboundRule>
The inbound rules associated with the security group.
netId String
The ID of the Net for the security group.
outboundRules List<SecurityGroupOutboundRule>
The outbound rules associated with the security group.
outscaleSecurityGroupId String
removeDefaultOutboundRule Boolean
(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
securityGroupId String
The ID of the security group.
securityGroupName String
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 are a-z, A-Z, 0-9, spaces, and _.-:/()#,@[]+=&;{}!$*.
tag Map<String,String>
tags List<SecurityGroupTag>
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 SecurityGroupInboundRule[]
The inbound rules associated with the security group.
netId string
The ID of the Net for the security group.
outboundRules SecurityGroupOutboundRule[]
The outbound rules associated with the security group.
outscaleSecurityGroupId string
removeDefaultOutboundRule boolean
(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
securityGroupId string
The ID of the security group.
securityGroupName string
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 are a-z, A-Z, 0-9, spaces, and _.-:/()#,@[]+=&;{}!$*.
tag {[key: string]: string}
tags SecurityGroupTag[]
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[SecurityGroupInboundRuleArgs]
The inbound rules associated with the security group.
net_id str
The ID of the Net for the security group.
outbound_rules Sequence[SecurityGroupOutboundRuleArgs]
The outbound rules associated with the security group.
outscale_security_group_id str
remove_default_outbound_rule bool
(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_id str
The ID of the security group.
security_group_name str
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 are a-z, A-Z, 0-9, spaces, and _.-:/()#,@[]+=&;{}!$*.
tag Mapping[str, str]
tags Sequence[SecurityGroupTagArgs]
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.
outscaleSecurityGroupId String
removeDefaultOutboundRule Boolean
(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
securityGroupId String
The ID of the security group.
securityGroupName String
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 are a-z, A-Z, 0-9, spaces, and _.-:/()#,@[]+=&;{}!$*.
tag Map<String>
tags List<Property Map>
A tag to add to this resource. You can specify this argument several times.

Supporting Types

SecurityGroupInboundRule
, SecurityGroupInboundRuleArgs

FromPortRange This property is required. double
The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
IpProtocol This property is required. string
The IP protocol name (tcp, udp, icmp, or -1 for 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 This property is required. List<string>
One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
SecurityGroupsMembers This property is required. List<ImmutableDictionary<string, string>>
Information about one or more source or destination security groups.
ToPortRange This property is required. double
The end of the port range for the TCP and UDP protocols, or an ICMP code number.
FromPortRange This property is required. float64
The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
IpProtocol This property is required. string
The IP protocol name (tcp, udp, icmp, or -1 for 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 This property is required. []string
One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
SecurityGroupsMembers This property is required. []map[string]string
Information about one or more source or destination security groups.
ToPortRange This property is required. float64
The end of the port range for the TCP and UDP protocols, or an ICMP code number.
fromPortRange This property is required. Double
The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
ipProtocol This property is required. String
The IP protocol name (tcp, udp, icmp, or -1 for 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 This property is required. List<String>
One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
securityGroupsMembers This property is required. List<Map<String,String>>
Information about one or more source or destination security groups.
toPortRange This property is required. Double
The end of the port range for the TCP and UDP protocols, or an ICMP code number.
fromPortRange This property is required. number
The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
ipProtocol This property is required. string
The IP protocol name (tcp, udp, icmp, or -1 for 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 This property is required. string[]
One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
securityGroupsMembers This property is required. {[key: string]: string}[]
Information about one or more source or destination security groups.
toPortRange This property is required. number
The end of the port range for the TCP and UDP protocols, or an ICMP code number.
from_port_range This property is required. float
The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
ip_protocol This property is required. str
The IP protocol name (tcp, udp, icmp, or -1 for 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 This property is required. Sequence[str]
One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
security_groups_members This property is required. Sequence[Mapping[str, str]]
Information about one or more source or destination security groups.
to_port_range This property is required. float
The end of the port range for the TCP and UDP protocols, or an ICMP code number.
fromPortRange This property is required. Number
The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
ipProtocol This property is required. String
The IP protocol name (tcp, udp, icmp, or -1 for 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 This property is required. List<String>
One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
securityGroupsMembers This property is required. List<Map<String>>
Information about one or more source or destination security groups.
toPortRange This property is required. Number
The end of the port range for the TCP and UDP protocols, or an ICMP code number.

SecurityGroupOutboundRule
, SecurityGroupOutboundRuleArgs

FromPortRange This property is required. double
The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
IpProtocol This property is required. string
The IP protocol name (tcp, udp, icmp, or -1 for 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 This property is required. List<string>
One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
SecurityGroupsMembers This property is required. List<ImmutableDictionary<string, string>>
Information about one or more source or destination security groups.
ToPortRange This property is required. double
The end of the port range for the TCP and UDP protocols, or an ICMP code number.
FromPortRange This property is required. float64
The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
IpProtocol This property is required. string
The IP protocol name (tcp, udp, icmp, or -1 for 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 This property is required. []string
One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
SecurityGroupsMembers This property is required. []map[string]string
Information about one or more source or destination security groups.
ToPortRange This property is required. float64
The end of the port range for the TCP and UDP protocols, or an ICMP code number.
fromPortRange This property is required. Double
The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
ipProtocol This property is required. String
The IP protocol name (tcp, udp, icmp, or -1 for 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 This property is required. List<String>
One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
securityGroupsMembers This property is required. List<Map<String,String>>
Information about one or more source or destination security groups.
toPortRange This property is required. Double
The end of the port range for the TCP and UDP protocols, or an ICMP code number.
fromPortRange This property is required. number
The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
ipProtocol This property is required. string
The IP protocol name (tcp, udp, icmp, or -1 for 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 This property is required. string[]
One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
securityGroupsMembers This property is required. {[key: string]: string}[]
Information about one or more source or destination security groups.
toPortRange This property is required. number
The end of the port range for the TCP and UDP protocols, or an ICMP code number.
from_port_range This property is required. float
The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
ip_protocol This property is required. str
The IP protocol name (tcp, udp, icmp, or -1 for 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 This property is required. Sequence[str]
One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
security_groups_members This property is required. Sequence[Mapping[str, str]]
Information about one or more source or destination security groups.
to_port_range This property is required. float
The end of the port range for the TCP and UDP protocols, or an ICMP code number.
fromPortRange This property is required. Number
The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
ipProtocol This property is required. String
The IP protocol name (tcp, udp, icmp, or -1 for 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 This property is required. List<String>
One or more IP ranges for the security group rules, in CIDR notation (for example, 10.0.0.0/16).
securityGroupsMembers This property is required. List<Map<String>>
Information about one or more source or destination security groups.
toPortRange This property is required. Number
The end of the port range for the TCP and UDP protocols, or an ICMP code number.

SecurityGroupTag
, SecurityGroupTagArgs

Key string
The key of the tag, with a minimum of 1 character.
Value string
The value of the tag, between 0 and 255 characters.
Key string
The key of the tag, with a minimum of 1 character.
Value string
The value of the tag, between 0 and 255 characters.
key String
The key of the tag, with a minimum of 1 character.
value String
The value of the tag, between 0 and 255 characters.
key string
The key of the tag, with a minimum of 1 character.
value string
The value of the tag, between 0 and 255 characters.
key str
The key of the tag, with a minimum of 1 character.
value str
The value of the tag, between 0 and 255 characters.
key String
The key of the tag, with a minimum of 1 character.
value String
The value of the tag, between 0 and 255 characters.

Import

A security group can be imported using its ID. For example:

console

$ pulumi import outscale:index/securityGroup:SecurityGroup ImportedSecurityGroup sg-87654321
Copy

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 outscale Terraform Provider.