1. Packages
  2. Bytepluscc Provider
  3. API Docs
  4. vpc
  5. FlowLog
Viewing docs for bytepluscc v0.0.16
published on Monday, Mar 9, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.16
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:

    AggregationInterval int
    流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
    FlowLogName string
    流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
    LogProjectName string
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    LogTopicName string
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    ResourceId string
    要捕获流量的资源ID。
    ResourceType string
    要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
    TrafficType string
    采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
    Description string
    流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
    ProjectName string
    流流日志所属项目的名称。
    Status string
    流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
    Tags List<Byteplus.FlowLogTag>
    AggregationInterval int
    流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
    FlowLogName string
    流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
    LogProjectName string
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    LogTopicName string
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    ResourceId string
    要捕获流量的资源ID。
    ResourceType string
    要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
    TrafficType string
    采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
    Description string
    流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
    ProjectName string
    流流日志所属项目的名称。
    Status string
    流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
    Tags []FlowLogTagArgs
    aggregationInterval Integer
    流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
    flowLogName String
    流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
    logProjectName String
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    logTopicName String
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    resourceId String
    要捕获流量的资源ID。
    resourceType String
    要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
    trafficType String
    采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
    description String
    流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
    projectName String
    流流日志所属项目的名称。
    status String
    流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
    tags List<FlowLogTag>
    aggregationInterval number
    流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
    flowLogName string
    流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
    logProjectName string
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    logTopicName string
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    resourceId string
    要捕获流量的资源ID。
    resourceType string
    要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
    trafficType string
    采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
    description string
    流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
    projectName string
    流流日志所属项目的名称。
    status string
    流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
    tags FlowLogTag[]
    aggregation_interval int
    流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
    flow_log_name str
    流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
    log_project_name str
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    log_topic_name str
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 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:正在删除中。
    tags Sequence[FlowLogTagArgs]
    aggregationInterval Number
    流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
    flowLogName String
    流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
    logProjectName String
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    logTopicName String
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    resourceId String
    要捕获流量的资源ID。
    resourceType String
    要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
    trafficType String
    采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
    description String
    流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
    projectName String
    流流日志所属项目的名称。
    status String
    流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
    tags List<Property Map>

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FlowLog resource produces the following output properties:

    BusinessStatus string
    流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    CreatedAt string
    流日志的创建时间。
    EnableIndex bool
    是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
    FlowLogId string
    流日志的ID。
    Id string
    The provider-assigned unique ID for this managed resource.
    LockReason string
    流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
    LogProjectId string
    流日志项目的ID。
    LogTopicId string
    流日志主题的ID。
    UpdatedAt string
    更新流日志的时间。
    VpcId string
    流日志的VPC的ID。
    BusinessStatus string
    流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    CreatedAt string
    流日志的创建时间。
    EnableIndex bool
    是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
    FlowLogId string
    流日志的ID。
    Id string
    The provider-assigned unique ID for this managed resource.
    LockReason string
    流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
    LogProjectId string
    流日志项目的ID。
    LogTopicId string
    流日志主题的ID。
    UpdatedAt string
    更新流日志的时间。
    VpcId string
    流日志的VPC的ID。
    businessStatus String
    流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    createdAt String
    流日志的创建时间。
    enableIndex Boolean
    是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
    flowLogId String
    流日志的ID。
    id String
    The provider-assigned unique ID for this managed resource.
    lockReason String
    流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
    logProjectId String
    流日志项目的ID。
    logTopicId String
    流日志主题的ID。
    updatedAt String
    更新流日志的时间。
    vpcId String
    流日志的VPC的ID。
    businessStatus string
    流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    createdAt string
    流日志的创建时间。
    enableIndex boolean
    是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
    flowLogId string
    流日志的ID。
    id string
    The provider-assigned unique ID for this managed resource.
    lockReason string
    流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
    logProjectId string
    流日志项目的ID。
    logTopicId string
    流日志主题的ID。
    updatedAt string
    更新流日志的时间。
    vpcId string
    流日志的VPC的ID。
    business_status str
    流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    created_at str
    流日志的创建时间。
    enable_index bool
    是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
    flow_log_id str
    流日志的ID。
    id str
    The provider-assigned unique ID for this managed resource.
    lock_reason str
    流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
    log_project_id str
    流日志项目的ID。
    log_topic_id str
    流日志主题的ID。
    updated_at str
    更新流日志的时间。
    vpc_id str
    流日志的VPC的ID。
    businessStatus String
    流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    createdAt String
    流日志的创建时间。
    enableIndex Boolean
    是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
    flowLogId String
    流日志的ID。
    id String
    The provider-assigned unique ID for this managed resource.
    lockReason String
    流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
    logProjectId String
    流日志项目的ID。
    logTopicId String
    流日志主题的ID。
    updatedAt String
    更新流日志的时间。
    vpcId 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) -> FlowLog
    func 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.
    The following state arguments are supported:
    AggregationInterval int
    流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
    BusinessStatus string
    流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    CreatedAt string
    流日志的创建时间。
    Description string
    流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
    EnableIndex bool
    是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
    FlowLogId string
    流日志的ID。
    FlowLogName string
    流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
    LockReason string
    流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
    LogProjectId string
    流日志项目的ID。
    LogProjectName string
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    LogTopicId string
    流日志主题的ID。
    LogTopicName string
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    ProjectName string
    流流日志所属项目的名称。
    ResourceId string
    要捕获流量的资源ID。
    ResourceType string
    要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
    Status string
    流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
    Tags List<Byteplus.FlowLogTag>
    TrafficType string
    采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
    UpdatedAt string
    更新流日志的时间。
    VpcId string
    流日志的VPC的ID。
    AggregationInterval int
    流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
    BusinessStatus string
    流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    CreatedAt string
    流日志的创建时间。
    Description string
    流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
    EnableIndex bool
    是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
    FlowLogId string
    流日志的ID。
    FlowLogName string
    流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
    LockReason string
    流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
    LogProjectId string
    流日志项目的ID。
    LogProjectName string
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    LogTopicId string
    流日志主题的ID。
    LogTopicName string
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    ProjectName string
    流流日志所属项目的名称。
    ResourceId string
    要捕获流量的资源ID。
    ResourceType string
    要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
    Status string
    流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
    Tags []FlowLogTagArgs
    TrafficType string
    采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
    UpdatedAt string
    更新流日志的时间。
    VpcId string
    流日志的VPC的ID。
    aggregationInterval Integer
    流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
    businessStatus String
    流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    createdAt String
    流日志的创建时间。
    description String
    流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
    enableIndex Boolean
    是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
    flowLogId String
    流日志的ID。
    flowLogName String
    流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
    lockReason String
    流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
    logProjectId String
    流日志项目的ID。
    logProjectName String
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    logTopicId String
    流日志主题的ID。
    logTopicName String
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    projectName String
    流流日志所属项目的名称。
    resourceId String
    要捕获流量的资源ID。
    resourceType String
    要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
    status String
    流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
    tags List<FlowLogTag>
    trafficType String
    采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
    updatedAt String
    更新流日志的时间。
    vpcId String
    流日志的VPC的ID。
    aggregationInterval number
    流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
    businessStatus string
    流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    createdAt string
    流日志的创建时间。
    description string
    流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
    enableIndex boolean
    是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
    flowLogId string
    流日志的ID。
    flowLogName string
    流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
    lockReason string
    流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
    logProjectId string
    流日志项目的ID。
    logProjectName string
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    logTopicId string
    流日志主题的ID。
    logTopicName string
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    projectName string
    流流日志所属项目的名称。
    resourceId string
    要捕获流量的资源ID。
    resourceType string
    要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
    status string
    流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
    tags FlowLogTag[]
    trafficType string
    采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
    updatedAt string
    更新流日志的时间。
    vpcId 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_id str
    流日志的ID。
    flow_log_name str
    流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
    lock_reason str
    流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
    log_project_id str
    流日志项目的ID。
    log_project_name str
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    log_topic_id str
    流日志主题的ID。
    log_topic_name str
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    project_name str
    流流日志所属项目的名称。
    resource_id str
    要捕获流量的资源ID。
    resource_type str
    要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
    status str
    流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
    tags Sequence[FlowLogTagArgs]
    traffic_type str
    采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
    updated_at str
    更新流日志的时间。
    vpc_id str
    流日志的VPC的ID。
    aggregationInterval Number
    流日志的采样间隔。取值如下。1:1分钟。5:5分钟。10(默认值):10分钟。
    businessStatus String
    流日志是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    createdAt String
    流日志的创建时间。
    description String
    流日志的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
    enableIndex Boolean
    是否自动配置索引。索引用于检索分析数据,流日志在检索分析之前,必须先配置索引。true:是。false(默认值):否。
    flowLogId String
    流日志的ID。
    flowLogName String
    流日志的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为流日志实例的ID。
    lockReason String
    流日志被锁定的原因。financial: 因欠费被锁定。unlock:欠费关停后充值恢复过程中。空值 : 没有被锁定。
    logProjectId String
    流日志项目的ID。
    logProjectName String
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    logTopicId String
    流日志主题的ID。
    logTopicName String
    流日志项目的名称。名称只能由小写字母、数字和连字符(-)组成。必须以小写字母或者数字开头和结尾。名称的长度范围为 3~63 个字符。
    projectName String
    流流日志所属项目的名称。
    resourceId String
    要捕获流量的资源ID。
    resourceType String
    要采集流量的资源类型,取值如下:vpc:私有网络。subnet:子网。eni:网卡。
    status String
    流日志的状态。取值如下:Active:启动状态。Pending:正在操作中。Inactive:未启动状态。Creating:正在创建中。Deleting:正在删除中。
    tags List<Property Map>
    trafficType String
    采集的流量类型。取值如下:All:全部流量。Allow:网络ACL和安全组允许的流量。Drop:网络ACL和安全组拒绝的流量。
    updatedAt String
    更新流日志的时间。
    vpcId String
    流日志的VPC的ID。

    Supporting Types

    FlowLogTag, FlowLogTagArgs

    Key string
    用户标签的标签键。长度取值范围为1~128字符,允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。若标签键开头或结尾存在空格,系统会自动为其去除。
    Value string
    用户标签的标签值。允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。大小写敏感。若标签值开头或结尾存在空格,系统会自动为其去除。
    Key string
    用户标签的标签键。长度取值范围为1~128字符,允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。若标签键开头或结尾存在空格,系统会自动为其去除。
    Value string
    用户标签的标签值。允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。大小写敏感。若标签值开头或结尾存在空格,系统会自动为其去除。
    key String
    用户标签的标签键。长度取值范围为1~128字符,允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。若标签键开头或结尾存在空格,系统会自动为其去除。
    value String
    用户标签的标签值。允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。大小写敏感。若标签值开头或结尾存在空格,系统会自动为其去除。
    key string
    用户标签的标签键。长度取值范围为1~128字符,允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。若标签键开头或结尾存在空格,系统会自动为其去除。
    value string
    用户标签的标签值。允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。大小写敏感。若标签值开头或结尾存在空格,系统会自动为其去除。
    key str
    用户标签的标签键。长度取值范围为1~128字符,允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。若标签键开头或结尾存在空格,系统会自动为其去除。
    value str
    用户标签的标签值。允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。大小写敏感。若标签值开头或结尾存在空格,系统会自动为其去除。
    key String
    用户标签的标签键。长度取值范围为1~128字符,允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。若标签键开头或结尾存在空格,系统会自动为其去除。
    value String
    用户标签的标签值。允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。大小写敏感。若标签值开头或结尾存在空格,系统会自动为其去除。

    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 bytepluscc Terraform Provider.
    bytepluscc logo
    Viewing docs for bytepluscc v0.0.16
    published on Monday, Mar 9, 2026 by Byteplus
      Try Pulumi Cloud free. Your team will thank you.