scaleway.instance.SecurityGroup
Explore with Pulumi AI
Import
Instance security group can be imported using the {zone}/{id}, e.g.
bash
$ pulumi import scaleway:instance/securityGroup:SecurityGroup web fr-par-1/11111111-1111-1111-1111-111111111111
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,
                  enable_default_security: Optional[bool] = None,
                  external_rules: Optional[bool] = None,
                  inbound_default_policy: Optional[str] = None,
                  inbound_rules: Optional[Sequence[SecurityGroupInboundRuleArgs]] = None,
                  name: Optional[str] = None,
                  outbound_default_policy: Optional[str] = None,
                  outbound_rules: Optional[Sequence[SecurityGroupOutboundRuleArgs]] = None,
                  project_id: Optional[str] = None,
                  stateful: Optional[bool] = None,
                  tags: Optional[Sequence[str]] = None,
                  zone: Optional[str] = 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: scaleway:instance: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 Scaleway.Instance.SecurityGroup("securityGroupResource", new()
{
    Description = "string",
    EnableDefaultSecurity = false,
    ExternalRules = false,
    InboundDefaultPolicy = "string",
    InboundRules = new[]
    {
        new Scaleway.Instance.Inputs.SecurityGroupInboundRuleArgs
        {
            Action = "string",
            IpRange = "string",
            Port = 0,
            PortRange = "string",
            Protocol = "string",
        },
    },
    Name = "string",
    OutboundDefaultPolicy = "string",
    OutboundRules = new[]
    {
        new Scaleway.Instance.Inputs.SecurityGroupOutboundRuleArgs
        {
            Action = "string",
            IpRange = "string",
            Port = 0,
            PortRange = "string",
            Protocol = "string",
        },
    },
    ProjectId = "string",
    Stateful = false,
    Tags = new[]
    {
        "string",
    },
    Zone = "string",
});
example, err := instance.NewSecurityGroup(ctx, "securityGroupResource", &instance.SecurityGroupArgs{
	Description:           pulumi.String("string"),
	EnableDefaultSecurity: pulumi.Bool(false),
	ExternalRules:         pulumi.Bool(false),
	InboundDefaultPolicy:  pulumi.String("string"),
	InboundRules: instance.SecurityGroupInboundRuleArray{
		&instance.SecurityGroupInboundRuleArgs{
			Action:    pulumi.String("string"),
			IpRange:   pulumi.String("string"),
			Port:      pulumi.Int(0),
			PortRange: pulumi.String("string"),
			Protocol:  pulumi.String("string"),
		},
	},
	Name:                  pulumi.String("string"),
	OutboundDefaultPolicy: pulumi.String("string"),
	OutboundRules: instance.SecurityGroupOutboundRuleArray{
		&instance.SecurityGroupOutboundRuleArgs{
			Action:    pulumi.String("string"),
			IpRange:   pulumi.String("string"),
			Port:      pulumi.Int(0),
			PortRange: pulumi.String("string"),
			Protocol:  pulumi.String("string"),
		},
	},
	ProjectId: pulumi.String("string"),
	Stateful:  pulumi.Bool(false),
	Tags: pulumi.StringArray{
		pulumi.String("string"),
	},
	Zone: pulumi.String("string"),
})
var securityGroupResource = new SecurityGroup("securityGroupResource", SecurityGroupArgs.builder()
    .description("string")
    .enableDefaultSecurity(false)
    .externalRules(false)
    .inboundDefaultPolicy("string")
    .inboundRules(SecurityGroupInboundRuleArgs.builder()
        .action("string")
        .ipRange("string")
        .port(0)
        .portRange("string")
        .protocol("string")
        .build())
    .name("string")
    .outboundDefaultPolicy("string")
    .outboundRules(SecurityGroupOutboundRuleArgs.builder()
        .action("string")
        .ipRange("string")
        .port(0)
        .portRange("string")
        .protocol("string")
        .build())
    .projectId("string")
    .stateful(false)
    .tags("string")
    .zone("string")
    .build());
