Viewing docs for outscale 1.4.0
published on Tuesday, Feb 24, 2026 by outscale
published on Tuesday, Feb 24, 2026 by outscale
Viewing docs for outscale 1.4.0
published on Tuesday, Feb 24, 2026 by outscale
published on Tuesday, Feb 24, 2026 by outscale
Provides information about a security group.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const securityGroup01 = outscale.getSecurityGroup({
filters: [{
name: "security_group_ids",
values: ["sg-12345678"],
}],
});
import pulumi
import pulumi_outscale as outscale
security_group01 = outscale.get_security_group(filters=[{
"name": "security_group_ids",
"values": ["sg-12345678"],
}])
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.LookupSecurityGroup(ctx, &outscale.LookupSecurityGroupArgs{
Filters: []outscale.GetSecurityGroupFilter{
{
Name: "security_group_ids",
Values: []string{
"sg-12345678",
},
},
},
}, nil)
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 = Outscale.GetSecurityGroup.Invoke(new()
{
Filters = new[]
{
new Outscale.Inputs.GetSecurityGroupFilterInputArgs
{
Name = "security_group_ids",
Values = new[]
{
"sg-12345678",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetSecurityGroupArgs;
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) {
final var securityGroup01 = OutscaleFunctions.getSecurityGroup(GetSecurityGroupArgs.builder()
.filters(GetSecurityGroupFilterArgs.builder()
.name("security_group_ids")
.values("sg-12345678")
.build())
.build());
}
}
variables:
securityGroup01:
fn::invoke:
function: outscale:getSecurityGroup
arguments:
filters:
- name: security_group_ids
values:
- sg-12345678
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(filters: Optional[Sequence[GetSecurityGroupFilter]] = None,
id: Optional[str] = None,
security_group_id: Optional[str] = None,
security_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecurityGroupResult
def get_security_group_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetSecurityGroupFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
security_group_id: Optional[pulumi.Input[str]] = None,
security_group_name: 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: outscale:index/getSecurityGroup:getSecurityGroup
arguments:
# arguments dictionaryThe following arguments are supported:
- Filters
List<Get
Security Group Filter> - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- Id string
- Security
Group stringId - The ID of the security group.
- Security
Group stringName - The name of the security group.
- Filters
[]Get
Security Group Filter - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- Id string
- Security
Group stringId - The ID of the security group.
- Security
Group stringName - The name of the security group.
- filters
List<Get
Security Group Filter> - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id String
- security
Group StringId - The ID of the security group.
- security
Group StringName - The name of the security group.
- filters
Get
Security Group Filter[] - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id string
- security
Group stringId - The ID of the security group.
- security
Group stringName - The name of the security group.
- filters
Sequence[Get
Security Group Filter] - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id str
- security_
group_ strid - The ID of the security group.
- security_
group_ strname - The name of the security group.
- filters List<Property Map>
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id String
- security
Group StringId - The ID of the security group.
- security
Group StringName - The name of the security group.
getSecurityGroup Result
The following output properties are available:
- Account
Id string - The account ID that owns the source or destination security group.
- Description string
- The description of the security group.
- Id string
- Inbound
Rules List<GetSecurity Group 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<GetSecurity Group Outbound Rule> - The outbound rules associated with the security group.
- Request
Id string - Security
Group stringId - The ID of the security group.
- Security
Group stringName - The name of the security group.
-
List<Get
Security Group Tag> - One or more tags associated with the security group.
- Filters
List<Get
Security Group Filter>
- Account
Id string - The account ID that owns the source or destination security group.
- Description string
- The description of the security group.
- Id string
- Inbound
Rules []GetSecurity Group Inbound Rule - The inbound rules associated with the security group.
- Net
Id string - The ID of the Net for the security group.
- Outbound
Rules []GetSecurity Group Outbound Rule - The outbound rules associated with the security group.
- Request
Id string - Security
Group stringId - The ID of the security group.
- Security
Group stringName - The name of the security group.
-
[]Get
Security Group Tag - One or more tags associated with the security group.
- Filters
[]Get
Security Group Filter
- account
Id String - The account ID that owns the source or destination security group.
- description String
- The description of the security group.
- id String
- inbound
Rules List<GetSecurity Group 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<GetSecurity Group Outbound Rule> - The outbound rules associated with the security group.
- request
Id String - security
Group StringId - The ID of the security group.
- security
Group StringName - The name of the security group.
-
List<Get
Security Group Tag> - One or more tags associated with the security group.
- filters
List<Get
Security Group Filter>
- account
Id string - The account ID that owns the source or destination security group.
- description string
- The description of the security group.
- id string
- inbound
Rules GetSecurity Group Inbound Rule[] - The inbound rules associated with the security group.
- net
Id string - The ID of the Net for the security group.
- outbound
Rules GetSecurity Group Outbound Rule[] - The outbound rules associated with the security group.
- request
Id string - security
Group stringId - The ID of the security group.
- security
Group stringName - The name of the security group.
-
Get
Security Group Tag[] - One or more tags associated with the security group.
- filters
Get
Security Group Filter[]
- account_
id str - The account ID that owns the source or destination security group.
- description str
- The description of the security group.
- id str
- inbound_
rules Sequence[GetSecurity Group Inbound Rule] - The inbound rules associated with the security group.
- net_
id str - The ID of the Net for the security group.
- outbound_
rules Sequence[GetSecurity Group Outbound Rule] - The outbound rules associated with the security group.
- request_
id str - security_
group_ strid - The ID of the security group.
- security_
group_ strname - The name of the security group.
-
Sequence[Get
Security Group Tag] - One or more tags associated with the security group.
- filters
Sequence[Get
Security Group Filter]
- account
Id String - The account ID that owns the source or destination security group.
- description String
- The description of the security group.
- id String
- 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.
- request
Id String - security
Group StringId - The ID of the security group.
- security
Group StringName - The name of the security group.
- List<Property Map>
- One or more tags associated with the security group.
- filters List<Property Map>
Supporting Types
GetSecurityGroupFilter
GetSecurityGroupInboundRule
- 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). - Prefix
List List<string>Ids - Security
Groups List<GetMembers Security Group Inbound Rule Security Groups Member> - Information about one or more source or destination security groups.
- 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). - Prefix
List []stringIds - Security
Groups []GetMembers Security Group Inbound Rule Security Groups Member - Information about one or more source or destination security groups.
- 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). - prefix
List List<String>Ids - security
Groups List<GetMembers Security Group Inbound Rule Security Groups Member> - Information about one or more source or destination security groups.
- 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). - prefix
List string[]Ids - security
Groups GetMembers Security Group Inbound Rule Security Groups Member[] - Information about one or more source or destination security groups.
- 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). - prefix_
list_ Sequence[str]ids - security_
groups_ Sequence[Getmembers Security Group Inbound Rule Security Groups Member] - Information about one or more source or destination security groups.
- to_
port_ floatrange - The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- 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). - prefix
List List<String>Ids - security
Groups List<Property Map>Members - Information about one or more source or destination security groups.
- to
Port NumberRange - The end of the port range for the TCP and UDP protocols, or an ICMP code number.
GetSecurityGroupInboundRuleSecurityGroupsMember
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
GetSecurityGroupOutboundRule
- 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). - Prefix
List List<string>Ids - Security
Groups List<GetMembers Security Group Outbound Rule Security Groups Member> - Information about one or more source or destination security groups.
- 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). - Prefix
List []stringIds - Security
Groups []GetMembers Security Group Outbound Rule Security Groups Member - Information about one or more source or destination security groups.
- 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). - prefix
List List<String>Ids - security
Groups List<GetMembers Security Group Outbound Rule Security Groups Member> - Information about one or more source or destination security groups.
- 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). - prefix
List string[]Ids - security
Groups GetMembers Security Group Outbound Rule Security Groups Member[] - Information about one or more source or destination security groups.
- 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). - prefix_
list_ Sequence[str]ids - security_
groups_ Sequence[Getmembers Security Group Outbound Rule Security Groups Member] - Information about one or more source or destination security groups.
- to_
port_ floatrange - The end of the port range for the TCP and UDP protocols, or an ICMP code number.
- 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). - prefix
List List<String>Ids - security
Groups List<Property Map>Members - Information about one or more source or destination security groups.
- to
Port NumberRange - The end of the port range for the TCP and UDP protocols, or an ICMP code number.
GetSecurityGroupOutboundRuleSecurityGroupsMember
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
GetSecurityGroupTag
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the
outscaleTerraform Provider.
Viewing docs for outscale 1.4.0
published on Tuesday, Feb 24, 2026 by outscale
published on Tuesday, Feb 24, 2026 by outscale
