1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. VpcFlowLogV1
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.VpcFlowLogV1

Explore with Pulumi AI

Up-to-date reference of API arguments for VPC flow log you can get at documentation portal

Manages a VPC flow log resource within OpenTelekomCloud.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const logGroup1 = new opentelekomcloud.LogtankGroupV2("logGroup1", {groupName: _var.log_group_name});
const logTopic1 = new opentelekomcloud.LogtankTopicV2("logTopic1", {
    groupId: logGroup1.logtankGroupV2Id,
    topicName: _var.log_topic_name,
});
const vpcV1 = new opentelekomcloud.VpcV1("vpcV1", {cidr: _var.vpc_cidr});
const flowlog1 = new opentelekomcloud.VpcFlowLogV1("flowlog1", {
    description: _var.flow_log_desc,
    resourceType: "vpc",
    resourceId: vpcV1.vpcV1Id,
    trafficType: "all",
    logGroupId: logGroup1.logtankGroupV2Id,
    logTopicId: logTopic1.logtankTopicV2Id,
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

log_group1 = opentelekomcloud.LogtankGroupV2("logGroup1", group_name=var["log_group_name"])
log_topic1 = opentelekomcloud.LogtankTopicV2("logTopic1",
    group_id=log_group1.logtank_group_v2_id,
    topic_name=var["log_topic_name"])
vpc_v1 = opentelekomcloud.VpcV1("vpcV1", cidr=var["vpc_cidr"])
flowlog1 = opentelekomcloud.VpcFlowLogV1("flowlog1",
    description=var["flow_log_desc"],
    resource_type="vpc",
    resource_id=vpc_v1.vpc_v1_id,
    traffic_type="all",
    log_group_id=log_group1.logtank_group_v2_id,
    log_topic_id=log_topic1.logtank_topic_v2_id)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		logGroup1, err := opentelekomcloud.NewLogtankGroupV2(ctx, "logGroup1", &opentelekomcloud.LogtankGroupV2Args{
			GroupName: pulumi.Any(_var.Log_group_name),
		})
		if err != nil {
			return err
		}
		logTopic1, err := opentelekomcloud.NewLogtankTopicV2(ctx, "logTopic1", &opentelekomcloud.LogtankTopicV2Args{
			GroupId:   logGroup1.LogtankGroupV2Id,
			TopicName: pulumi.Any(_var.Log_topic_name),
		})
		if err != nil {
			return err
		}
		vpcV1, err := opentelekomcloud.NewVpcV1(ctx, "vpcV1", &opentelekomcloud.VpcV1Args{
			Cidr: pulumi.Any(_var.Vpc_cidr),
		})
		if err != nil {
			return err
		}
		_, err = opentelekomcloud.NewVpcFlowLogV1(ctx, "flowlog1", &opentelekomcloud.VpcFlowLogV1Args{
			Description:  pulumi.Any(_var.Flow_log_desc),
			ResourceType: pulumi.String("vpc"),
			ResourceId:   vpcV1.VpcV1Id,
			TrafficType:  pulumi.String("all"),
			LogGroupId:   logGroup1.LogtankGroupV2Id,
			LogTopicId:   logTopic1.LogtankTopicV2Id,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var logGroup1 = new Opentelekomcloud.LogtankGroupV2("logGroup1", new()
    {
        GroupName = @var.Log_group_name,
    });

    var logTopic1 = new Opentelekomcloud.LogtankTopicV2("logTopic1", new()
    {
        GroupId = logGroup1.LogtankGroupV2Id,
        TopicName = @var.Log_topic_name,
    });

    var vpcV1 = new Opentelekomcloud.VpcV1("vpcV1", new()
    {
        Cidr = @var.Vpc_cidr,
    });

    var flowlog1 = new Opentelekomcloud.VpcFlowLogV1("flowlog1", new()
    {
        Description = @var.Flow_log_desc,
        ResourceType = "vpc",
        ResourceId = vpcV1.VpcV1Id,
        TrafficType = "all",
        LogGroupId = logGroup1.LogtankGroupV2Id,
        LogTopicId = logTopic1.LogtankTopicV2Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.LogtankGroupV2;
import com.pulumi.opentelekomcloud.LogtankGroupV2Args;
import com.pulumi.opentelekomcloud.LogtankTopicV2;
import com.pulumi.opentelekomcloud.LogtankTopicV2Args;
import com.pulumi.opentelekomcloud.VpcV1;
import com.pulumi.opentelekomcloud.VpcV1Args;
import com.pulumi.opentelekomcloud.VpcFlowLogV1;
import com.pulumi.opentelekomcloud.VpcFlowLogV1Args;
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 logGroup1 = new LogtankGroupV2("logGroup1", LogtankGroupV2Args.builder()
            .groupName(var_.log_group_name())
            .build());

        var logTopic1 = new LogtankTopicV2("logTopic1", LogtankTopicV2Args.builder()
            .groupId(logGroup1.logtankGroupV2Id())
            .topicName(var_.log_topic_name())
            .build());

        var vpcV1 = new VpcV1("vpcV1", VpcV1Args.builder()
            .cidr(var_.vpc_cidr())
            .build());

        var flowlog1 = new VpcFlowLogV1("flowlog1", VpcFlowLogV1Args.builder()
            .description(var_.flow_log_desc())
            .resourceType("vpc")
            .resourceId(vpcV1.vpcV1Id())
            .trafficType("all")
            .logGroupId(logGroup1.logtankGroupV2Id())
            .logTopicId(logTopic1.logtankTopicV2Id())
            .build());

    }
}
Copy
resources:
  logGroup1:
    type: opentelekomcloud:LogtankGroupV2
    properties:
      groupName: ${var.log_group_name}
  logTopic1:
    type: opentelekomcloud:LogtankTopicV2
    properties:
      groupId: ${logGroup1.logtankGroupV2Id}
      topicName: ${var.log_topic_name}
  vpcV1:
    type: opentelekomcloud:VpcV1
    properties:
      cidr: ${var.vpc_cidr}
  flowlog1:
    type: opentelekomcloud:VpcFlowLogV1
    properties:
      description: ${var.flow_log_desc}
      resourceType: vpc
      resourceId: ${vpcV1.vpcV1Id}
      trafficType: all
      logGroupId: ${logGroup1.logtankGroupV2Id}
      logTopicId: ${logTopic1.logtankTopicV2Id}
Copy

Create VpcFlowLogV1 Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new VpcFlowLogV1(name: string, args: VpcFlowLogV1Args, opts?: CustomResourceOptions);
@overload
def VpcFlowLogV1(resource_name: str,
                 args: VpcFlowLogV1Args,
                 opts: Optional[ResourceOptions] = None)

@overload
def VpcFlowLogV1(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 log_group_id: Optional[str] = None,
                 log_topic_id: Optional[str] = None,
                 resource_id: Optional[str] = None,
                 resource_type: Optional[str] = None,
                 traffic_type: Optional[str] = None,
                 admin_state: Optional[bool] = None,
                 description: Optional[str] = None,
                 name: Optional[str] = None,
                 status: Optional[str] = None,
                 timeouts: Optional[VpcFlowLogV1TimeoutsArgs] = None,
                 vpc_flow_log_v1_id: Optional[str] = None)
func NewVpcFlowLogV1(ctx *Context, name string, args VpcFlowLogV1Args, opts ...ResourceOption) (*VpcFlowLogV1, error)
public VpcFlowLogV1(string name, VpcFlowLogV1Args args, CustomResourceOptions? opts = null)
public VpcFlowLogV1(String name, VpcFlowLogV1Args args)
public VpcFlowLogV1(String name, VpcFlowLogV1Args args, CustomResourceOptions options)
type: opentelekomcloud:VpcFlowLogV1
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. VpcFlowLogV1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. VpcFlowLogV1Args
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. VpcFlowLogV1Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. VpcFlowLogV1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. VpcFlowLogV1Args
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 vpcFlowLogV1Resource = new Opentelekomcloud.VpcFlowLogV1("vpcFlowLogV1Resource", new()
{
    LogGroupId = "string",
    LogTopicId = "string",
    ResourceId = "string",
    ResourceType = "string",
    TrafficType = "string",
    AdminState = false,
    Description = "string",
    Name = "string",
    Status = "string",
    Timeouts = new Opentelekomcloud.Inputs.VpcFlowLogV1TimeoutsArgs
    {
        Create = "string",
        Delete = "string",
    },
    VpcFlowLogV1Id = "string",
});
Copy
example, err := opentelekomcloud.NewVpcFlowLogV1(ctx, "vpcFlowLogV1Resource", &opentelekomcloud.VpcFlowLogV1Args{
	LogGroupId:   pulumi.String("string"),
	LogTopicId:   pulumi.String("string"),
	ResourceId:   pulumi.String("string"),
	ResourceType: pulumi.String("string"),
	TrafficType:  pulumi.String("string"),
	AdminState:   pulumi.Bool(false),
	Description:  pulumi.String("string"),
	Name:         pulumi.String("string"),
	Status:       pulumi.String("string"),
	Timeouts: &opentelekomcloud.VpcFlowLogV1TimeoutsArgs{
		Create: pulumi.String("string"),
		Delete: pulumi.String("string"),
	},
	VpcFlowLogV1Id: pulumi.String("string"),
})
Copy
var vpcFlowLogV1Resource = new VpcFlowLogV1("vpcFlowLogV1Resource", VpcFlowLogV1Args.builder()
    .logGroupId("string")
    .logTopicId("string")
    .resourceId("string")
    .resourceType("string")
    .trafficType("string")
    .adminState(false)
    .description("string")
    .name("string")
    .status("string")
    .timeouts(VpcFlowLogV1TimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .build())
    .vpcFlowLogV1Id("string")
    .build());
Copy
vpc_flow_log_v1_resource = opentelekomcloud.VpcFlowLogV1("vpcFlowLogV1Resource",
    log_group_id="string",
    log_topic_id="string",
    resource_id="string",
    resource_type="string",
    traffic_type="string",
    admin_state=False,
    description="string",
    name="string",
    status="string",
    timeouts={
        "create": "string",
        "delete": "string",
    },
    vpc_flow_log_v1_id="string")
Copy
const vpcFlowLogV1Resource = new opentelekomcloud.VpcFlowLogV1("vpcFlowLogV1Resource", {
    logGroupId: "string",
    logTopicId: "string",
    resourceId: "string",
    resourceType: "string",
    trafficType: "string",
    adminState: false,
    description: "string",
    name: "string",
    status: "string",
    timeouts: {
        create: "string",
        "delete": "string",
    },
    vpcFlowLogV1Id: "string",
});
Copy
type: opentelekomcloud:VpcFlowLogV1
properties:
    adminState: false
    description: string
    logGroupId: string
    logTopicId: string
    name: string
    resourceId: string
    resourceType: string
    status: string
    timeouts:
        create: string
        delete: string
    trafficType: string
    vpcFlowLogV1Id: string
Copy

VpcFlowLogV1 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 VpcFlowLogV1 resource accepts the following input properties:

LogGroupId This property is required. string
Specifies the log group ID. Changing this creates a new VPC flow log.
LogTopicId This property is required. string
Specifies the log topic ID. Changing this creates a new VPC flow log.
ResourceId This property is required. string
Specifies the ID of resource type. Changing this creates a new VPC flow log.
ResourceType This property is required. string
Specifies the type of resource on which to create the VPC flow log. The value can be port, vpc and network. Changing this creates a new VPC flow log.
TrafficType This property is required. string
Specifies the type of traffic to log. The value can be all, accept and reject. Changing this creates a new VPC flow log.
AdminState bool
Whether to enable the VPC flow log function.
Description string
Provides supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
Name string
Specifies the flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
Status string
The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
Timeouts VpcFlowLogV1Timeouts
VpcFlowLogV1Id string
The VPC flow log ID in UUID format.
LogGroupId This property is required. string
Specifies the log group ID. Changing this creates a new VPC flow log.
LogTopicId This property is required. string
Specifies the log topic ID. Changing this creates a new VPC flow log.
ResourceId This property is required. string
Specifies the ID of resource type. Changing this creates a new VPC flow log.
ResourceType This property is required. string
Specifies the type of resource on which to create the VPC flow log. The value can be port, vpc and network. Changing this creates a new VPC flow log.
TrafficType This property is required. string
Specifies the type of traffic to log. The value can be all, accept and reject. Changing this creates a new VPC flow log.
AdminState bool
Whether to enable the VPC flow log function.
Description string
Provides supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
Name string
Specifies the flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
Status string
The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
Timeouts VpcFlowLogV1TimeoutsArgs
VpcFlowLogV1Id string
The VPC flow log ID in UUID format.
logGroupId This property is required. String
Specifies the log group ID. Changing this creates a new VPC flow log.
logTopicId This property is required. String
Specifies the log topic ID. Changing this creates a new VPC flow log.
resourceId This property is required. String
Specifies the ID of resource type. Changing this creates a new VPC flow log.
resourceType This property is required. String
Specifies the type of resource on which to create the VPC flow log. The value can be port, vpc and network. Changing this creates a new VPC flow log.
trafficType This property is required. String
Specifies the type of traffic to log. The value can be all, accept and reject. Changing this creates a new VPC flow log.
adminState Boolean
Whether to enable the VPC flow log function.
description String
Provides supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
name String
Specifies the flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
status String
The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
timeouts VpcFlowLogV1Timeouts
vpcFlowLogV1Id String
The VPC flow log ID in UUID format.
logGroupId This property is required. string
Specifies the log group ID. Changing this creates a new VPC flow log.
logTopicId This property is required. string
Specifies the log topic ID. Changing this creates a new VPC flow log.
resourceId This property is required. string
Specifies the ID of resource type. Changing this creates a new VPC flow log.
resourceType This property is required. string
Specifies the type of resource on which to create the VPC flow log. The value can be port, vpc and network. Changing this creates a new VPC flow log.
trafficType This property is required. string
Specifies the type of traffic to log. The value can be all, accept and reject. Changing this creates a new VPC flow log.
adminState boolean
Whether to enable the VPC flow log function.
description string
Provides supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
name string
Specifies the flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
status string
The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
timeouts VpcFlowLogV1Timeouts
vpcFlowLogV1Id string
The VPC flow log ID in UUID format.
log_group_id This property is required. str
Specifies the log group ID. Changing this creates a new VPC flow log.
log_topic_id This property is required. str
Specifies the log topic ID. Changing this creates a new VPC flow log.
resource_id This property is required. str
Specifies the ID of resource type. Changing this creates a new VPC flow log.
resource_type This property is required. str
Specifies the type of resource on which to create the VPC flow log. The value can be port, vpc and network. Changing this creates a new VPC flow log.
traffic_type This property is required. str
Specifies the type of traffic to log. The value can be all, accept and reject. Changing this creates a new VPC flow log.
admin_state bool
Whether to enable the VPC flow log function.
description str
Provides supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
name str
Specifies the flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
status str
The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
timeouts VpcFlowLogV1TimeoutsArgs
vpc_flow_log_v1_id str
The VPC flow log ID in UUID format.
logGroupId This property is required. String
Specifies the log group ID. Changing this creates a new VPC flow log.
logTopicId This property is required. String
Specifies the log topic ID. Changing this creates a new VPC flow log.
resourceId This property is required. String
Specifies the ID of resource type. Changing this creates a new VPC flow log.
resourceType This property is required. String
Specifies the type of resource on which to create the VPC flow log. The value can be port, vpc and network. Changing this creates a new VPC flow log.
trafficType This property is required. String
Specifies the type of traffic to log. The value can be all, accept and reject. Changing this creates a new VPC flow log.
adminState Boolean
Whether to enable the VPC flow log function.
description String
Provides supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
name String
Specifies the flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
status String
The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
timeouts Property Map
vpcFlowLogV1Id String
The VPC flow log ID in UUID format.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing VpcFlowLogV1 Resource

Get an existing VpcFlowLogV1 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?: VpcFlowLogV1State, opts?: CustomResourceOptions): VpcFlowLogV1
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        admin_state: Optional[bool] = None,
        description: Optional[str] = None,
        log_group_id: Optional[str] = None,
        log_topic_id: Optional[str] = None,
        name: Optional[str] = None,
        resource_id: Optional[str] = None,
        resource_type: Optional[str] = None,
        status: Optional[str] = None,
        timeouts: Optional[VpcFlowLogV1TimeoutsArgs] = None,
        traffic_type: Optional[str] = None,
        vpc_flow_log_v1_id: Optional[str] = None) -> VpcFlowLogV1
func GetVpcFlowLogV1(ctx *Context, name string, id IDInput, state *VpcFlowLogV1State, opts ...ResourceOption) (*VpcFlowLogV1, error)
public static VpcFlowLogV1 Get(string name, Input<string> id, VpcFlowLogV1State? state, CustomResourceOptions? opts = null)
public static VpcFlowLogV1 get(String name, Output<String> id, VpcFlowLogV1State state, CustomResourceOptions options)
resources:  _:    type: opentelekomcloud:VpcFlowLogV1    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AdminState bool
Whether to enable the VPC flow log function.
Description string
Provides supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
LogGroupId string
Specifies the log group ID. Changing this creates a new VPC flow log.
LogTopicId string
Specifies the log topic ID. Changing this creates a new VPC flow log.
Name string
Specifies the flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
ResourceId string
Specifies the ID of resource type. Changing this creates a new VPC flow log.
ResourceType string
Specifies the type of resource on which to create the VPC flow log. The value can be port, vpc and network. Changing this creates a new VPC flow log.
Status string
The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
Timeouts VpcFlowLogV1Timeouts
TrafficType string
Specifies the type of traffic to log. The value can be all, accept and reject. Changing this creates a new VPC flow log.
VpcFlowLogV1Id string
The VPC flow log ID in UUID format.
AdminState bool
Whether to enable the VPC flow log function.
Description string
Provides supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
LogGroupId string
Specifies the log group ID. Changing this creates a new VPC flow log.
LogTopicId string
Specifies the log topic ID. Changing this creates a new VPC flow log.
Name string
Specifies the flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
ResourceId string
Specifies the ID of resource type. Changing this creates a new VPC flow log.
ResourceType string
Specifies the type of resource on which to create the VPC flow log. The value can be port, vpc and network. Changing this creates a new VPC flow log.
Status string
The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
Timeouts VpcFlowLogV1TimeoutsArgs
TrafficType string
Specifies the type of traffic to log. The value can be all, accept and reject. Changing this creates a new VPC flow log.
VpcFlowLogV1Id string
The VPC flow log ID in UUID format.
adminState Boolean
Whether to enable the VPC flow log function.
description String
Provides supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
logGroupId String
Specifies the log group ID. Changing this creates a new VPC flow log.
logTopicId String
Specifies the log topic ID. Changing this creates a new VPC flow log.
name String
Specifies the flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
resourceId String
Specifies the ID of resource type. Changing this creates a new VPC flow log.
resourceType String
Specifies the type of resource on which to create the VPC flow log. The value can be port, vpc and network. Changing this creates a new VPC flow log.
status String
The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
timeouts VpcFlowLogV1Timeouts
trafficType String
Specifies the type of traffic to log. The value can be all, accept and reject. Changing this creates a new VPC flow log.
vpcFlowLogV1Id String
The VPC flow log ID in UUID format.
adminState boolean
Whether to enable the VPC flow log function.
description string
Provides supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
logGroupId string
Specifies the log group ID. Changing this creates a new VPC flow log.
logTopicId string
Specifies the log topic ID. Changing this creates a new VPC flow log.
name string
Specifies the flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
resourceId string
Specifies the ID of resource type. Changing this creates a new VPC flow log.
resourceType string
Specifies the type of resource on which to create the VPC flow log. The value can be port, vpc and network. Changing this creates a new VPC flow log.
status string
The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
timeouts VpcFlowLogV1Timeouts
trafficType string
Specifies the type of traffic to log. The value can be all, accept and reject. Changing this creates a new VPC flow log.
vpcFlowLogV1Id string
The VPC flow log ID in UUID format.
admin_state bool
Whether to enable the VPC flow log function.
description str
Provides supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
log_group_id str
Specifies the log group ID. Changing this creates a new VPC flow log.
log_topic_id str
Specifies the log topic ID. Changing this creates a new VPC flow log.
name str
Specifies the flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
resource_id str
Specifies the ID of resource type. Changing this creates a new VPC flow log.
resource_type str
Specifies the type of resource on which to create the VPC flow log. The value can be port, vpc and network. Changing this creates a new VPC flow log.
status str
The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
timeouts VpcFlowLogV1TimeoutsArgs
traffic_type str
Specifies the type of traffic to log. The value can be all, accept and reject. Changing this creates a new VPC flow log.
vpc_flow_log_v1_id str
The VPC flow log ID in UUID format.
adminState Boolean
Whether to enable the VPC flow log function.
description String
Provides supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
logGroupId String
Specifies the log group ID. Changing this creates a new VPC flow log.
logTopicId String
Specifies the log topic ID. Changing this creates a new VPC flow log.
name String
Specifies the flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
resourceId String
Specifies the ID of resource type. Changing this creates a new VPC flow log.
resourceType String
Specifies the type of resource on which to create the VPC flow log. The value can be port, vpc and network. Changing this creates a new VPC flow log.
status String
The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
timeouts Property Map
trafficType String
Specifies the type of traffic to log. The value can be all, accept and reject. Changing this creates a new VPC flow log.
vpcFlowLogV1Id String
The VPC flow log ID in UUID format.

Supporting Types

VpcFlowLogV1Timeouts
, VpcFlowLogV1TimeoutsArgs

Create string
Delete string
Create string
Delete string
create String
delete String
create string
delete string
create str
delete str
create String
delete String

Import

VPC flow logs can be imported using the id, e.g.

$ pulumi import opentelekomcloud:index/vpcFlowLogV1:VpcFlowLogV1 opentelekomcloud_vpc_flow log_v1 ab76d479-9ef8-4034-88c4-4ab82fc87572
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.