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 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 getFlowLogs
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 getFlowLogs(args: GetFlowLogsArgs, opts?: InvokeOptions): Promise<GetFlowLogsResult>
function getFlowLogsOutput(args: GetFlowLogsOutputArgs, opts?: InvokeOptions): Output<GetFlowLogsResult>def get_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[GetFlowLogsTag]] = None,
traffic_type: Optional[str] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFlowLogsResult
def get_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[GetFlowLogsTagArgs]]]] = None,
traffic_type: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFlowLogsResult]func GetFlowLogs(ctx *Context, args *GetFlowLogsArgs, opts ...InvokeOption) (*GetFlowLogsResult, error)
func GetFlowLogsOutput(ctx *Context, args *GetFlowLogsOutputArgs, opts ...InvokeOption) GetFlowLogsResultOutput> Note: This function is named GetFlowLogs in the Go SDK.
public static class GetFlowLogs
{
public static Task<GetFlowLogsResult> InvokeAsync(GetFlowLogsArgs args, InvokeOptions? opts = null)
public static Output<GetFlowLogsResult> Invoke(GetFlowLogsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFlowLogsResult> getFlowLogs(GetFlowLogsArgs args, InvokeOptions options)
public static Output<GetFlowLogsResult> getFlowLogs(GetFlowLogsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:vpc/getFlowLogs:getFlowLogs
arguments:
# arguments dictionaryThe following arguments are supported:
- Aggregation
Interval int - The aggregation interval of flow log. Unit: minute. Valid values:
1,5,10. - Description string
- The description of flow log.
- Flow
Log List<string>Ids - A list of flow log IDs.
- Flow
Log stringName - The name of flow log.
- Log
Project stringId - The ID of log project.
- Log
Topic stringId - The ID of log topic.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Project
Name string - The project name of flow log.
- Resource
Id string - The ID of resource.
- Resource
Type string - The type of resource. Valid values:
vpc,subnet,eni. - Status string
- The status of flow log. Valid values:
Active,Pending,Inactive,Creating,Deleting. -
List<Get
Flow Logs Tag> - Tags.
- Traffic
Type string - The type of traffic. Valid values:
All,Allow,Drop. - Vpc
Id string - The ID of VPC.
- Aggregation
Interval int - The aggregation interval of flow log. Unit: minute. Valid values:
1,5,10. - Description string
- The description of flow log.
- Flow
Log []stringIds - A list of flow log IDs.
- Flow
Log stringName - The name of flow log.
- Log
Project stringId - The ID of log project.
- Log
Topic stringId - The ID of log topic.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Project
Name string - The project name of flow log.
- Resource
Id string - The ID of resource.
- Resource
Type string - The type of resource. Valid values:
vpc,subnet,eni. - Status string
- The status of flow log. Valid values:
Active,Pending,Inactive,Creating,Deleting. -
[]Get
Flow Logs Tag - Tags.
- Traffic
Type string - The type of traffic. Valid values:
All,Allow,Drop. - Vpc
Id string - The ID of VPC.
- aggregation
Interval Integer - The aggregation interval of flow log. Unit: minute. Valid values:
1,5,10. - description String
- The description of flow log.
- flow
Log List<String>Ids - A list of flow log IDs.
- flow
Log StringName - The name of flow log.
- log
Project StringId - The ID of log project.
- log
Topic StringId - The ID of log topic.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- project
Name String - The project name of flow log.
- resource
Id String - The ID of resource.
- resource
Type String - The type of resource. Valid values:
vpc,subnet,eni. - status String
- The status of flow log. Valid values:
Active,Pending,Inactive,Creating,Deleting. -
List<Get
Flow Logs Tag> - Tags.
- traffic
Type String - The type of traffic. Valid values:
All,Allow,Drop. - vpc
Id String - The ID of VPC.
- aggregation
Interval number - The aggregation interval of flow log. Unit: minute. Valid values:
1,5,10. - description string
- The description of flow log.
- flow
Log string[]Ids - A list of flow log IDs.
- flow
Log stringName - The name of flow log.
- log
Project stringId - The ID of log project.
- log
Topic stringId - The ID of log topic.
- name
Regex string - A Name Regex of Resource.
- output
File string - File name where to save data source results.
- project
Name string - The project name of flow log.
- resource
Id string - The ID of resource.
- resource
Type string - The type of resource. Valid values:
vpc,subnet,eni. - status string
- The status of flow log. Valid values:
Active,Pending,Inactive,Creating,Deleting. -
Get
Flow Logs Tag[] - Tags.
- traffic
Type string - The type of traffic. Valid values:
All,Allow,Drop. - vpc
Id 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_ Sequence[str]ids - A list of flow log IDs.
- flow_
log_ strname - The name of flow log.
- log_
project_ strid - The ID of log project.
- log_
topic_ strid - 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. -
Sequence[Get
Flow Logs Tag] - Tags.
- traffic_
type str - The type of traffic. Valid values:
All,Allow,Drop. - vpc_
id str - The ID of VPC.
- aggregation
Interval Number - The aggregation interval of flow log. Unit: minute. Valid values:
1,5,10. - description String
- The description of flow log.
- flow
Log List<String>Ids - A list of flow log IDs.
- flow
Log StringName - The name of flow log.
- log
Project StringId - The ID of log project.
- log
Topic StringId - The ID of log topic.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- project
Name String - The project name of flow log.
- resource
Id String - The ID of resource.
- resource
Type String - The type of resource. Valid values:
vpc,subnet,eni. - status String
- The status of flow log. Valid values:
Active,Pending,Inactive,Creating,Deleting. - List<Property Map>
- Tags.
- traffic
Type String - The type of traffic. Valid values:
All,Allow,Drop. - vpc
Id String - The ID of VPC.
getFlowLogs Result
The following output properties are available:
- Flow
Logs List<GetFlow Logs Flow Log> - The collection of query.
- Id string
- 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 string
- The description of flow log.
- Flow
Log List<string>Ids - Flow
Log stringName - The name of flow log.
- Log
Project stringId - The ID of log project.
- Log
Topic stringId - The ID of log topic.
- Name
Regex string - Output
File string - Project
Name string - The project name of flow log.
- Resource
Id string - The ID of resource.
- Resource
Type string - The type of resource. Valid values:
vpc,subnet,eni. - Status string
- The status of flow log. Valid values:
Active,Pending,Inactive,Creating,Deleting. -
List<Get
Flow Logs Tag> - Tags.
- Traffic
Type string - The type of traffic. Valid values:
All,Allow,Drop. - Vpc
Id string - The ID of VPC.
- Flow
Logs []GetFlow Logs Flow Log - The collection of query.
- Id string
- 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 string
- The description of flow log.
- Flow
Log []stringIds - Flow
Log stringName - The name of flow log.
- Log
Project stringId - The ID of log project.
- Log
Topic stringId - The ID of log topic.
- Name
Regex string - Output
File string - Project
Name string - The project name of flow log.
- Resource
Id string - The ID of resource.
- Resource
Type string - The type of resource. Valid values:
vpc,subnet,eni. - Status string
- The status of flow log. Valid values:
Active,Pending,Inactive,Creating,Deleting. -
[]Get
Flow Logs Tag - Tags.
- Traffic
Type string - The type of traffic. Valid values:
All,Allow,Drop. - Vpc
Id string - The ID of VPC.
- flow
Logs List<GetFlow Logs Flow Log> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- aggregation
Interval Integer - The aggregation interval of flow log. Unit: minute. Valid values:
1,5,10. - description String
- The description of flow log.
- flow
Log List<String>Ids - flow
Log StringName - The name of flow log.
- log
Project StringId - The ID of log project.
- log
Topic StringId - The ID of log topic.
- name
Regex String - output
File String - project
Name String - The project name of flow log.
- resource
Id String - The ID of resource.
- resource
Type String - The type of resource. Valid values:
vpc,subnet,eni. - status String
- The status of flow log. Valid values:
Active,Pending,Inactive,Creating,Deleting. -
List<Get
Flow Logs Tag> - Tags.
- traffic
Type String - The type of traffic. Valid values:
All,Allow,Drop. - vpc
Id String - The ID of VPC.
- flow
Logs GetFlow Logs Flow Log[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- aggregation
Interval number - The aggregation interval of flow log. Unit: minute. Valid values:
1,5,10. - description string
- The description of flow log.
- flow
Log string[]Ids - flow
Log stringName - The name of flow log.
- log
Project stringId - The ID of log project.
- log
Topic stringId - The ID of log topic.
- name
Regex string - output
File string - project
Name string - The project name of flow log.
- resource
Id string - The ID of resource.
- resource
Type string - The type of resource. Valid values:
vpc,subnet,eni. - status string
- The status of flow log. Valid values:
Active,Pending,Inactive,Creating,Deleting. -
Get
Flow Logs Tag[] - Tags.
- traffic
Type string - The type of traffic. Valid values:
All,Allow,Drop. - vpc
Id string - The ID of VPC.
- flow_
logs Sequence[GetFlow Logs Flow Log] - 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_ Sequence[str]ids - flow_
log_ strname - The name of flow log.
- log_
project_ strid - The ID of log project.
- log_
topic_ strid - 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. -
Sequence[Get
Flow Logs Tag] - Tags.
- traffic_
type str - The type of traffic. Valid values:
All,Allow,Drop. - vpc_
id str - The ID of VPC.
- flow
Logs List<Property Map> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- aggregation
Interval Number - The aggregation interval of flow log. Unit: minute. Valid values:
1,5,10. - description String
- The description of flow log.
- flow
Log List<String>Ids - flow
Log StringName - The name of flow log.
- log
Project StringId - The ID of log project.
- log
Topic StringId - The ID of log topic.
- name
Regex String - output
File String - project
Name String - The project name of flow log.
- resource
Id String - The ID of resource.
- resource
Type String - The type of resource. Valid values:
vpc,subnet,eni. - status String
- The status of flow log. Valid values:
Active,Pending,Inactive,Creating,Deleting. - List<Property Map>
- Tags.
- traffic
Type String - The type of traffic. Valid values:
All,Allow,Drop. - vpc
Id String - The ID of VPC.
Supporting Types
GetFlowLogsFlowLog
- Aggregation
Interval int - The aggregation interval of flow log. Unit: minute. Valid values:
1,5,10. - Business
Status string - The business status of flow log.
- Created
At string - The created time of flow log.
- Description string
- The description of flow log.
- Flow
Log stringId - The ID of flow log.
- Flow
Log stringName - The name of flow log.
- Id string
- The ID of flow log.
- Lock
Reason string - The reason why flow log is locked.
- Log
Project stringId - The ID of log project.
- Log
Topic stringId - The ID of log topic.
- Project
Name string - The project name of flow log.
- Resource
Id string - The ID of resource.
- Resource
Type string - The type of resource. Valid values:
vpc,subnet,eni. - Status string
- The status of flow log. Valid values:
Active,Pending,Inactive,Creating,Deleting. -
List<Get
Flow Logs Flow Log Tag> - Tags.
- Traffic
Type string - The type of traffic. Valid values:
All,Allow,Drop. - Updated
At string - The updated time of flow log.
- Vpc
Id string - The ID of VPC.
- Aggregation
Interval int - The aggregation interval of flow log. Unit: minute. Valid values:
1,5,10. - Business
Status string - The business status of flow log.
- Created
At string - The created time of flow log.
- Description string
- The description of flow log.
- Flow
Log stringId - The ID of flow log.
- Flow
Log stringName - The name of flow log.
- Id string
- The ID of flow log.
- Lock
Reason string - The reason why flow log is locked.
- Log
Project stringId - The ID of log project.
- Log
Topic stringId - The ID of log topic.
- Project
Name string - The project name of flow log.
- Resource
Id string - The ID of resource.
- Resource
Type string - The type of resource. Valid values:
vpc,subnet,eni. - Status string
- The status of flow log. Valid values:
Active,Pending,Inactive,Creating,Deleting. -
[]Get
Flow Logs Flow Log Tag - Tags.
- Traffic
Type string - The type of traffic. Valid values:
All,Allow,Drop. - Updated
At string - The updated time of flow log.
- Vpc
Id string - The ID of VPC.
- aggregation
Interval Integer - The aggregation interval of flow log. Unit: minute. Valid values:
1,5,10. - business
Status String - The business status of flow log.
- created
At String - The created time of flow log.
- description String
- The description of flow log.
- flow
Log StringId - The ID of flow log.
- flow
Log StringName - The name of flow log.
- id String
- The ID of flow log.
- lock
Reason String - The reason why flow log is locked.
- log
Project StringId - The ID of log project.
- log
Topic StringId - The ID of log topic.
- project
Name String - The project name of flow log.
- resource
Id String - The ID of resource.
- resource
Type String - The type of resource. Valid values:
vpc,subnet,eni. - status String
- The status of flow log. Valid values:
Active,Pending,Inactive,Creating,Deleting. -
List<Get
Flow Logs Flow Log Tag> - Tags.
- traffic
Type String - The type of traffic. Valid values:
All,Allow,Drop. - updated
At String - The updated time of flow log.
- vpc
Id String - The ID of VPC.
- aggregation
Interval number - The aggregation interval of flow log. Unit: minute. Valid values:
1,5,10. - business
Status string - The business status of flow log.
- created
At string - The created time of flow log.
- description string
- The description of flow log.
- flow
Log stringId - The ID of flow log.
- flow
Log stringName - The name of flow log.
- id string
- The ID of flow log.
- lock
Reason string - The reason why flow log is locked.
- log
Project stringId - The ID of log project.
- log
Topic stringId - The ID of log topic.
- project
Name string - The project name of flow log.
- resource
Id string - The ID of resource.
- resource
Type string - The type of resource. Valid values:
vpc,subnet,eni. - status string
- The status of flow log. Valid values:
Active,Pending,Inactive,Creating,Deleting. -
Get
Flow Logs Flow Log Tag[] - Tags.
- traffic
Type string - The type of traffic. Valid values:
All,Allow,Drop. - updated
At string - The updated time of flow log.
- vpc
Id 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_ strid - The ID of flow log.
- flow_
log_ strname - The name of flow log.
- id str
- The ID of flow log.
- lock_
reason str - The reason why flow log is locked.
- log_
project_ strid - The ID of log project.
- log_
topic_ strid - 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. -
Sequence[Get
Flow Logs Flow Log Tag] - 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.
- aggregation
Interval Number - The aggregation interval of flow log. Unit: minute. Valid values:
1,5,10. - business
Status String - The business status of flow log.
- created
At String - The created time of flow log.
- description String
- The description of flow log.
- flow
Log StringId - The ID of flow log.
- flow
Log StringName - The name of flow log.
- id String
- The ID of flow log.
- lock
Reason String - The reason why flow log is locked.
- log
Project StringId - The ID of log project.
- log
Topic StringId - The ID of log topic.
- project
Name String - The project name of flow log.
- resource
Id String - The ID of resource.
- resource
Type String - The type of resource. Valid values:
vpc,subnet,eni. - status String
- The status of flow log. Valid values:
Active,Pending,Inactive,Creating,Deleting. - List<Property Map>
- Tags.
- traffic
Type String - The type of traffic. Valid values:
All,Allow,Drop. - updated
At String - The updated time of flow log.
- vpc
Id String - The ID of VPC.
GetFlowLogsFlowLogTag
GetFlowLogsTag
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
