Scaleway v1.25.0 published on Saturday, Mar 22, 2025 by pulumiverse
scaleway.instance.getSecurityGroup
Explore with Pulumi AI
Gets information about a Security Group.
Using getSecurityGroup
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSecurityGroup(args: GetSecurityGroupArgs, opts?: InvokeOptions): Promise<GetSecurityGroupResult>
function getSecurityGroupOutput(args: GetSecurityGroupOutputArgs, opts?: InvokeOptions): Output<GetSecurityGroupResult>def get_security_group(name: Optional[str] = None,
                       project_id: Optional[str] = None,
                       security_group_id: Optional[str] = None,
                       zone: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetSecurityGroupResult
def get_security_group_output(name: Optional[pulumi.Input[str]] = None,
                       project_id: Optional[pulumi.Input[str]] = None,
                       security_group_id: Optional[pulumi.Input[str]] = None,
                       zone: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetSecurityGroupResult]func LookupSecurityGroup(ctx *Context, args *LookupSecurityGroupArgs, opts ...InvokeOption) (*LookupSecurityGroupResult, error)
func LookupSecurityGroupOutput(ctx *Context, args *LookupSecurityGroupOutputArgs, opts ...InvokeOption) LookupSecurityGroupResultOutput> Note: This function is named LookupSecurityGroup in the Go SDK.
public static class GetSecurityGroup 
{
    public static Task<GetSecurityGroupResult> InvokeAsync(GetSecurityGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetSecurityGroupResult> Invoke(GetSecurityGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSecurityGroupResult> getSecurityGroup(GetSecurityGroupArgs args, InvokeOptions options)
public static Output<GetSecurityGroupResult> getSecurityGroup(GetSecurityGroupArgs args, InvokeOptions options)
fn::invoke:
  function: scaleway:instance/getSecurityGroup:getSecurityGroup
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- The security group name. Only one of nameandsecurity_group_idshould be specified.
- ProjectId string
- The ID of the project the security group is associated with.
- SecurityGroup stringId 
- The security group id. Only one of nameandsecurity_group_idshould be specified.
- Zone string
- zone) The zone in which the security group exists.
- Name string
- The security group name. Only one of nameandsecurity_group_idshould be specified.
- ProjectId string
- The ID of the project the security group is associated with.
- SecurityGroup stringId 
- The security group id. Only one of nameandsecurity_group_idshould be specified.
- Zone string
- zone) The zone in which the security group exists.
- name String
- The security group name. Only one of nameandsecurity_group_idshould be specified.
- projectId String
- The ID of the project the security group is associated with.
- securityGroup StringId 
- The security group id. Only one of nameandsecurity_group_idshould be specified.
- zone String
- zone) The zone in which the security group exists.
- name string
- The security group name. Only one of nameandsecurity_group_idshould be specified.
- projectId string
- The ID of the project the security group is associated with.
- securityGroup stringId 
- The security group id. Only one of nameandsecurity_group_idshould be specified.
- zone string
- zone) The zone in which the security group exists.
- name str
- The security group name. Only one of nameandsecurity_group_idshould be specified.
- project_id str
- The ID of the project the security group is associated with.
- security_group_ strid 
- The security group id. Only one of nameandsecurity_group_idshould be specified.
- zone str
- zone) The zone in which the security group exists.
- name String
- The security group name. Only one of nameandsecurity_group_idshould be specified.
- projectId String
- The ID of the project the security group is associated with.
- securityGroup StringId 
- The security group id. Only one of nameandsecurity_group_idshould be specified.
- zone String
- zone) The zone in which the security group exists.
getSecurityGroup Result
The following output properties are available:
- Description string
- EnableDefault boolSecurity 
- ExternalRules bool
- Id string
- The provider-assigned unique ID for this managed resource.
- InboundDefault stringPolicy 
- The default policy on incoming traffic. Possible values are: acceptordrop.
- InboundRules List<Pulumiverse.Scaleway. Instance. Outputs. Get Security Group Inbound Rule> 
- A list of inbound rule to add to the security group. (Structure is documented below.)
- OrganizationId string
- The ID of the organization the security group is associated with.
- OutboundDefault stringPolicy 
- The default policy on outgoing traffic. Possible values are: acceptordrop.
- OutboundRules List<Pulumiverse.Scaleway. Instance. Outputs. Get Security Group Outbound Rule> 
- A list of outbound rule to add to the security group. (Structure is documented below.)
- Stateful bool
- List<string>
- Name string
- ProjectId string
- SecurityGroup stringId 
- Zone string
- Description string
- EnableDefault boolSecurity 
- ExternalRules bool
- Id string
- The provider-assigned unique ID for this managed resource.
- InboundDefault stringPolicy 
- The default policy on incoming traffic. Possible values are: acceptordrop.
- InboundRules []GetSecurity Group Inbound Rule 
- A list of inbound rule to add to the security group. (Structure is documented below.)
- OrganizationId string
- The ID of the organization the security group is associated with.
- OutboundDefault stringPolicy 
- The default policy on outgoing traffic. Possible values are: acceptordrop.
- OutboundRules []GetSecurity Group Outbound Rule 
- A list of outbound rule to add to the security group. (Structure is documented below.)
- Stateful bool
- []string
- Name string
- ProjectId string
- SecurityGroup stringId 
- Zone string
- description String
- enableDefault BooleanSecurity 
- externalRules Boolean
- id String
- The provider-assigned unique ID for this managed resource.
- inboundDefault StringPolicy 
- The default policy on incoming traffic. Possible values are: acceptordrop.
- inboundRules List<GetSecurity Group Inbound Rule> 
- A list of inbound rule to add to the security group. (Structure is documented below.)
- organizationId String
- The ID of the organization the security group is associated with.
- outboundDefault StringPolicy 
- The default policy on outgoing traffic. Possible values are: acceptordrop.
- outboundRules List<GetSecurity Group Outbound Rule> 
- A list of outbound rule to add to the security group. (Structure is documented below.)
- stateful Boolean
- List<String>
- name String
- projectId String
- securityGroup StringId 
- zone String
- description string
- enableDefault booleanSecurity 
- externalRules boolean
- id string
- The provider-assigned unique ID for this managed resource.
- inboundDefault stringPolicy 
- The default policy on incoming traffic. Possible values are: acceptordrop.
- inboundRules GetSecurity Group Inbound Rule[] 
- A list of inbound rule to add to the security group. (Structure is documented below.)
- organizationId string
- The ID of the organization the security group is associated with.
- outboundDefault stringPolicy 
- The default policy on outgoing traffic. Possible values are: acceptordrop.
- outboundRules GetSecurity Group Outbound Rule[] 
- A list of outbound rule to add to the security group. (Structure is documented below.)
- stateful boolean
- string[]
- name string
- projectId string
- securityGroup stringId 
- zone string
- description str
- enable_default_ boolsecurity 
- external_rules bool
- id str
- The provider-assigned unique ID for this managed resource.
- inbound_default_ strpolicy 
- The default policy on incoming traffic. Possible values are: acceptordrop.
- inbound_rules Sequence[GetSecurity Group Inbound Rule] 
- A list of inbound rule to add to the security group. (Structure is documented below.)
- organization_id str
- The ID of the organization the security group is associated with.
- outbound_default_ strpolicy 
- The default policy on outgoing traffic. Possible values are: acceptordrop.
- outbound_rules Sequence[GetSecurity Group Outbound Rule] 
- A list of outbound rule to add to the security group. (Structure is documented below.)
- stateful bool
- Sequence[str]
- name str
- project_id str
- security_group_ strid 
- zone str
- description String
- enableDefault BooleanSecurity 
- externalRules Boolean
- id String
- The provider-assigned unique ID for this managed resource.
- 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.)
- organizationId String
- The ID of the organization 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.)
- stateful Boolean
- List<String>
- name String
- projectId String
- securityGroup StringId 
- zone String
Supporting Types
GetSecurityGroupInboundRule    
- Action string
- The action to take when rule match. Possible values are: acceptordrop.
- Ip string
- The ip this rule apply to.
- IpRange string
- The ip range (e.g 192.168.1.0/24) this rule apply to.
- Port int
- The port this rule apply to. If no port is specified, rule will apply to all port.
- PortRange string
- The port range (e.g 22-23) this rule applies to. If noportnorport_rangeare specified, rule will apply to all port. Only one ofportandport_rangeshould be specified.
- 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.
- IpRange string
- The ip range (e.g 192.168.1.0/24) this rule apply to.
- Port int
- The port this rule apply to. If no port is specified, rule will apply to all port.
- PortRange string
- The port range (e.g 22-23) this rule applies to. If noportnorport_rangeare specified, rule will apply to all port. Only one ofportandport_rangeshould be specified.
- 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.
- ipRange String
- The ip range (e.g 192.168.1.0/24) this rule apply to.
- port Integer
- The port this rule apply to. If no port is specified, rule will apply to all port.
- portRange String
- The port range (e.g 22-23) this rule applies to. If noportnorport_rangeare specified, rule will apply to all port. Only one ofportandport_rangeshould be specified.
- 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.
- ipRange string
- The ip range (e.g 192.168.1.0/24) this rule apply to.
- port number
- The port this rule apply to. If no port is specified, rule will apply to all port.
- portRange string
- The port range (e.g 22-23) this rule applies to. If noportnorport_rangeare specified, rule will apply to all port. Only one ofportandport_rangeshould be specified.
- 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.
- ip_range str
- The ip range (e.g 192.168.1.0/24) this rule apply to.
- port int
- The port this rule apply to. If no port is specified, rule will apply to all port.
- port_range str
- The port range (e.g 22-23) this rule applies to. If noportnorport_rangeare specified, rule will apply to all port. Only one ofportandport_rangeshould be specified.
- 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.
- ipRange String
- The ip range (e.g 192.168.1.0/24) this rule apply to.
- port Number
- The port this rule apply to. If no port is specified, rule will apply to all port.
- portRange String
- The port range (e.g 22-23) this rule applies to. If noportnorport_rangeare specified, rule will apply to all port. Only one ofportandport_rangeshould be specified.
- protocol String
- The protocol this rule apply to. Possible values are: TCP,UDP,ICMPorANY.
GetSecurityGroupOutboundRule    
- Action string
- The action to take when rule match. Possible values are: acceptordrop.
- Ip string
- The ip this rule apply to.
- IpRange string
- The ip range (e.g 192.168.1.0/24) this rule apply to.
- Port int
- The port this rule apply to. If no port is specified, rule will apply to all port.
- PortRange string
- The port range (e.g 22-23) this rule applies to. If noportnorport_rangeare specified, rule will apply to all port. Only one ofportandport_rangeshould be specified.
- 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.
- IpRange string
- The ip range (e.g 192.168.1.0/24) this rule apply to.
- Port int
- The port this rule apply to. If no port is specified, rule will apply to all port.
- PortRange string
- The port range (e.g 22-23) this rule applies to. If noportnorport_rangeare specified, rule will apply to all port. Only one ofportandport_rangeshould be specified.
- 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.
- ipRange String
- The ip range (e.g 192.168.1.0/24) this rule apply to.
- port Integer
- The port this rule apply to. If no port is specified, rule will apply to all port.
- portRange String
- The port range (e.g 22-23) this rule applies to. If noportnorport_rangeare specified, rule will apply to all port. Only one ofportandport_rangeshould be specified.
- 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.
- ipRange string
- The ip range (e.g 192.168.1.0/24) this rule apply to.
- port number
- The port this rule apply to. If no port is specified, rule will apply to all port.
- portRange string
- The port range (e.g 22-23) this rule applies to. If noportnorport_rangeare specified, rule will apply to all port. Only one ofportandport_rangeshould be specified.
- 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.
- ip_range str
- The ip range (e.g 192.168.1.0/24) this rule apply to.
- port int
- The port this rule apply to. If no port is specified, rule will apply to all port.
- port_range str
- The port range (e.g 22-23) this rule applies to. If noportnorport_rangeare specified, rule will apply to all port. Only one ofportandport_rangeshould be specified.
- 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.
- ipRange String
- The ip range (e.g 192.168.1.0/24) this rule apply to.
- port Number
- The port this rule apply to. If no port is specified, rule will apply to all port.
- portRange String
- The port range (e.g 22-23) this rule applies to. If noportnorport_rangeare specified, rule will apply to all port. Only one ofportandport_rangeshould be specified.
- protocol String
- The protocol this rule apply to. Possible values are: TCP,UDP,ICMPorANY.
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the scalewayTerraform Provider.