security_group_resource = scaleway.instance.SecurityGroup("securityGroupResource",
    description="string",
    enable_default_security=False,
    external_rules=False,
    inbound_default_policy="string",
    inbound_rules=[{
        "action": "string",
        "ip_range": "string",
        "port": 0,
        "port_range": "string",
        "protocol": "string",
    }],
    name="string",
    outbound_default_policy="string",
    outbound_rules=[{
        "action": "string",
        "ip_range": "string",
        "port": 0,
        "port_range": "string",
        "protocol": "string",
    }],
    project_id="string",
    stateful=False,
    tags=["string"],
    zone="string")
const securityGroupResource = new scaleway.instance.SecurityGroup("securityGroupResource", {
    description: "string",
    enableDefaultSecurity: false,
    externalRules: false,
    inboundDefaultPolicy: "string",
    inboundRules: [{
        action: "string",
        ipRange: "string",
        port: 0,
        portRange: "string",
        protocol: "string",
    }],
    name: "string",
    outboundDefaultPolicy: "string",
    outboundRules: [{
        action: "string",
        ipRange: "string",
        port: 0,
        portRange: "string",
        protocol: "string",
    }],
    projectId: "string",
    stateful: false,
    tags: ["string"],
    zone: "string",
});
type: scaleway:instance:SecurityGroup
properties:
    description: string
    enableDefaultSecurity: false
    externalRules: false
    inboundDefaultPolicy: string
    inboundRules:
        - action: string
          ipRange: string
          port: 0
          portRange: string
          protocol: string
    name: string
    outboundDefaultPolicy: string
    outboundRules:
        - action: string
          ipRange: string
          port: 0
          portRange: string
          protocol: string
    projectId: string
    stateful: false
    tags:
        - string
    zone: 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
