1. Packages
  2. Volcengine
  3. API Docs
  4. vpc
  5. FlowLogs
Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine

volcengine.vpc.FlowLogs

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine
    Deprecated: volcengine.vpc.FlowLogs has been deprecated in favor of volcengine.vpc.getFlowLogs

    Use this data source to query detailed information of flow logs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.vpc.getFlowLogs({
        flowLogIds: ["fl-13g4fqngluhog3n6nu57o****"],
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.vpc.get_flow_logs(flow_log_ids=["fl-13g4fqngluhog3n6nu57o****"])
    
    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.GetFlowLogs(ctx, &vpc.GetFlowLogsArgs{
    			FlowLogIds: []string{
    				"fl-13g4fqngluhog3n6nu57o****",
    			},
    		}, 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 foo = Volcengine.Vpc.GetFlowLogs.Invoke(new()
        {
            FlowLogIds = new[]
            {
                "fl-13g4fqngluhog3n6nu57o****",
            },
        });
    
    });
    
    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.GetFlowLogsArgs;
    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 foo = VpcFunctions.getFlowLogs(GetFlowLogsArgs.builder()
                .flowLogIds("fl-13g4fqngluhog3n6nu57o****")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:vpc:getFlowLogs
          Arguments:
            flowLogIds:
              - fl-13g4fqngluhog3n6nu57o****
    

    Using FlowLogs

    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 flowLogs(args: FlowLogsArgs, opts?: InvokeOptions): Promise<FlowLogsResult>
    function flowLogsOutput(args: FlowLogsOutputArgs, opts?: InvokeOptions): Output<FlowLogsResult>
    def flow_logs(aggregation_interval: Optional[int] = None,
                  description: Optional[str] = None,
                  flow_log_ids: Optional[Sequence[str]] = None,
                  flow_log_name: Optional[str] = None,
                  log_project_id: Optional[str] = None,
                  log_topic_id: Optional[str] = None,
                  name_regex: Optional[str] = None,
                  output_file: Optional[str] = None,
                  project_name: Optional[str] = None,
                  resource_id: Optional[str] = None,
                  resource_type: Optional[str] = None,
                  status: Optional[str] = None,
                  tags: Optional[Sequence[FlowLogsTag]] = None,
                  traffic_type: Optional[str] = None,
                  vpc_id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> FlowLogsResult
    def flow_logs_output(aggregation_interval: Optional[pulumi.Input[int]] = None,
                  description: Optional[pulumi.Input[str]] = None,
                  flow_log_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                  flow_log_name: Optional[pulumi.Input[str]] = None,
                  log_project_id: Optional[pulumi.Input[str]] = None,
                  log_topic_id: Optional[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,
                  resource_id: Optional[pulumi.Input[str]] = None,
                  resource_type: Optional[pulumi.Input[str]] = None,
                  status: Optional[pulumi.Input[str]] = None,
                  tags: Optional[pulumi.Input[Sequence[pulumi.Input[FlowLogsTagArgs]]]] = None,
                  traffic_type: Optional[pulumi.Input[str]] = None,
                  vpc_id: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[FlowLogsResult]
    func FlowLogs(ctx *Context, args *FlowLogsArgs, opts ...InvokeOption) (*FlowLogsResult, error)
    func FlowLogsOutput(ctx *Context, args *FlowLogsOutputArgs, opts ...InvokeOption) FlowLogsResultOutput
    public static class FlowLogs 
    {
        public static Task<FlowLogsResult> InvokeAsync(FlowLogsArgs args, InvokeOptions? opts = null)
        public static Output<FlowLogsResult> Invoke(FlowLogsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<FlowLogsResult> flowLogs(FlowLogsArgs args, InvokeOptions options)
    public static Output<FlowLogsResult> flowLogs(FlowLogsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:vpc:FlowLogs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AggregationInterval int
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    Description string
    The description of flow log.
    FlowLogIds List<string>
    A list of flow log IDs.
    FlowLogName string
    The name of flow log.
    LogProjectId string
    The ID of log project.
    LogTopicId string
    The ID of log topic.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    ProjectName string
    The project name of flow log.
    ResourceId string
    The ID of resource.
    ResourceType string
    The type of resource. Valid values: vpc, subnet, eni.
    Status string
    The status of flow log. Valid values: Active, Pending, Inactive, Creating, Deleting.
    Tags List<FlowLogsTag>
    Tags.
    TrafficType string
    The type of traffic. Valid values: All, Allow, Drop.
    VpcId string
    The ID of VPC.
    AggregationInterval int
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    Description string
    The description of flow log.
    FlowLogIds []string
    A list of flow log IDs.
    FlowLogName string
    The name of flow log.
    LogProjectId string
    The ID of log project.
    LogTopicId string
    The ID of log topic.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    ProjectName string
    The project name of flow log.
    ResourceId string
    The ID of resource.
    ResourceType string
    The type of resource. Valid values: vpc, subnet, eni.
    Status string
    The status of flow log. Valid values: Active, Pending, Inactive, Creating, Deleting.
    Tags []FlowLogsTag
    Tags.
    TrafficType string
    The type of traffic. Valid values: All, Allow, Drop.
    VpcId string
    The ID of VPC.
    aggregationInterval Integer
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    description String
    The description of flow log.
    flowLogIds List<String>
    A list of flow log IDs.
    flowLogName String
    The name of flow log.
    logProjectId String
    The ID of log project.
    logTopicId String
    The ID of log topic.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.
    projectName String
    The project name of flow log.
    resourceId String
    The ID of resource.
    resourceType String
    The type of resource. Valid values: vpc, subnet, eni.
    status String
    The status of flow log. Valid values: Active, Pending, Inactive, Creating, Deleting.
    tags List<FlowLogsTag>
    Tags.
    trafficType String
    The type of traffic. Valid values: All, Allow, Drop.
    vpcId String
    The ID of VPC.
    aggregationInterval number
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    description string
    The description of flow log.
    flowLogIds string[]
    A list of flow log IDs.
    flowLogName string
    The name of flow log.
    logProjectId string
    The ID of log project.
    logTopicId string
    The ID of log topic.
    nameRegex string
    A Name Regex of Resource.
    outputFile string
    File name where to save data source results.
    projectName string
    The project name of flow log.
    resourceId string
    The ID of resource.
    resourceType string
    The type of resource. Valid values: vpc, subnet, eni.
    status string
    The status of flow log. Valid values: Active, Pending, Inactive, Creating, Deleting.
    tags FlowLogsTag[]
    Tags.
    trafficType string
    The type of traffic. Valid values: All, Allow, Drop.
    vpcId string
    The ID of VPC.
    aggregation_interval int
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    description str
    The description of flow log.
    flow_log_ids Sequence[str]
    A list of flow log IDs.
    flow_log_name str
    The name of flow log.
    log_project_id str
    The ID of log project.
    log_topic_id str
    The ID of log topic.
    name_regex str
    A Name Regex of Resource.
    output_file str
    File name where to save data source results.
    project_name str
    The project name of flow log.
    resource_id str
    The ID of resource.
    resource_type str
    The type of resource. Valid values: vpc, subnet, eni.
    status str
    The status of flow log. Valid values: Active, Pending, Inactive, Creating, Deleting.
    tags Sequence[FlowLogsTag]
    Tags.
    traffic_type str
    The type of traffic. Valid values: All, Allow, Drop.
    vpc_id str
    The ID of VPC.
    aggregationInterval Number
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    description String
    The description of flow log.
    flowLogIds List<String>
    A list of flow log IDs.
    flowLogName String
    The name of flow log.
    logProjectId String
    The ID of log project.
    logTopicId String
    The ID of log topic.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.
    projectName String
    The project name of flow log.
    resourceId String
    The ID of resource.
    resourceType String
    The type of resource. Valid values: vpc, subnet, eni.
    status String
    The status of flow log. Valid values: Active, Pending, Inactive, Creating, Deleting.
    tags List<Property Map>
    Tags.
    trafficType String
    The type of traffic. Valid values: All, Allow, Drop.
    vpcId String
    The ID of VPC.

    FlowLogs Result

    The following output properties are available:

    FlowLogs List<FlowLogsFlowLog>
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    AggregationInterval int
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    Description string
    The description of flow log.
    FlowLogIds List<string>
    FlowLogName string
    The name of flow log.
    LogProjectId string
    The ID of log project.
    LogTopicId string
    The ID of log topic.
    NameRegex string
    OutputFile string
    ProjectName string
    The project name of flow log.
    ResourceId string
    The ID of resource.
    ResourceType string
    The type of resource. Valid values: vpc, subnet, eni.
    Status string
    The status of flow log. Valid values: Active, Pending, Inactive, Creating, Deleting.
    Tags List<FlowLogsTag>
    Tags.
    TrafficType string
    The type of traffic. Valid values: All, Allow, Drop.
    VpcId string
    The ID of VPC.
    FlowLogs []FlowLogsFlowLog
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    AggregationInterval int
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    Description string
    The description of flow log.
    FlowLogIds []string
    FlowLogName string
    The name of flow log.
    LogProjectId string
    The ID of log project.
    LogTopicId string
    The ID of log topic.
    NameRegex string
    OutputFile string
    ProjectName string
    The project name of flow log.
    ResourceId string
    The ID of resource.
    ResourceType string
    The type of resource. Valid values: vpc, subnet, eni.
    Status string
    The status of flow log. Valid values: Active, Pending, Inactive, Creating, Deleting.
    Tags []FlowLogsTag
    Tags.
    TrafficType string
    The type of traffic. Valid values: All, Allow, Drop.
    VpcId string
    The ID of VPC.
    flowLogs List<FlowLogsFlowLog>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of query.
    aggregationInterval Integer
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    description String
    The description of flow log.
    flowLogIds List<String>
    flowLogName String
    The name of flow log.
    logProjectId String
    The ID of log project.
    logTopicId String
    The ID of log topic.
    nameRegex String
    outputFile String
    projectName String
    The project name of flow log.
    resourceId String
    The ID of resource.
    resourceType String
    The type of resource. Valid values: vpc, subnet, eni.
    status String
    The status of flow log. Valid values: Active, Pending, Inactive, Creating, Deleting.
    tags List<FlowLogsTag>
    Tags.
    trafficType String
    The type of traffic. Valid values: All, Allow, Drop.
    vpcId String
    The ID of VPC.
    flowLogs FlowLogsFlowLog[]
    The collection of query.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of query.
    aggregationInterval number
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    description string
    The description of flow log.
    flowLogIds string[]
    flowLogName string
    The name of flow log.
    logProjectId string
    The ID of log project.
    logTopicId string
    The ID of log topic.
    nameRegex string
    outputFile string
    projectName string
    The project name of flow log.
    resourceId string
    The ID of resource.
    resourceType string
    The type of resource. Valid values: vpc, subnet, eni.
    status string
    The status of flow log. Valid values: Active, Pending, Inactive, Creating, Deleting.
    tags FlowLogsTag[]
    Tags.
    trafficType string
    The type of traffic. Valid values: All, Allow, Drop.
    vpcId string
    The ID of VPC.
    flow_logs Sequence[FlowLogsFlowLog]
    The collection of query.
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of query.
    aggregation_interval int
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    description str
    The description of flow log.
    flow_log_ids Sequence[str]
    flow_log_name str
    The name of flow log.
    log_project_id str
    The ID of log project.
    log_topic_id str
    The ID of log topic.
    name_regex str
    output_file str
    project_name str
    The project name of flow log.
    resource_id str
    The ID of resource.
    resource_type str
    The type of resource. Valid values: vpc, subnet, eni.
    status str
    The status of flow log. Valid values: Active, Pending, Inactive, Creating, Deleting.
    tags Sequence[FlowLogsTag]
    Tags.
    traffic_type str
    The type of traffic. Valid values: All, Allow, Drop.
    vpc_id str
    The ID of VPC.
    flowLogs List<Property Map>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of query.
    aggregationInterval Number
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    description String
    The description of flow log.
    flowLogIds List<String>
    flowLogName String
    The name of flow log.
    logProjectId String
    The ID of log project.
    logTopicId String
    The ID of log topic.
    nameRegex String
    outputFile String
    projectName String
    The project name of flow log.
    resourceId String
    The ID of resource.
    resourceType String
    The type of resource. Valid values: vpc, subnet, eni.
    status String
    The status of flow log. Valid values: Active, Pending, Inactive, Creating, Deleting.
    tags List<Property Map>
    Tags.
    trafficType String
    The type of traffic. Valid values: All, Allow, Drop.
    vpcId String
    The ID of VPC.

    Supporting Types

    FlowLogsFlowLog

    AggregationInterval int
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    BusinessStatus string
    The business status of flow log.
    CreatedAt string
    The created time of flow log.
    Description string
    The description of flow log.
    FlowLogId string
    The ID of flow log.
    FlowLogName string
    The name of flow log.
    Id string
    The ID of flow log.
    LockReason string
    The reason why flow log is locked.
    LogProjectId string
    The ID of log project.
    LogTopicId string
    The ID of log topic.
    ProjectName string
    The project name of flow log.
    ResourceId string
    The ID of resource.
    ResourceType string
    The type of resource. Valid values: vpc, subnet, eni.
    Status string
    The status of flow log. Valid values: Active, Pending, Inactive, Creating, Deleting.
    Tags List<FlowLogsFlowLogTag>
    Tags.
    TrafficType string
    The type of traffic. Valid values: All, Allow, Drop.
    UpdatedAt string
    The updated time of flow log.
    VpcId string
    The ID of VPC.
    AggregationInterval int
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    BusinessStatus string
    The business status of flow log.
    CreatedAt string
    The created time of flow log.
    Description string
    The description of flow log.
    FlowLogId string
    The ID of flow log.
    FlowLogName string
    The name of flow log.
    Id string
    The ID of flow log.
    LockReason string
    The reason why flow log is locked.
    LogProjectId string
    The ID of log project.
    LogTopicId string
    The ID of log topic.
    ProjectName string
    The project name of flow log.
    ResourceId string
    The ID of resource.
    ResourceType string
    The type of resource. Valid values: vpc, subnet, eni.
    Status string
    The status of flow log. Valid values: Active, Pending, Inactive, Creating, Deleting.
    Tags []FlowLogsFlowLogTag
    Tags.
    TrafficType string
    The type of traffic. Valid values: All, Allow, Drop.
    UpdatedAt string
    The updated time of flow log.
    VpcId string
    The ID of VPC.
    aggregationInterval Integer
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    businessStatus String
    The business status of flow log.
    createdAt String
    The created time of flow log.
    description String
    The description of flow log.
    flowLogId String
    The ID of flow log.
    flowLogName String
    The name of flow log.
    id String
    The ID of flow log.
    lockReason String
    The reason why flow log is locked.
    logProjectId String
    The ID of log project.
    logTopicId String
    The ID of log topic.
    projectName String
    The project name of flow log.
    resourceId String
    The ID of resource.
    resourceType String
    The type of resource. Valid values: vpc, subnet, eni.
    status String
    The status of flow log. Valid values: Active, Pending, Inactive, Creating, Deleting.
    tags List<FlowLogsFlowLogTag>
    Tags.
    trafficType String
    The type of traffic. Valid values: All, Allow, Drop.
    updatedAt String
    The updated time of flow log.
    vpcId String
    The ID of VPC.
    aggregationInterval number
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    businessStatus string
    The business status of flow log.
    createdAt string
    The created time of flow log.
    description string
    The description of flow log.
    flowLogId string
    The ID of flow log.
    flowLogName string
    The name of flow log.
    id string
    The ID of flow log.
    lockReason string
    The reason why flow log is locked.
    logProjectId string
    The ID of log project.
    logTopicId string
    The ID of log topic.
    projectName string
    The project name of flow log.
    resourceId string
    The ID of resource.
    resourceType string
    The type of resource. Valid values: vpc, subnet, eni.
    status string
    The status of flow log. Valid values: Active, Pending, Inactive, Creating, Deleting.
    tags FlowLogsFlowLogTag[]
    Tags.
    trafficType string
    The type of traffic. Valid values: All, Allow, Drop.
    updatedAt string
    The updated time of flow log.
    vpcId string
    The ID of VPC.
    aggregation_interval int
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    business_status str
    The business status of flow log.
    created_at str
    The created time of flow log.
    description str
    The description of flow log.
    flow_log_id str
    The ID of flow log.
    flow_log_name str
    The name of flow log.
    id str
    The ID of flow log.
    lock_reason str
    The reason why flow log is locked.
    log_project_id str
    The ID of log project.
    log_topic_id str
    The ID of log topic.
    project_name str
    The project name of flow log.
    resource_id str
    The ID of resource.
    resource_type str
    The type of resource. Valid values: vpc, subnet, eni.
    status str
    The status of flow log. Valid values: Active, Pending, Inactive, Creating, Deleting.
    tags Sequence[FlowLogsFlowLogTag]
    Tags.
    traffic_type str
    The type of traffic. Valid values: All, Allow, Drop.
    updated_at str
    The updated time of flow log.
    vpc_id str
    The ID of VPC.
    aggregationInterval Number
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    businessStatus String
    The business status of flow log.
    createdAt String
    The created time of flow log.
    description String
    The description of flow log.
    flowLogId String
    The ID of flow log.
    flowLogName String
    The name of flow log.
    id String
    The ID of flow log.
    lockReason String
    The reason why flow log is locked.
    logProjectId String
    The ID of log project.
    logTopicId String
    The ID of log topic.
    projectName String
    The project name of flow log.
    resourceId String
    The ID of resource.
    resourceType String
    The type of resource. Valid values: vpc, subnet, eni.
    status String
    The status of flow log. Valid values: Active, Pending, Inactive, Creating, Deleting.
    tags List<Property Map>
    Tags.
    trafficType String
    The type of traffic. Valid values: All, Allow, Drop.
    updatedAt String
    The updated time of flow log.
    vpcId String
    The ID of VPC.

    FlowLogsFlowLogTag

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    FlowLogsTag

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine