published on Monday, Mar 9, 2026 by Byteplus
published on Monday, Mar 9, 2026 by Byteplus
流日志对网卡出入流量的日志数据按需聚合处理后,投递至 日志服务 存储和检索分析,您可以根据流日志的分析监控网络流量、排查网络问题、优化网络架构。VPC流日志记录VPC网络流量的详细信息,用于网络监控、流量分析和故障排查。
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const vPCFlowLogDemo = new bytepluscc.vpc.FlowLog("VPCFlowLogDemo", {
aggregationInterval: 10,
description: "this is a test flow log",
flowLogName: "FlowLog-ccapi-test",
logProjectName: "ccapi-test-flow-log",
logTopicName: "test-flow-log",
projectName: "default",
resourceId: "vpc-rrco37ovjq4gv0xxxxxx",
resourceType: "vpc",
status: "Active",
tags: [{
key: "env",
value: "test",
}],
trafficType: "All",
});
import pulumi
import pulumi_bytepluscc as bytepluscc
v_pc_flow_log_demo = bytepluscc.vpc.FlowLog("VPCFlowLogDemo",
aggregation_interval=10,
description="this is a test flow log",
flow_log_name="FlowLog-ccapi-test",
log_project_name="ccapi-test-flow-log",
log_topic_name="test-flow-log",
project_name="default",
resource_id="vpc-rrco37ovjq4gv0xxxxxx",
resource_type="vpc",
status="Active",
tags=[{
"key": "env",
"value": "test",
}],
traffic_type="All")
package main
import (
"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpc.NewFlowLog(ctx, "VPCFlowLogDemo", &vpc.FlowLogArgs{
AggregationInterval: pulumi.Int(10),
Description: pulumi.String("this is a test flow log"),
FlowLogName: pulumi.String("FlowLog-ccapi-test"),
LogProjectName: pulumi.String("ccapi-test-flow-log"),
LogTopicName: pulumi.String("test-flow-log"),
ProjectName: pulumi.String("default"),
ResourceId: pulumi.String("vpc-rrco37ovjq4gv0xxxxxx"),
ResourceType: pulumi.String("vpc"),
Status: pulumi.String("Active"),
Tags: vpc.FlowLogTagArray{
&vpc.FlowLogTagArgs{
Key: pulumi.String("env"),
Value: pulumi.String("test"),
},
},
TrafficType: pulumi.String("All"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
return await Deployment.RunAsync(() =>
{
var vPCFlowLogDemo = new Bytepluscc.Vpc.FlowLog("VPCFlowLogDemo", new()
{
AggregationInterval = 10,
Description = "this is a test flow log",
FlowLogName = "FlowLog-ccapi-test",
LogProjectName = "ccapi-test-flow-log",
LogTopicName = "test-flow-log",
ProjectName = "default",
ResourceId = "vpc-rrco37ovjq4gv0xxxxxx",
ResourceType = "vpc",
Status = "Active",
Tags = new[]
{
new Bytepluscc.Vpc.Inputs.FlowLogTagArgs
{
Key = "env",
Value = "test",
},
},
TrafficType = "All",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.vpc.FlowLog;
import com.byteplus.bytepluscc.vpc.FlowLogArgs;
import com.pulumi.bytepluscc.vpc.inputs.FlowLogTagArgs;
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) {
var vPCFlowLogDemo = new FlowLog("vPCFlowLogDemo", FlowLogArgs.builder()
.aggregationInterval(10)
.description("this is a test flow log")
.flowLogName("FlowLog-ccapi-test")
.logProjectName("ccapi-test-flow-log")
.logTopicName("test-flow-log")
.projectName("default")
.resourceId("vpc-rrco37ovjq4gv0xxxxxx")
.resourceType("vpc")
.status("Active")
.tags(FlowLogTagArgs.builder()
.key("env")
.value("test")
.build())
.trafficType("All")
.build());
}
}
resources:
vPCFlowLogDemo:
type: bytepluscc:vpc:FlowLog
name: VPCFlowLogDemo
properties:
aggregationInterval: 10
description: this is a test flow log
flowLogName: FlowLog-ccapi-test
logProjectName: ccapi-test-flow-log
logTopicName: test-flow-log
projectName: default
resourceId: vpc-rrco37ovjq4gv0xxxxxx
resourceType: vpc
status: Active
tags:
- key: env
value: test
trafficType: All
Create FlowLog Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FlowLog(name: string, args: FlowLogArgs, opts?: CustomResourceOptions);@overload
def FlowLog(resource_name: str,
args: FlowLogArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FlowLog(resource_name: str,
opts: Optional[ResourceOptions] = None,
aggregation_interval: Optional[int] = None,
flow_log_name: Optional[str] = None,
log_project_name: Optional[str] = None,
log_topic_name: Optional[str] = None,
resource_id: Optional[str] = None,
resource_type: Optional[str] = None,
traffic_type: Optional[str] = None,
description: Optional[str] = None,
project_name: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Sequence[FlowLogTagArgs]] = None)func NewFlowLog(ctx *Context, name string, args FlowLogArgs, opts ...ResourceOption) (*FlowLog, error)public FlowLog(string name, FlowLogArgs args, CustomResourceOptions? opts = null)
public FlowLog(String name, FlowLogArgs args)
public FlowLog(String name, FlowLogArgs args, CustomResourceOptions options)
type: bytepluscc:vpc:FlowLog
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FlowLogArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FlowLogArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FlowLogArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FlowLogArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FlowLogArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var flowLogResource = new Bytepluscc.Vpc.FlowLog("flowLogResource", new()
{
AggregationInterval = 0,
FlowLogName = "string",
LogProjectName = "string",
LogTopicName = "string",
ResourceId = "string",
ResourceType = "string",
TrafficType = "string",
Description = "string",
ProjectName = "string",
Status = "string",
Tags = new[]
{
new Bytepluscc.Vpc.Inputs.FlowLogTagArgs
{
Key = "string",
Value = "string",
},
},
});
example, err := vpc.NewFlowLog(ctx, "flowLogResource", &vpc.FlowLogArgs{
AggregationInterval: pulumi.Int(0),
FlowLogName: pulumi.String("string"),
LogProjectName: pulumi.String("string"),
LogTopicName: pulumi.String("string"),
ResourceId: pulumi.String("string"),
ResourceType: pulumi.String("string"),
TrafficType: pulumi.String("string"),
Description: pulumi.String("string"),
ProjectName: pulumi.String("string"),
Status: pulumi.String("string"),
Tags: vpc.FlowLogTagArray{
&vpc.FlowLogTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var flowLogResource = new FlowLog("flowLogResource", FlowLogArgs.builder()
.aggregationInterval(0)
.flowLogName("string")
.logProjectName("string")
.logTopicName("string")
.resourceId("string")
.resourceType("string")
.trafficType("string")
.description("string")
.projectName("string")
.status("string")
.tags(FlowLogTagArgs.builder()
.key("string")
.value("string")
.build())
.build());
flow_log_resource = bytepluscc.vpc.FlowLog("flowLogResource",
aggregation_interval=0,
flow_log_name="string",
log_project_name="string",
log_topic_name="string",
resource_id="string",
resource_type="string",
traffic_type="string",
description="string",
project_name="string",
status="string",
tags=[{
"key": "string",
"value": "string",
}])
const flowLogResource = new bytepluscc.vpc.FlowLog("flowLogResource", {
aggregationInterval: 0,
flowLogName: "string",
logProjectName: "string",
logTopicName: "string",
resourceId: "string",
resourceType: "string",
trafficType: "string",
description: "string",
projectName: "string",
status: "string",
tags: [{
key: "string",
value: "string",
}],
});
type: bytepluscc:vpc:FlowLog
properties:
aggregationInterval: 0
description: string
flowLogName: string
logProjectName: string
logTopicName: string
projectName: string
resourceId: string
resourceType: string
status: string
tags:
- key: string
value: string
trafficType: string
FlowLog Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FlowLog resource accepts the following input properties:
- Aggregation
Interval int - 流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
- Flow
Log stringName - 流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
- Log
Project stringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- Log
Topic stringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- Resource
Id string - 要捕获流量的资源ID。
- Resource
Type string - 要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
- Traffic
Type string - 采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
- Description string
- 流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
- Project
Name string - 流流日志所属项目的名称。
- Status string
- 流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
-
List<Byteplus.
Flow Log Tag>
- Aggregation
Interval int - 流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
- Flow
Log stringName - 流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
- Log
Project stringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- Log
Topic stringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- Resource
Id string - 要捕获流量的资源ID。
- Resource
Type string - 要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
- Traffic
Type string - 采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
- Description string
- 流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
- Project
Name string - 流流日志所属项目的名称。
- Status string
- 流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
-
[]Flow
Log Tag Args
- aggregation
Interval Integer - 流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
- flow
Log StringName - 流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
- log
Project StringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- log
Topic StringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- resource
Id String - 要捕获流量的资源ID。
- resource
Type String - 要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
- traffic
Type String - 采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
- description String
- 流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
- project
Name String - 流流日志所属项目的名称。
- status String
- 流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
-
List<Flow
Log Tag>
- aggregation
Interval number - 流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
- flow
Log stringName - 流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
- log
Project stringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- log
Topic stringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- resource
Id string - 要捕获流量的资源ID。
- resource
Type string - 要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
- traffic
Type string - 采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
- description string
- 流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
- project
Name string - 流流日志所属项目的名称。
- status string
- 流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
-
Flow
Log Tag[]
- aggregation_
interval int - 流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
- flow_
log_ strname - 流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
- log_
project_ strname - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- log_
topic_ strname - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- resource_
id str - 要捕获流量的资源ID。
- resource_
type str - 要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
- traffic_
type str - 采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
- description str
- 流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
- project_
name str - 流流日志所属项目的名称。
- status str
- 流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
-
Sequence[Flow
Log Tag Args]
- aggregation
Interval Number - 流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
- flow
Log StringName - 流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
- log
Project StringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- log
Topic StringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- resource
Id String - 要捕获流量的资源ID。
- resource
Type String - 要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
- traffic
Type String - 采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
- description String
- 流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
- project
Name String - 流流日志所属项目的名称。
- status String
- 流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
- List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the FlowLog resource produces the following output properties:
- Business
Status string - 流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- Created
At string - 流日志的创建时间。
- Enable
Index bool - 是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
- Flow
Log stringId - 流日志的ID。
- Id string
- The provider-assigned unique ID for this managed resource.
- Lock
Reason string - 流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
- Log
Project stringId - 流日志项目的ID。
- Log
Topic stringId - 流日志主题的ID。
- Updated
At string - 更新流日志的时间。
- Vpc
Id string - 流日志的VPC的ID。
- Business
Status string - 流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- Created
At string - 流日志的创建时间。
- Enable
Index bool - 是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
- Flow
Log stringId - 流日志的ID。
- Id string
- The provider-assigned unique ID for this managed resource.
- Lock
Reason string - 流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
- Log
Project stringId - 流日志项目的ID。
- Log
Topic stringId - 流日志主题的ID。
- Updated
At string - 更新流日志的时间。
- Vpc
Id string - 流日志的VPC的ID。
- business
Status String - 流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- created
At String - 流日志的创建时间。
- enable
Index Boolean - 是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
- flow
Log StringId - 流日志的ID。
- id String
- The provider-assigned unique ID for this managed resource.
- lock
Reason String - 流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
- log
Project StringId - 流日志项目的ID。
- log
Topic StringId - 流日志主题的ID。
- updated
At String - 更新流日志的时间。
- vpc
Id String - 流日志的VPC的ID。
- business
Status string - 流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- created
At string - 流日志的创建时间。
- enable
Index boolean - 是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
- flow
Log stringId - 流日志的ID。
- id string
- The provider-assigned unique ID for this managed resource.
- lock
Reason string - 流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
- log
Project stringId - 流日志项目的ID。
- log
Topic stringId - 流日志主题的ID。
- updated
At string - 更新流日志的时间。
- vpc
Id string - 流日志的VPC的ID。
- business_
status str - 流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- created_
at str - 流日志的创建时间。
- enable_
index bool - 是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
- flow_
log_ strid - 流日志的ID。
- id str
- The provider-assigned unique ID for this managed resource.
- lock_
reason str - 流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
- log_
project_ strid - 流日志项目的ID。
- log_
topic_ strid - 流日志主题的ID。
- updated_
at str - 更新流日志的时间。
- vpc_
id str - 流日志的VPC的ID。
- business
Status String - 流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- created
At String - 流日志的创建时间。
- enable
Index Boolean - 是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
- flow
Log StringId - 流日志的ID。
- id String
- The provider-assigned unique ID for this managed resource.
- lock
Reason String - 流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
- log
Project StringId - 流日志项目的ID。
- log
Topic StringId - 流日志主题的ID。
- updated
At String - 更新流日志的时间。
- vpc
Id String - 流日志的VPC的ID。
Look up Existing FlowLog Resource
Get an existing FlowLog resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FlowLogState, opts?: CustomResourceOptions): FlowLog@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aggregation_interval: Optional[int] = None,
business_status: Optional[str] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
enable_index: Optional[bool] = None,
flow_log_id: Optional[str] = None,
flow_log_name: Optional[str] = None,
lock_reason: Optional[str] = None,
log_project_id: Optional[str] = None,
log_project_name: Optional[str] = None,
log_topic_id: Optional[str] = None,
log_topic_name: 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[FlowLogTagArgs]] = None,
traffic_type: Optional[str] = None,
updated_at: Optional[str] = None,
vpc_id: Optional[str] = None) -> FlowLogfunc GetFlowLog(ctx *Context, name string, id IDInput, state *FlowLogState, opts ...ResourceOption) (*FlowLog, error)public static FlowLog Get(string name, Input<string> id, FlowLogState? state, CustomResourceOptions? opts = null)public static FlowLog get(String name, Output<String> id, FlowLogState state, CustomResourceOptions options)resources: _: type: bytepluscc:vpc:FlowLog get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Aggregation
Interval int - 流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
- Business
Status string - 流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- Created
At string - 流日志的创建时间。
- Description string
- 流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
- Enable
Index bool - 是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
- Flow
Log stringId - 流日志的ID。
- Flow
Log stringName - 流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
- Lock
Reason string - 流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
- Log
Project stringId - 流日志项目的ID。
- Log
Project stringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- Log
Topic stringId - 流日志主题的ID。
- Log
Topic stringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- Project
Name string - 流流日志所属项目的名称。
- Resource
Id string - 要捕获流量的资源ID。
- Resource
Type string - 要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
- Status string
- 流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
-
List<Byteplus.
Flow Log Tag> - Traffic
Type string - 采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
- Updated
At string - 更新流日志的时间。
- Vpc
Id string - 流日志的VPC的ID。
- Aggregation
Interval int - 流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
- Business
Status string - 流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- Created
At string - 流日志的创建时间。
- Description string
- 流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
- Enable
Index bool - 是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
- Flow
Log stringId - 流日志的ID。
- Flow
Log stringName - 流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
- Lock
Reason string - 流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
- Log
Project stringId - 流日志项目的ID。
- Log
Project stringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- Log
Topic stringId - 流日志主题的ID。
- Log
Topic stringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- Project
Name string - 流流日志所属项目的名称。
- Resource
Id string - 要捕获流量的资源ID。
- Resource
Type string - 要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
- Status string
- 流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
-
[]Flow
Log Tag Args - Traffic
Type string - 采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
- Updated
At string - 更新流日志的时间。
- Vpc
Id string - 流日志的VPC的ID。
- aggregation
Interval Integer - 流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
- business
Status String - 流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- created
At String - 流日志的创建时间。
- description String
- 流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
- enable
Index Boolean - 是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
- flow
Log StringId - 流日志的ID。
- flow
Log StringName - 流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
- lock
Reason String - 流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
- log
Project StringId - 流日志项目的ID。
- log
Project StringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- log
Topic StringId - 流日志主题的ID。
- log
Topic StringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- project
Name String - 流流日志所属项目的名称。
- resource
Id String - 要捕获流量的资源ID。
- resource
Type String - 要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
- status String
- 流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
-
List<Flow
Log Tag> - traffic
Type String - 采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
- updated
At String - 更新流日志的时间。
- vpc
Id String - 流日志的VPC的ID。
- aggregation
Interval number - 流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
- business
Status string - 流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- created
At string - 流日志的创建时间。
- description string
- 流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
- enable
Index boolean - 是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
- flow
Log stringId - 流日志的ID。
- flow
Log stringName - 流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
- lock
Reason string - 流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
- log
Project stringId - 流日志项目的ID。
- log
Project stringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- log
Topic stringId - 流日志主题的ID。
- log
Topic stringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- project
Name string - 流流日志所属项目的名称。
- resource
Id string - 要捕获流量的资源ID。
- resource
Type string - 要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
- status string
- 流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
-
Flow
Log Tag[] - traffic
Type string - 采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
- updated
At string - 更新流日志的时间。
- vpc
Id string - 流日志的VPC的ID。
- aggregation_
interval int - 流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
- business_
status str - 流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- created_
at str - 流日志的创建时间。
- description str
- 流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
- enable_
index bool - 是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
- flow_
log_ strid - 流日志的ID。
- flow_
log_ strname - 流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
- lock_
reason str - 流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
- log_
project_ strid - 流日志项目的ID。
- log_
project_ strname - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- log_
topic_ strid - 流日志主题的ID。
- log_
topic_ strname - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- project_
name str - 流流日志所属项目的名称。
- resource_
id str - 要捕获流量的资源ID。
- resource_
type str - 要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
- status str
- 流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
-
Sequence[Flow
Log Tag Args] - traffic_
type str - 采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
- updated_
at str - 更新流日志的时间。
- vpc_
id str - 流日志的VPC的ID。
- aggregation
Interval Number - 流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
- business
Status String - 流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- created
At String - 流日志的创建时间。
- description String
- 流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
- enable
Index Boolean - 是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
- flow
Log StringId - 流日志的ID。
- flow
Log StringName - 流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
- lock
Reason String - 流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
- log
Project StringId - 流日志项目的ID。
- log
Project StringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- log
Topic StringId - 流日志主题的ID。
- log
Topic StringName - 流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
- project
Name String - 流流日志所属项目的名称。
- resource
Id String - 要捕获流量的资源ID。
- resource
Type String - 要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
- status String
- 流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
- List<Property Map>
- traffic
Type String - 采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
- updated
At String - 更新流日志的时间。
- vpc
Id String - 流日志的VPC的ID。
Supporting Types
FlowLogTag, FlowLogTagArgs
Import
$ pulumi import bytepluscc:vpc/flowLog:FlowLog example "flow_log_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Monday, Mar 9, 2026 by Byteplus
