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("security_group01", {
description: "Terraform security group",
securityGroupName: "terraform-security-group",
netId: net01.netId,
});
import pulumi
import pulumi_outscale as outscale
security_group01 = outscale.SecurityGroup("security_group01",
description="Terraform security group",
security_group_name="terraform-security-group",
net_id=net01["netId"])
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, "security_group01", &outscale.SecurityGroupArgs{
Description: pulumi.String("Terraform security group"),
SecurityGroupName: pulumi.String("terraform-security-group"),
NetId: pulumi.Any(net01.NetId),
})
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("security_group01", new()
{
Description = "Terraform security group",
SecurityGroupName = "terraform-security-group",
NetId = net01.NetId,
});
});
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(net01.netId())
.build());
}
}
resources:
securityGroup01:
type: outscale:SecurityGroup
name: security_group01
properties:
description: Terraform security group
securityGroupName: terraform-security-group
netId: ${net01.netId}
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("security_group02", {
removeDefaultOutboundRule: true,
description: "Terraform security group without outbound rule",
securityGroupName: "terraform-security-group-empty",
netId: net01.netId,
});
import pulumi
import pulumi_outscale as outscale
security_group02 = outscale.SecurityGroup("security_group02",
remove_default_outbound_rule=True,
description="Terraform security group without outbound rule",
security_group_name="terraform-security-group-empty",
net_id=net01["netId"])
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, "security_group02", &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(net01.NetId),
})
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("security_group02", new()
{
RemoveDefaultOutboundRule = true,
Description = "Terraform security group without outbound rule",
SecurityGroupName = "terraform-security-group-empty",
NetId = net01.NetId,
});
});
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(net01.netId())
.build());
}
}
resources:
securityGroup02:
type: outscale:SecurityGroup
name: security_group02
properties:
removeDefaultOutboundRule: true
description: Terraform security group without outbound rule
securityGroupName: terraform-security-group-empty
netId: ${net01.netId}
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: SecurityGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecurityGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
net_id: Optional[str] = None,
remove_default_outbound_rule: Optional[bool] = None,
security_group_name: Optional[str] = None,
tags: Optional[Sequence[SecurityGroupTagArgs]] = None,
timeouts: Optional[SecurityGroupTimeoutsArgs] = None)func NewSecurityGroup(ctx *Context, name string, args SecurityGroupArgs, opts ...ResourceOption) (*SecurityGroup, error)public SecurityGroup(string name, SecurityGroupArgs args, 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",
RemoveDefaultOutboundRule = false,
SecurityGroupName = "string",
Tags = new[]
{
new Outscale.Inputs.SecurityGroupTagArgs
{
Key = "string",
Value = "string",
},
},
Timeouts = new Outscale.Inputs.SecurityGroupTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
});
example, err := outscale.NewSecurityGroup(ctx, "securityGroupResource", &outscale.SecurityGroupArgs{
Description: pulumi.String("string"),
NetId: pulumi.String("string"),
RemoveDefaultOutboundRule: pulumi.Bool(false),
SecurityGroupName: pulumi.String("string"),
Tags: outscale.SecurityGroupTagArray{
&outscale.SecurityGroupTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Timeouts: &outscale.SecurityGroupTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var securityGroupResource = new SecurityGroup("securityGroupResource", SecurityGroupArgs.builder()
.description("string")
.netId("string")
.removeDefaultOutboundRule(false)
.securityGroupName("string")
.tags(SecurityGroupTagArgs.builder()
.key("string")
.value("string")
.build())
.timeouts(SecurityGroupTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.build());
security_group_resource = outscale.SecurityGroup("securityGroupResource",
description="string",
net_id="string",
remove_default_outbound_rule=False,
security_group_name="string",
tags=[{
"key": "string",
"value": "string",
}],
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
})
const securityGroupResource = new outscale.SecurityGroup("securityGroupResource", {
description: "string",
netId: "string",
removeDefaultOutboundRule: false,
securityGroupName: "string",
tags: [{
key: "string",
value: "string",
}],
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
});
type: outscale:SecurityGroup
properties:
description: string
netId: string
removeDefaultOutboundRule: false
securityGroupName: string
tags:
- key: string
value: string
timeouts:
create: string
delete: string
read: string
update: 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_.-:/()#,@[]+=&;{}!$*. - Net
Id string - The ID of the Net for the security group.
- 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 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_.-:/()#,@[]+=&;{}!$*. -
List<Security
Group Tag> - A tag to add to this resource. You can specify this argument several times.
- Timeouts
Security
Group Timeouts
- 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_.-:/()#,@[]+=&;{}!$*. - Net
Id string - The ID of the Net for the security group.
- 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 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_.-:/()#,@[]+=&;{}!$*. -
[]Security
Group Tag Args - A tag to add to this resource. You can specify this argument several times.
- Timeouts
Security
Group Timeouts Args
- 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_.-:/()#,@[]+=&;{}!$*. - net
Id String - The ID of the Net for the security group.
- remove
Default 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.
- security
Group 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_.-:/()#,@[]+=&;{}!$*. -
List<Security
Group Tag> - A tag to add to this resource. You can specify this argument several times.
- timeouts
Security
Group Timeouts
- 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_.-:/()#,@[]+=&;{}!$*. - net
Id string - The ID of the Net for the security group.
- remove
Default 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.
- security
Group 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_.-:/()#,@[]+=&;{}!$*. -
Security
Group Tag[] - A tag to add to this resource. You can specify this argument several times.
- timeouts
Security
Group Timeouts
- 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.
- 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_.-:/()#,@[]+=&;{}!$*. -
Sequence[Security
Group Tag Args] - A tag to add to this resource. You can specify this argument several times.
- timeouts
Security
Group Timeouts Args
- 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_.-:/()#,@[]+=&;{}!$*. - net
Id String - The ID of the Net for the security group.
- remove
Default 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.
- security
Group 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_.-:/()#,@[]+=&;{}!$*. - List<Property Map>
- A tag to add to this resource. You can specify this argument several times.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityGroup resource produces the following output properties:
- Account
Id string - The account ID that owns the source or destination security group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Inbound
Rules List<SecurityGroup Inbound Rule> - The inbound rules associated with the security group.
- Outbound
Rules List<SecurityGroup Outbound Rule> - The outbound rules associated with the security group.
- Request
Id string - Security
Group stringId - The ID of the security group.
- Account
Id string - The account ID that owns the source or destination security group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Inbound
Rules []SecurityGroup Inbound Rule - The inbound rules associated with the security group.
- Outbound
Rules []SecurityGroup Outbound Rule - The outbound rules associated with the security group.
- Request
Id string - Security
Group stringId - The ID of the security group.
- account
Id String - The account ID that owns the source or destination security group.
- id String
- The provider-assigned unique ID for this managed resource.
- inbound
Rules List<SecurityGroup Inbound Rule> - The inbound rules associated with the security group.
- outbound
Rules List<SecurityGroup Outbound Rule> - The outbound rules associated with the security group.
- request
Id String - security
Group StringId - The ID of the security group.
- account
Id string - The account ID that owns the source or destination security group.
- id string
- The provider-assigned unique ID for this managed resource.
- inbound
Rules SecurityGroup Inbound Rule[] - The inbound rules associated with the security group.
- outbound
Rules SecurityGroup Outbound Rule[] - The outbound rules associated with the security group.
- request
Id string - security
Group 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.
- account
Id String - The account ID that owns the source or destination security group.
- id String
- The provider-assigned unique ID for this managed resource.
- inbound
Rules List<Property Map> - The inbound rules associated with the security group.
- outbound
Rules List<Property Map> - The outbound rules associated with the security group.
- request
Id String - security
Group 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,
remove_default_outbound_rule: Optional[bool] = None,
request_id: Optional[str] = None,
security_group_id: Optional[str] = None,
security_group_name: Optional[str] = None,
tags: Optional[Sequence[SecurityGroupTagArgs]] = None,
timeouts: Optional[SecurityGroupTimeoutsArgs] = 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.
- Account
Id 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_.-:/()#,@[]+=&;{}!$*. - Inbound
Rules List<SecurityGroup Inbound Rule> - The inbound rules associated with the security group.
- Net
Id string - The ID of the Net for the security group.
- Outbound
Rules List<SecurityGroup Outbound Rule> - The outbound rules associated with the security group.
- 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 string - Security
Group stringId - The ID of the security group.
- Security
Group 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_.-:/()#,@[]+=&;{}!$*. -
List<Security
Group Tag> - A tag to add to this resource. You can specify this argument several times.
- Timeouts
Security
Group Timeouts
- Account
Id 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_.-:/()#,@[]+=&;{}!$*. - Inbound
Rules []SecurityGroup Inbound Rule Args - The inbound rules associated with the security group.
- Net
Id string - The ID of the Net for the security group.
- Outbound
Rules []SecurityGroup Outbound Rule Args - The outbound rules associated with the security group.
- 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 string - Security
Group stringId - The ID of the security group.
- Security
Group 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_.-:/()#,@[]+=&;{}!$*. -
[]Security
Group Tag Args - A tag to add to this resource. You can specify this argument several times.
- Timeouts
Security
Group Timeouts Args
- account
Id 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_.-:/()#,@[]+=&;{}!$*. - inbound
Rules List<SecurityGroup Inbound Rule> - The inbound rules associated with the security group.
- net
Id String - The ID of the Net for the security group.
- outbound
Rules List<SecurityGroup Outbound Rule> - The outbound rules associated with the security group.
- remove
Default 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.
- request
Id String - security
Group StringId - The ID of the security group.
- security
Group 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_.-:/()#,@[]+=&;{}!$*. -
List<Security
Group Tag> - A tag to add to this resource. You can specify this argument several times.
- timeouts
Security
Group Timeouts
- account
Id 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_.-:/()#,@[]+=&;{}!$*. - inbound
Rules SecurityGroup Inbound Rule[] - The inbound rules associated with the security group.
- net
Id string - The ID of the Net for the security group.
- outbound
Rules SecurityGroup Outbound Rule[] - The outbound rules associated with the security group.
- remove
Default 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.
- request
Id string - security
Group stringId - The ID of the security group.
- security
Group 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_.-:/()#,@[]+=&;{}!$*. -
Security
Group Tag[] - A tag to add to this resource. You can specify this argument several times.
- timeouts
Security
Group Timeouts
- 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.
- 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_.-:/()#,@[]+=&;{}!$*. -
Sequence[Security
Group Tag Args] - A tag to add to this resource. You can specify this argument several times.
- timeouts
Security
Group Timeouts Args
- account
Id 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_.-:/()#,@[]+=&;{}!$*. - inbound
Rules List<Property Map> - The inbound rules associated with the security group.
- net
Id String - The ID of the Net for the security group.
- outbound
Rules List<Property Map> - The outbound rules associated with the security group.
- remove
Default 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.
- request
Id String - security
Group StringId - The ID of the security group.
- security
Group 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_.-:/()#,@[]+=&;{}!$*. - List<Property Map>
- A tag to add to this resource. You can specify this argument several times.
- timeouts Property Map
Supporting Types
SecurityGroupInboundRule, SecurityGroupInboundRuleArgs
- From
Port doubleRange - The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- Ip
Protocol 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. - Ip
Ranges List<string> - One or more IP ranges for the security group rules, in CIDR notation (for example,
10.0.0.0/16). - Security
Groups List<SecurityMembers Group Inbound Rule Security Groups Member> - Information about one or more source or destination security groups.
- Service
Ids List<string> - One or more service IDs to allow traffic from a Net to access the corresponding OUTSCALE services. For more information, see ReadNetAccessPointServices.
- To
Port doubleRange - The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- From
Port float64Range - The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- Ip
Protocol 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. - Ip
Ranges []string - One or more IP ranges for the security group rules, in CIDR notation (for example,
10.0.0.0/16). - Security
Groups []SecurityMembers Group Inbound Rule Security Groups Member - Information about one or more source or destination security groups.
- Service
Ids []string - One or more service IDs to allow traffic from a Net to access the corresponding OUTSCALE services. For more information, see ReadNetAccessPointServices.
- To
Port float64Range - The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- from
Port DoubleRange - The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- ip
Protocol 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. - ip
Ranges List<String> - One or more IP ranges for the security group rules, in CIDR notation (for example,
10.0.0.0/16). - security
Groups List<SecurityMembers Group Inbound Rule Security Groups Member> - Information about one or more source or destination security groups.
- service
Ids List<String> - One or more service IDs to allow traffic from a Net to access the corresponding OUTSCALE services. For more information, see ReadNetAccessPointServices.
- to
Port DoubleRange - The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- from
Port numberRange - The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- ip
Protocol 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. - ip
Ranges string[] - One or more IP ranges for the security group rules, in CIDR notation (for example,
10.0.0.0/16). - security
Groups SecurityMembers Group Inbound Rule Security Groups Member[] - Information about one or more source or destination security groups.
- service
Ids string[] - One or more service IDs to allow traffic from a Net to access the corresponding OUTSCALE services. For more information, see ReadNetAccessPointServices.
- to
Port 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[Securitymembers Group Inbound Rule Security Groups Member] - Information about one or more source or destination security groups.
- service_
ids Sequence[str] - One or more service IDs to allow traffic from a Net to access the corresponding OUTSCALE services. For more information, see ReadNetAccessPointServices.
- to_
port_ floatrange - The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- from
Port NumberRange - The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- ip
Protocol 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. - ip
Ranges List<String> - One or more IP ranges for the security group rules, in CIDR notation (for example,
10.0.0.0/16). - security
Groups List<Property Map>Members - Information about one or more source or destination security groups.
- service
Ids List<String> - One or more service IDs to allow traffic from a Net to access the corresponding OUTSCALE services. For more information, see ReadNetAccessPointServices.
- to
Port NumberRange - The end of the port range for the TCP and UDP protocols, or an ICMP code number.
SecurityGroupInboundRuleSecurityGroupsMember, SecurityGroupInboundRuleSecurityGroupsMemberArgs
- Account
Id string - The account ID that owns the source or destination security group.
- Security
Group stringId - The ID of the security group.
- Security
Group 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_.-:/()#,@[]+=&;{}!$*.
- Account
Id string - The account ID that owns the source or destination security group.
- Security
Group stringId - The ID of the security group.
- Security
Group 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_.-:/()#,@[]+=&;{}!$*.
- account
Id String - The account ID that owns the source or destination security group.
- security
Group StringId - The ID of the security group.
- security
Group 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_.-:/()#,@[]+=&;{}!$*.
- account
Id string - The account ID that owns the source or destination security group.
- security
Group stringId - The ID of the security group.
- security
Group 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_.-:/()#,@[]+=&;{}!$*.
- account_
id str - The account ID that owns the source or destination security group.
- 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_.-:/()#,@[]+=&;{}!$*.
- account
Id String - The account ID that owns the source or destination security group.
- security
Group StringId - The ID of the security group.
- security
Group 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_.-:/()#,@[]+=&;{}!$*.
SecurityGroupOutboundRule, SecurityGroupOutboundRuleArgs
- From
Port doubleRange - The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- Ip
Protocol 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. - Ip
Ranges List<string> - One or more IP ranges for the security group rules, in CIDR notation (for example,
10.0.0.0/16). - Security
Groups List<SecurityMembers Group Outbound Rule Security Groups Member> - Information about one or more source or destination security groups.
- Service
Ids List<string> - One or more service IDs to allow traffic from a Net to access the corresponding OUTSCALE services. For more information, see ReadNetAccessPointServices.
- To
Port doubleRange - The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- From
Port float64Range - The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- Ip
Protocol 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. - Ip
Ranges []string - One or more IP ranges for the security group rules, in CIDR notation (for example,
10.0.0.0/16). - Security
Groups []SecurityMembers Group Outbound Rule Security Groups Member - Information about one or more source or destination security groups.
- Service
Ids []string - One or more service IDs to allow traffic from a Net to access the corresponding OUTSCALE services. For more information, see ReadNetAccessPointServices.
- To
Port float64Range - The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- from
Port DoubleRange - The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- ip
Protocol 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. - ip
Ranges List<String> - One or more IP ranges for the security group rules, in CIDR notation (for example,
10.0.0.0/16). - security
Groups List<SecurityMembers Group Outbound Rule Security Groups Member> - Information about one or more source or destination security groups.
- service
Ids List<String> - One or more service IDs to allow traffic from a Net to access the corresponding OUTSCALE services. For more information, see ReadNetAccessPointServices.
- to
Port DoubleRange - The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- from
Port numberRange - The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- ip
Protocol 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. - ip
Ranges string[] - One or more IP ranges for the security group rules, in CIDR notation (for example,
10.0.0.0/16). - security
Groups SecurityMembers Group Outbound Rule Security Groups Member[] - Information about one or more source or destination security groups.
- service
Ids string[] - One or more service IDs to allow traffic from a Net to access the corresponding OUTSCALE services. For more information, see ReadNetAccessPointServices.
- to
Port 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[Securitymembers Group Outbound Rule Security Groups Member] - Information about one or more source or destination security groups.
- service_
ids Sequence[str] - One or more service IDs to allow traffic from a Net to access the corresponding OUTSCALE services. For more information, see ReadNetAccessPointServices.
- to_
port_ floatrange - The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- from
Port NumberRange - The beginning of the port range for the TCP and UDP protocols, or an ICMP type number.
- ip
Protocol 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. - ip
Ranges List<String> - One or more IP ranges for the security group rules, in CIDR notation (for example,
10.0.0.0/16). - security
Groups List<Property Map>Members - Information about one or more source or destination security groups.
- service
Ids List<String> - One or more service IDs to allow traffic from a Net to access the corresponding OUTSCALE services. For more information, see ReadNetAccessPointServices.
- to
Port NumberRange - The end of the port range for the TCP and UDP protocols, or an ICMP code number.
SecurityGroupOutboundRuleSecurityGroupsMember, SecurityGroupOutboundRuleSecurityGroupsMemberArgs
- Account
Id string - The account ID that owns the source or destination security group.
- Security
Group stringId - The ID of the security group.
- Security
Group 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_.-:/()#,@[]+=&;{}!$*.
- Account
Id string - The account ID that owns the source or destination security group.
- Security
Group stringId - The ID of the security group.
- Security
Group 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_.-:/()#,@[]+=&;{}!$*.
- account
Id String - The account ID that owns the source or destination security group.
- security
Group StringId - The ID of the security group.
- security
Group 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_.-:/()#,@[]+=&;{}!$*.
- account
Id string - The account ID that owns the source or destination security group.
- security
Group stringId - The ID of the security group.
- security
Group 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_.-:/()#,@[]+=&;{}!$*.
- account_
id str - The account ID that owns the source or destination security group.
- 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_.-:/()#,@[]+=&;{}!$*.
- account
Id String - The account ID that owns the source or destination security group.
- security
Group StringId - The ID of the security group.
- security
Group 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_.-:/()#,@[]+=&;{}!$*.
SecurityGroupTag, SecurityGroupTagArgs
SecurityGroupTimeouts, SecurityGroupTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
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.