- The description of the security group.
- EnableDefault boolSecurity 
- Whether to block SMTP on IPv4/IPv6 (Port 25, 465, 587). Set to false will unblock SMTP if your account is authorized to. If your organization is not yet authorized to send SMTP traffic, open a support ticket.
- ExternalRules bool
- A boolean to specify whether to use instance_security_group_rules.
If external_rulesis set totrue,inbound_ruleandoutbound_rulecan not be set directly in the security group.
- InboundDefault stringPolicy 
- The default policy on incoming traffic. Possible values are: acceptordrop.
- InboundRules List<Pulumiverse.Scaleway. Instance. Inputs. Security Group Inbound Rule> 
- A list of inbound rule to add to the security group. (Structure is documented below.)
- Name string
- The name of the security group.
- OutboundDefault stringPolicy 
- The default policy on outgoing traffic. Possible values are: acceptordrop.
- OutboundRules List<Pulumiverse.Scaleway. Instance. Inputs. Security Group Outbound Rule> 
- A list of outbound rule to add to the security group. (Structure is documented below.)
- ProjectId string
- project_id) The ID of the project the security group is associated with.
- Stateful bool
- A boolean to specify whether the security group should be stateful or not.
- List<string>
- The tags associated with the security group
- Zone string
- zone) The zone in which the security group should be created.
- Description string
- The description of the security group.
- EnableDefault boolSecurity 
- Whether to block SMTP on IPv4/IPv6 (Port 25, 465, 587). Set to false will unblock SMTP if your account is authorized to. If your organization is not yet authorized to send SMTP traffic, open a support ticket.
- ExternalRules bool
- A boolean to specify whether to use instance_security_group_rules.
If external_rulesis set totrue,inbound_ruleandoutbound_rulecan not be set directly in the security group.
- InboundDefault stringPolicy 
- The default policy on incoming traffic. Possible values are: acceptordrop.
- InboundRules []SecurityGroup Inbound Rule Args 
- A list of inbound rule to add to the security group. (Structure is documented below.)
- Name string
- The name of the security group.
- OutboundDefault stringPolicy 
- The default policy on outgoing traffic. Possible values are: acceptordrop.
- OutboundRules []SecurityGroup Outbound Rule Args 
- A list of outbound rule to add to the security group. (Structure is documented below.)
- ProjectId string
- project_id) The ID of the project the security group is associated with.
- Stateful bool
- A boolean to specify whether the security group should be stateful or not.
- []string
- The tags associated with the security group
- Zone string
- zone) The zone in which the security group should be created.
- description String
- The description of the security group.
- enableDefault BooleanSecurity 
- Whether to block SMTP on IPv4/IPv6 (Port 25, 465, 587). Set to false will unblock SMTP if your account is authorized to. If your organization is not yet authorized to send SMTP traffic, open a support ticket.
- externalRules Boolean
- A boolean to specify whether to use instance_security_group_rules.
If external_rulesis set totrue,inbound_ruleandoutbound_rulecan not be set directly in the security group.
- inboundDefault StringPolicy 
- The default policy on incoming traffic. Possible values are: acceptordrop.
- inboundRules List<SecurityGroup Inbound Rule> 
- A list of inbound rule to add to the security group. (Structure is documented below.)
- name String
- The name of the security group.
- outboundDefault StringPolicy 
- The default policy on outgoing traffic. Possible values are: acceptordrop.
- outboundRules List<SecurityGroup Outbound Rule> 
- A list of outbound rule to add to the security group. (Structure is documented below.)
- projectId String
- project_id) The ID of the project the security group is associated with.
- stateful Boolean
- A boolean to specify whether the security group should be stateful or not.
- List<String>
- The tags associated with the security group
- zone String
- zone) The zone in which the security group should be created.
- description string
- The description of the security group.
- enableDefault booleanSecurity 
- Whether to block SMTP on IPv4/IPv6 (Port 25, 465, 587). Set to false will unblock SMTP if your account is authorized to. If your organization is not yet authorized to send SMTP traffic, open a support ticket.
- externalRules boolean
- A boolean to specify whether to use instance_security_group_rules.
If external_rulesis set totrue,inbound_ruleandoutbound_rulecan not be set directly in the security group.
- inboundDefault stringPolicy 
- The default policy on incoming traffic. Possible values are: acceptordrop.
- inboundRules SecurityGroup Inbound Rule[] 
- A list of inbound rule to add to the security group. (Structure is documented below.)
- name string
- The name of the security group.
- outboundDefault stringPolicy 
- The default policy on outgoing traffic. Possible values are: acceptordrop.
- outboundRules SecurityGroup Outbound Rule[] 
- A list of outbound rule to add to the security group. (Structure is documented below.)
- projectId string
- project_id) The ID of the project the security group is associated with.
- stateful boolean
- A boolean to specify whether the security group should be stateful or not.
- string[]
- The tags associated with the security group
- zone string
- zone) The zone in which the security group should be created.
- description str
- The description of the security group.
- enable_default_ boolsecurity 
- Whether to block SMTP on IPv4/IPv6 (Port 25, 465, 587). Set to false will unblock SMTP if your account is authorized to. If your organization is not yet authorized to send SMTP traffic, open a support ticket.
- external_rules bool
- A boolean to specify whether to use instance_security_group_rules.
If external_rulesis set totrue,inbound_ruleandoutbound_rulecan not be set directly in the security group.
- inbound_default_ strpolicy 
- The default policy on incoming traffic. Possible values are: acceptordrop.
- inbound_rules Sequence[SecurityGroup Inbound Rule Args] 
- A list of inbound rule to add to the security group. (Structure is documented below.)
- name str
- The name of the security group.
- outbound_default_ strpolicy 
- The default policy on outgoing traffic. Possible values are: acceptordrop.
- outbound_rules Sequence[SecurityGroup Outbound Rule Args] 
- A list of outbound rule to add to the security group. (Structure is documented below.)
- project_id str
- project_id) The ID of the project the security group is associated with.
- stateful bool
- A boolean to specify whether the security group should be stateful or not.
- Sequence[str]
- The tags associated with the security group
- zone str
- zone) The zone in which the security group should be created.
- description String
- The description of the security group.
- enableDefault BooleanSecurity 
- Whether to block SMTP on IPv4/IPv6 (Port 25, 465, 587). Set to false will unblock SMTP if your account is authorized to. If your organization is not yet authorized to send SMTP traffic, open a support ticket.
- externalRules Boolean
- A boolean to specify whether to use instance_security_group_rules.
If external_rulesis set totrue,inbound_ruleandoutbound_rulecan not be set directly in the security group.
- inboundDefault StringPolicy 
- The default policy on incoming traffic. Possible values are: acceptordrop.
- inboundRules List<Property Map>
- A list of inbound rule to add to the security group. (Structure is documented below.)
- name String
- The name of the security group.
- outboundDefault StringPolicy 
- The default policy on outgoing traffic. Possible values are: acceptordrop.
- outboundRules List<Property Map>
- A list of outbound rule to add to the security group. (Structure is documented below.)
- projectId String
- project_id) The ID of the project the security group is associated with.
- stateful Boolean
- A boolean to specify whether the security group should be stateful or not.
- List<String>
- The tags associated with the security group
- zone String
- zone) The zone in which the security group should be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- OrganizationId string
- The organization ID the security group is associated with.
- Id string
- The provider-assigned unique ID for this managed resource.
- OrganizationId string
- The organization ID the security group is associated with.
- id String
- The provider-assigned unique ID for this managed resource.
- organizationId String
- The organization ID the security group is associated with.
- id string
- The provider-assigned unique ID for this managed resource.
- organizationId string
- The organization ID the security group is associated with.
- id str
- The provider-assigned unique ID for this managed resource.
- organization_id str
- The organization ID the security group is associated with.
- id String
- The provider-assigned unique ID for this managed resource.
- organizationId String
- The organization ID the security group is associated with.
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,
        description: Optional[str] = None,
        enable_default_security: Optional[bool] = None,
        external_rules: Optional[bool] = None,
        inbound_default_policy: Optional[str] = None,
        inbound_rules: Optional[Sequence[SecurityGroupInboundRuleArgs]] = None,
        name: Optional[str] = None,
        organization_id: Optional[str] = None,
        outbound_default_policy: Optional[str] = None,
        outbound_rules: Optional[Sequence[SecurityGroupOutboundRuleArgs]] = None,
        project_id: Optional[str] = None,
        stateful: Optional[bool] = None,
        tags: Optional[Sequence[str]] = None,
        zone: Optional[str] = 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: scaleway:instance: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.
