Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of security groups
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.vpc.getSecurityGroups({
ids: ["sg-273ycgql3ig3k7fap8t3dyvqx"],
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.vpc.get_security_groups(ids=["sg-273ycgql3ig3k7fap8t3dyvqx"])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpc.GetSecurityGroups(ctx, &vpc.GetSecurityGroupsArgs{
Ids: []string{
"sg-273ycgql3ig3k7fap8t3dyvqx",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var @default = Volcengine.Vpc.GetSecurityGroups.Invoke(new()
{
Ids = new[]
{
"sg-273ycgql3ig3k7fap8t3dyvqx",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vpc.VpcFunctions;
import com.pulumi.volcengine.vpc.inputs.GetSecurityGroupsArgs;
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 default = VpcFunctions.getSecurityGroups(GetSecurityGroupsArgs.builder()
.ids("sg-273ycgql3ig3k7fap8t3dyvqx")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:vpc:getSecurityGroups
Arguments:
ids:
- sg-273ycgql3ig3k7fap8t3dyvqx
Using getSecurityGroups
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 getSecurityGroups(args: GetSecurityGroupsArgs, opts?: InvokeOptions): Promise<GetSecurityGroupsResult>
function getSecurityGroupsOutput(args: GetSecurityGroupsOutputArgs, opts?: InvokeOptions): Output<GetSecurityGroupsResult>def get_security_groups(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
project_name: Optional[str] = None,
security_group_names: Optional[Sequence[str]] = None,
tags: Optional[Sequence[GetSecurityGroupsTag]] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecurityGroupsResult
def get_security_groups_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
security_group_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetSecurityGroupsTagArgs]]]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecurityGroupsResult]func GetSecurityGroups(ctx *Context, args *GetSecurityGroupsArgs, opts ...InvokeOption) (*GetSecurityGroupsResult, error)
func GetSecurityGroupsOutput(ctx *Context, args *GetSecurityGroupsOutputArgs, opts ...InvokeOption) GetSecurityGroupsResultOutput> Note: This function is named GetSecurityGroups in the Go SDK.
public static class GetSecurityGroups
{
public static Task<GetSecurityGroupsResult> InvokeAsync(GetSecurityGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetSecurityGroupsResult> Invoke(GetSecurityGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSecurityGroupsResult> getSecurityGroups(GetSecurityGroupsArgs args, InvokeOptions options)
public static Output<GetSecurityGroupsResult> getSecurityGroups(GetSecurityGroupsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:vpc/getSecurityGroups:getSecurityGroups
arguments:
# arguments dictionaryThe following arguments are supported:
- Ids List<string>
- A list of SecurityGroup IDs.
- Name
Regex string - A Name Regex of SecurityGroup.
- Output
File string - File name where to save data source results.
- Project
Name string - The ProjectName of SecurityGroup.
- Security
Group List<string>Names - The list of security group name to query.
-
List<Get
Security Groups Tag> - Tags.
- Vpc
Id string - The ID of vpc where security group is located.
- Ids []string
- A list of SecurityGroup IDs.
- Name
Regex string - A Name Regex of SecurityGroup.
- Output
File string - File name where to save data source results.
- Project
Name string - The ProjectName of SecurityGroup.
- Security
Group []stringNames - The list of security group name to query.
-
[]Get
Security Groups Tag - Tags.
- Vpc
Id string - The ID of vpc where security group is located.
- ids List<String>
- A list of SecurityGroup IDs.
- name
Regex String - A Name Regex of SecurityGroup.
- output
File String - File name where to save data source results.
- project
Name String - The ProjectName of SecurityGroup.
- security
Group List<String>Names - The list of security group name to query.
-
List<Get
Security Groups Tag> - Tags.
- vpc
Id String - The ID of vpc where security group is located.
- ids string[]
- A list of SecurityGroup IDs.
- name
Regex string - A Name Regex of SecurityGroup.
- output
File string - File name where to save data source results.
- project
Name string - The ProjectName of SecurityGroup.
- security
Group string[]Names - The list of security group name to query.
-
Get
Security Groups Tag[] - Tags.
- vpc
Id string - The ID of vpc where security group is located.
- ids Sequence[str]
- A list of SecurityGroup IDs.
- name_
regex str - A Name Regex of SecurityGroup.
- output_
file str - File name where to save data source results.
- project_
name str - The ProjectName of SecurityGroup.
- security_
group_ Sequence[str]names - The list of security group name to query.
-
Sequence[Get
Security Groups Tag] - Tags.
- vpc_
id str - The ID of vpc where security group is located.
- ids List<String>
- A list of SecurityGroup IDs.
- name
Regex String - A Name Regex of SecurityGroup.
- output
File String - File name where to save data source results.
- project
Name String - The ProjectName of SecurityGroup.
- security
Group List<String>Names - The list of security group name to query.
- List<Property Map>
- Tags.
- vpc
Id String - The ID of vpc where security group is located.
getSecurityGroups Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Security
Groups List<GetSecurity Groups Security Group> - The collection of SecurityGroup query.
- Total
Count int - The total count of SecurityGroup query.
- Ids List<string>
- Name
Regex string - Output
File string - Project
Name string - The ProjectName of SecurityGroup.
- Security
Group List<string>Names -
List<Get
Security Groups Tag> - Tags.
- Vpc
Id string - The ID of Vpc.
- Id string
- The provider-assigned unique ID for this managed resource.
- Security
Groups []GetSecurity Groups Security Group - The collection of SecurityGroup query.
- Total
Count int - The total count of SecurityGroup query.
- Ids []string
- Name
Regex string - Output
File string - Project
Name string - The ProjectName of SecurityGroup.
- Security
Group []stringNames -
[]Get
Security Groups Tag - Tags.
- Vpc
Id string - The ID of Vpc.
- id String
- The provider-assigned unique ID for this managed resource.
- security
Groups List<GetSecurity Groups Security Group> - The collection of SecurityGroup query.
- total
Count Integer - The total count of SecurityGroup query.
- ids List<String>
- name
Regex String - output
File String - project
Name String - The ProjectName of SecurityGroup.
- security
Group List<String>Names -
List<Get
Security Groups Tag> - Tags.
- vpc
Id String - The ID of Vpc.
- id string
- The provider-assigned unique ID for this managed resource.
- security
Groups GetSecurity Groups Security Group[] - The collection of SecurityGroup query.
- total
Count number - The total count of SecurityGroup query.
- ids string[]
- name
Regex string - output
File string - project
Name string - The ProjectName of SecurityGroup.
- security
Group string[]Names -
Get
Security Groups Tag[] - Tags.
- vpc
Id string - The ID of Vpc.
- id str
- The provider-assigned unique ID for this managed resource.
- security_
groups Sequence[GetSecurity Groups Security Group] - The collection of SecurityGroup query.
- total_
count int - The total count of SecurityGroup query.
- ids Sequence[str]
- name_
regex str - output_
file str - project_
name str - The ProjectName of SecurityGroup.
- security_
group_ Sequence[str]names -
Sequence[Get
Security Groups Tag] - Tags.
- vpc_
id str - The ID of Vpc.
- id String
- The provider-assigned unique ID for this managed resource.
- security
Groups List<Property Map> - The collection of SecurityGroup query.
- total
Count Number - The total count of SecurityGroup query.
- ids List<String>
- name
Regex String - output
File String - project
Name String - The ProjectName of SecurityGroup.
- security
Group List<String>Names - List<Property Map>
- Tags.
- vpc
Id String - The ID of Vpc.
Supporting Types
GetSecurityGroupsSecurityGroup
- Creation
Time string - The creation time of SecurityGroup.
- Description string
- The description of SecurityGroup.
- Id string
- The ID of SecurityGroup.
- Project
Name string - The ProjectName of SecurityGroup.
- Security
Group stringId - The ID of SecurityGroup.
- Security
Group stringName - The Name of SecurityGroup.
- Status string
- The Status of SecurityGroup.
-
List<Get
Security Groups Security Group Tag> - Tags.
- Type string
- The type of SecurityGroup.
- Vpc
Id string - The ID of vpc where security group is located.
- Creation
Time string - The creation time of SecurityGroup.
- Description string
- The description of SecurityGroup.
- Id string
- The ID of SecurityGroup.
- Project
Name string - The ProjectName of SecurityGroup.
- Security
Group stringId - The ID of SecurityGroup.
- Security
Group stringName - The Name of SecurityGroup.
- Status string
- The Status of SecurityGroup.
-
[]Get
Security Groups Security Group Tag - Tags.
- Type string
- The type of SecurityGroup.
- Vpc
Id string - The ID of vpc where security group is located.
- creation
Time String - The creation time of SecurityGroup.
- description String
- The description of SecurityGroup.
- id String
- The ID of SecurityGroup.
- project
Name String - The ProjectName of SecurityGroup.
- security
Group StringId - The ID of SecurityGroup.
- security
Group StringName - The Name of SecurityGroup.
- status String
- The Status of SecurityGroup.
-
List<Get
Security Groups Security Group Tag> - Tags.
- type String
- The type of SecurityGroup.
- vpc
Id String - The ID of vpc where security group is located.
- creation
Time string - The creation time of SecurityGroup.
- description string
- The description of SecurityGroup.
- id string
- The ID of SecurityGroup.
- project
Name string - The ProjectName of SecurityGroup.
- security
Group stringId - The ID of SecurityGroup.
- security
Group stringName - The Name of SecurityGroup.
- status string
- The Status of SecurityGroup.
-
Get
Security Groups Security Group Tag[] - Tags.
- type string
- The type of SecurityGroup.
- vpc
Id string - The ID of vpc where security group is located.
- creation_
time str - The creation time of SecurityGroup.
- description str
- The description of SecurityGroup.
- id str
- The ID of SecurityGroup.
- project_
name str - The ProjectName of SecurityGroup.
- security_
group_ strid - The ID of SecurityGroup.
- security_
group_ strname - The Name of SecurityGroup.
- status str
- The Status of SecurityGroup.
-
Sequence[Get
Security Groups Security Group Tag] - Tags.
- type str
- The type of SecurityGroup.
- vpc_
id str - The ID of vpc where security group is located.
- creation
Time String - The creation time of SecurityGroup.
- description String
- The description of SecurityGroup.
- id String
- The ID of SecurityGroup.
- project
Name String - The ProjectName of SecurityGroup.
- security
Group StringId - The ID of SecurityGroup.
- security
Group StringName - The Name of SecurityGroup.
- status String
- The Status of SecurityGroup.
- List<Property Map>
- Tags.
- type String
- The type of SecurityGroup.
- vpc
Id String - The ID of vpc where security group is located.
GetSecurityGroupsSecurityGroupTag
GetSecurityGroupsTag
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
