Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine
volcengine.vpc.SecurityGroups
Explore with Pulumi AI
Use this data source to query detailed information of security groups
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var @default = Volcengine.Vpc.SecurityGroups.Invoke(new()
{
Ids = new[]
{
"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.SecurityGroups(ctx, &vpc.SecurityGroupsArgs{
Ids: []string{
"sg-273ycgql3ig3k7fap8t3dyvqx",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
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.SecurityGroupsArgs;
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.SecurityGroups(SecurityGroupsArgs.builder()
.ids("sg-273ycgql3ig3k7fap8t3dyvqx")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.vpc.security_groups(ids=["sg-273ycgql3ig3k7fap8t3dyvqx"])
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.vpc.SecurityGroups({
ids: ["sg-273ycgql3ig3k7fap8t3dyvqx"],
});
variables:
default:
fn::invoke:
Function: volcengine:vpc:SecurityGroups
Arguments:
ids:
- sg-273ycgql3ig3k7fap8t3dyvqx
Using SecurityGroups
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 securityGroups(args: SecurityGroupsArgs, opts?: InvokeOptions): Promise<SecurityGroupsResult>
function securityGroupsOutput(args: SecurityGroupsOutputArgs, opts?: InvokeOptions): Output<SecurityGroupsResult>
def 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[SecurityGroupsTag]] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> SecurityGroupsResult
def 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[SecurityGroupsTagArgs]]]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[SecurityGroupsResult]
func SecurityGroups(ctx *Context, args *SecurityGroupsArgs, opts ...InvokeOption) (*SecurityGroupsResult, error)
func SecurityGroupsOutput(ctx *Context, args *SecurityGroupsOutputArgs, opts ...InvokeOption) SecurityGroupsResultOutput
public static class SecurityGroups
{
public static Task<SecurityGroupsResult> InvokeAsync(SecurityGroupsArgs args, InvokeOptions? opts = null)
public static Output<SecurityGroupsResult> Invoke(SecurityGroupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<SecurityGroupsResult> securityGroups(SecurityGroupsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:vpc:SecurityGroups
arguments:
# arguments dictionary
The 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<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.
- []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<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.
- 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[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.
SecurityGroups Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Security
Groups List<SecurityGroups 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<Security
Groups Tag> - Tags.
- Vpc
Id string - The ID of Vpc.
- Id string
- The provider-assigned unique ID for this managed resource.
- Security
Groups []SecurityGroups 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 - []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<SecurityGroups 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<Security
Groups Tag> - Tags.
- vpc
Id String - The ID of Vpc.
- id string
- The provider-assigned unique ID for this managed resource.
- security
Groups SecurityGroups 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 - 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[SecurityGroups 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[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
SecurityGroupsSecurityGroup
- 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<Security
Groups Security Group Tag> - Tags.
- Type string
- A Name Regex 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.
- []Security
Groups Security Group Tag - Tags.
- Type string
- A Name Regex 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<Security
Groups Security Group Tag> - Tags.
- type String
- A Name Regex 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.
- Security
Groups Security Group Tag[] - Tags.
- type string
- A Name Regex 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[Security
Groups Security Group Tag] - Tags.
- type str
- A Name Regex 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
- A Name Regex of SecurityGroup.
- vpc
Id String - The ID of vpc where security group is located.
SecurityGroupsSecurityGroupTag
SecurityGroupsTag
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.