- Description string
- The description of the security group.
- EnableDefault boolSecurity 
- Whether to block SMTP on IPv4/IPv6 (Port 25, 465, 587). Set to false will unblock SMTP if your account is authorized to. If your organization is not yet authorized to send SMTP traffic, open a support ticket.
- ExternalRules bool
- A boolean to specify whether to use instance_security_group_rules.
If external_rulesis set totrue,inbound_ruleandoutbound_rulecan not be set directly in the security group.
- InboundDefault stringPolicy 
- The default policy on incoming traffic. Possible values are: acceptordrop.
- InboundRules List<Pulumiverse.Scaleway. Instance. Inputs. Security Group Inbound Rule> 
- A list of inbound rule to add to the security group. (Structure is documented below.)
- Name string
- The name of the security group.
- OrganizationId string
- The organization ID the security group is associated with.
- OutboundDefault stringPolicy 
- The default policy on outgoing traffic. Possible values are: acceptordrop.
- OutboundRules List<Pulumiverse.Scaleway. Instance. Inputs. Security Group Outbound Rule> 
- A list of outbound rule to add to the security group. (Structure is documented below.)
- ProjectId string
- project_id) The ID of the project the security group is associated with.
- Stateful bool
- A boolean to specify whether the security group should be stateful or not.
- List<string>
- The tags associated with the security group
- Zone string
- zone) The zone in which the security group should be created.
- Description string
- The description of the security group.
- EnableDefault boolSecurity 
- Whether to block SMTP on IPv4/IPv6 (Port 25, 465, 587). Set to false will unblock SMTP if your account is authorized to. If your organization is not yet authorized to send SMTP traffic, open a support ticket.
- ExternalRules bool
- A boolean to specify whether to use instance_security_group_rules.
If external_rulesis set totrue,inbound_ruleandoutbound_rulecan not be set directly in the security group.
- InboundDefault stringPolicy 
- The default policy on incoming traffic. Possible values are: acceptordrop.
- InboundRules []SecurityGroup Inbound Rule Args 
- A list of inbound rule to add to the security group. (Structure is documented below.)
- Name string
- The name of the security group.
- OrganizationId string
- The organization ID the security group is associated with.
- OutboundDefault stringPolicy 
- The default policy on outgoing traffic. Possible values are: acceptordrop.
- OutboundRules []SecurityGroup Outbound Rule Args 
- A list of outbound rule to add to the security group. (Structure is documented below.)
- ProjectId string
- project_id) The ID of the project the security group is associated with.
- Stateful bool
- A boolean to specify whether the security group should be stateful or not.
- []string
- The tags associated with the security group
- Zone string
- zone) The zone in which the security group should be created.
- description String
- The description of the security group.
- enableDefault BooleanSecurity 
- Whether to block SMTP on IPv4/IPv6 (Port 25, 465, 587). Set to false will unblock SMTP if your account is authorized to. If your organization is not yet authorized to send SMTP traffic, open a support ticket.
- externalRules Boolean
- A boolean to specify whether to use instance_security_group_rules.
If external_rulesis set totrue,inbound_ruleandoutbound_rulecan not be set directly in the security group.
- inboundDefault StringPolicy 
- The default policy on incoming traffic. Possible values are: acceptordrop.
- inboundRules List<SecurityGroup Inbound Rule> 
- A list of inbound rule to add to the security group. (Structure is documented below.)
- name String
- The name of the security group.
- organizationId String
- The organization ID the security group is associated with.
- outboundDefault StringPolicy 
- The default policy on outgoing traffic. Possible values are: acceptordrop.
- outboundRules List<SecurityGroup Outbound Rule> 
- A list of outbound rule to add to the security group. (Structure is documented below.)
- projectId String
- project_id) The ID of the project the security group is associated with.
- stateful Boolean
- A boolean to specify whether the security group should be stateful or not.
- List<String>
- The tags associated with the security group
- zone String
- zone) The zone in which the security group should be created.
- description string
- The description of the security group.
- enableDefault booleanSecurity 
- Whether to block SMTP on IPv4/IPv6 (Port 25, 465, 587). Set to false will unblock SMTP if your account is authorized to. If your organization is not yet authorized to send SMTP traffic, open a support ticket.
- externalRules boolean
- A boolean to specify whether to use instance_security_group_rules.
If external_rulesis set totrue,inbound_ruleandoutbound_rulecan not be set directly in the security group.
- inboundDefault stringPolicy 
- The default policy on incoming traffic. Possible values are: acceptordrop.
- inboundRules SecurityGroup Inbound Rule[] 
- A list of inbound rule to add to the security group. (Structure is documented below.)
- name string
- The name of the security group.
- organizationId string
- The organization ID the security group is associated with.
- outboundDefault stringPolicy 
- The default policy on outgoing traffic. Possible values are: acceptordrop.
- outboundRules SecurityGroup Outbound Rule[] 
- A list of outbound rule to add to the security group. (Structure is documented below.)
- projectId string
- project_id) The ID of the project the security group is associated with.
- stateful boolean
- A boolean to specify whether the security group should be stateful or not.
- string[]
- The tags associated with the security group
- zone string
- zone) The zone in which the security group should be created.
- description str
- The description of the security group.
- enable_default_ boolsecurity 
- Whether to block SMTP on IPv4/IPv6 (Port 25, 465, 587). Set to false will unblock SMTP if your account is authorized to. If your organization is not yet authorized to send SMTP traffic, open a support ticket.
- external_rules bool
- A boolean to specify whether to use instance_security_group_rules.
If external_rulesis set totrue,inbound_ruleandoutbound_rulecan not be set directly in the security group.
- inbound_default_ strpolicy 
- The default policy on incoming traffic. Possible values are: acceptordrop.
- inbound_rules Sequence[SecurityGroup Inbound Rule Args] 
- A list of inbound rule to add to the security group. (Structure is documented below.)
- name str
- The name of the security group.
- organization_id str
- The organization ID the security group is associated with.
- outbound_default_ strpolicy 
- The default policy on outgoing traffic. Possible values are: acceptordrop.
- outbound_rules Sequence[SecurityGroup Outbound Rule Args] 
- A list of outbound rule to add to the security group. (Structure is documented below.)
- project_id str
- project_id) The ID of the project the security group is associated with.
- stateful bool
- A boolean to specify whether the security group should be stateful or not.
- Sequence[str]
- The tags associated with the security group
- zone str
- zone) The zone in which the security group should be created.
- description String
- The description of the security group.
- enableDefault BooleanSecurity 
- Whether to block SMTP on IPv4/IPv6 (Port 25, 465, 587). Set to false will unblock SMTP if your account is authorized to. If your organization is not yet authorized to send SMTP traffic, open a support ticket.
- externalRules Boolean
- A boolean to specify whether to use instance_security_group_rules.
If external_rulesis set totrue,inbound_ruleandoutbound_rulecan not be set directly in the security group.
- inboundDefault StringPolicy 
- The default policy on incoming traffic. Possible values are: acceptordrop.
- inboundRules List<Property Map>
- A list of inbound rule to add to the security group. (Structure is documented below.)
- name String
- The name of the security group.
- organizationId String
- The organization ID the security group is associated with.
- outboundDefault StringPolicy 
- The default policy on outgoing traffic. Possible values are: acceptordrop.
- outboundRules List<Property Map>
- A list of outbound rule to add to the security group. (Structure is documented below.)
- projectId String
- project_id) The ID of the project the security group is associated with.
- stateful Boolean
- A boolean to specify whether the security group should be stateful or not.
- List<String>
- The tags associated with the security group
- zone String
- zone) The zone in which the security group should be created.
Supporting Types
SecurityGroupInboundRule, SecurityGroupInboundRuleArgs        
- Action string
- The action to take when rule match. Possible values are: acceptordrop.
- Ip string
- The ip this rule apply to. If no ipnorip_rangeare specified, rule will apply to all ip. Only one ofipandip_rangeshould be specified.
- IpRange string
- The ip range (e.g 192.168.1.0/24) this rule applies to. If noipnorip_rangeare specified, rule will apply to all ip. Only one ofipandip_rangeshould be specified.
- Port int
- The port this rule applies to. If no portnorport_rangeare specified, the rule will apply to all port. Only one ofportandport_rangeshould be specified.
- PortRange string
- Computed port range for this rule (e.g: 1-1024, 22-22)
- Protocol string
- The protocol this rule apply to. Possible values are: TCP,UDP,ICMPorANY.
- Action string
- The action to take when rule match. Possible values are: acceptordrop.
- Ip string
- The ip this rule apply to. If no ipnorip_rangeare specified, rule will apply to all ip. Only one ofipandip_rangeshould be specified.
- IpRange string
- The ip range (e.g 192.168.1.0/24) this rule applies to. If noipnorip_rangeare specified, rule will apply to all ip. Only one ofipandip_rangeshould be specified.
- Port int
- The port this rule applies to. If no portnorport_rangeare specified, the rule will apply to all port. Only one ofportandport_rangeshould be specified.
- PortRange string
- Computed port range for this rule (e.g: 1-1024, 22-22)
- Protocol string
- The protocol this rule apply to. Possible values are: TCP,UDP,ICMPorANY.
- action String
- The action to take when rule match. Possible values are: acceptordrop.
- ip String
- The ip this rule apply to. If no ipnorip_rangeare specified, rule will apply to all ip. Only one ofipandip_rangeshould be specified.
- ipRange String
- The ip range (e.g 192.168.1.0/24) this rule applies to. If noipnorip_rangeare specified, rule will apply to all ip. Only one ofipandip_rangeshould be specified.
- port Integer
- The port this rule applies to. If no portnorport_rangeare specified, the rule will apply to all port. Only one ofportandport_rangeshould be specified.
- portRange String
- Computed port range for this rule (e.g: 1-1024, 22-22)
- protocol String
- The protocol this rule apply to. Possible values are: TCP,UDP,ICMPorANY.
- action string
- The action to take when rule match. Possible values are: acceptordrop.
- ip string
- The ip this rule apply to. If no ipnorip_rangeare specified, rule will apply to all ip. Only one ofipandip_rangeshould be specified.
- ipRange string
- The ip range (e.g 192.168.1.0/24) this rule applies to. If noipnorip_rangeare specified, rule will apply to all ip. Only one ofipandip_rangeshould be specified.
- port number
- The port this rule applies to. If no portnorport_rangeare specified, the rule will apply to all port. Only one ofportandport_rangeshould be specified.
- portRange string
- Computed port range for this rule (e.g: 1-1024, 22-22)
- protocol string
- The protocol this rule apply to. Possible values are: TCP,UDP,ICMPorANY.
- action str
- The action to take when rule match. Possible values are: acceptordrop.
- ip str
- The ip this rule apply to. If no ipnorip_rangeare specified, rule will apply to all ip. Only one ofipandip_rangeshould be specified.
- ip_range str
- The ip range (e.g 192.168.1.0/24) this rule applies to. If noipnorip_rangeare specified, rule will apply to all ip. Only one ofipandip_rangeshould be specified.
- port int
- The port this rule applies to. If no portnorport_rangeare specified, the rule will apply to all port. Only one ofportandport_rangeshould be specified.
- port_range str
- Computed port range for this rule (e.g: 1-1024, 22-22)
- protocol str
- The protocol this rule apply to. Possible values are: TCP,UDP,ICMPorANY.
- action String
- The action to take when rule match. Possible values are: acceptordrop.
- ip String
- The ip this rule apply to. If no ipnorip_rangeare specified, rule will apply to all ip. Only one ofipandip_rangeshould be specified.
- ipRange String
- The ip range (e.g 192.168.1.0/24) this rule applies to. If noipnorip_rangeare specified, rule will apply to all ip. Only one ofipandip_rangeshould be specified.
- port Number
- The port this rule applies to. If no portnorport_rangeare specified, the rule will apply to all port. Only one ofportandport_rangeshould be specified.
- portRange String
- Computed port range for this rule (e.g: 1-1024, 22-22)
- protocol String
- The protocol this rule apply to. Possible values are: TCP,UDP,ICMPorANY.
SecurityGroupOutboundRule, SecurityGroupOutboundRuleArgs        
- Action string
- Action when rule match request (drop or accept)
- Ip string
- Ip address for this rule (e.g: 1.1.1.1). Only one of ip or ip_range should be provided
- IpRange string
- Ip range for this rule (e.g: 192.168.1.0/24). Only one of ip or ip_range should be provided
- Port int
- Network port for this rule
- PortRange string
- Computed port range for this rule (e.g: 1-1024, 22-22)
- Protocol string
- Protocol for this rule (TCP, UDP, ICMP or ANY)
- Action string
- Action when rule match request (drop or accept)
- Ip string
- Ip address for this rule (e.g: 1.1.1.1). Only one of ip or ip_range should be provided
- IpRange string
- Ip range for this rule (e.g: 192.168.1.0/24). Only one of ip or ip_range should be provided
- Port int
- Network port for this rule
- PortRange string
- Computed port range for this rule (e.g: 1-1024, 22-22)
- Protocol string
- Protocol for this rule (TCP, UDP, ICMP or ANY)
- action String
- Action when rule match request (drop or accept)
- ip String
- Ip address for this rule (e.g: 1.1.1.1). Only one of ip or ip_range should be provided
- ipRange String
- Ip range for this rule (e.g: 192.168.1.0/24). Only one of ip or ip_range should be provided
- port Integer
- Network port for this rule
- portRange String
- Computed port range for this rule (e.g: 1-1024, 22-22)
- protocol String
- Protocol for this rule (TCP, UDP, ICMP or ANY)
- action string
- Action when rule match request (drop or accept)
- ip string
- Ip address for this rule (e.g: 1.1.1.1). Only one of ip or ip_range should be provided
- ipRange string
- Ip range for this rule (e.g: 192.168.1.0/24). Only one of ip or ip_range should be provided
- port number
- Network port for this rule
- portRange string
- Computed port range for this rule (e.g: 1-1024, 22-22)
- protocol string
- Protocol for this rule (TCP, UDP, ICMP or ANY)
- action str
- Action when rule match request (drop or accept)
- ip str
- Ip address for this rule (e.g: 1.1.1.1). Only one of ip or ip_range should be provided
- ip_range str
- Ip range for this rule (e.g: 192.168.1.0/24). Only one of ip or ip_range should be provided
- port int
- Network port for this rule
- port_range str
- Computed port range for this rule (e.g: 1-1024, 22-22)
- protocol str
- Protocol for this rule (TCP, UDP, ICMP or ANY)
- action String
- Action when rule match request (drop or accept)
- ip String
- Ip address for this rule (e.g: 1.1.1.1). Only one of ip or ip_range should be provided
- ipRange String
- Ip range for this rule (e.g: 192.168.1.0/24). Only one of ip or ip_range should be provided
- port Number
- Network port for this rule
- portRange String
- Computed port range for this rule (e.g: 1-1024, 22-22)
- protocol String
- Protocol for this rule (TCP, UDP, ICMP or ANY)
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the scalewayTerraform Provider.
