1. Registry
  2. Packages
  3. Opentelekomcloud Provider
  4. API Docs
  5. getVpcFlowLogsV1
Viewing docs for opentelekomcloud 1.37.8
published on Thursday, Sep 10, 2026 by opentelekomcloud
Viewing docs for opentelekomcloud 1.37.8
published on Thursday, Sep 10, 2026 by opentelekomcloud

    Up-to-date reference of API arguments for VPC flow logs is available at the documentation portal.

    Queries VPC flow logs using optional filters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const flowLogs = opentelekomcloud.getVpcFlowLogsV1({
        resourceType: "vpc",
        resourceId: vpcId,
        status: "ACTIVE",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    flow_logs = opentelekomcloud.get_vpc_flow_logs_v1(resource_type="vpc",
        resource_id=vpc_id,
        status="ACTIVE")
    
    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 {
    		_, err := opentelekomcloud.GetVpcFlowLogsV1(ctx, &opentelekomcloud.GetVpcFlowLogsV1Args{
    			ResourceType: pulumi.StringRef("vpc"),
    			ResourceId:   pulumi.StringRef(vpcId),
    			Status:       pulumi.StringRef("ACTIVE"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var flowLogs = Opentelekomcloud.GetVpcFlowLogsV1.Invoke(new()
        {
            ResourceType = "vpc",
            ResourceId = vpcId,
            Status = "ACTIVE",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetVpcFlowLogsV1Args;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var flowLogs = OpentelekomcloudFunctions.getVpcFlowLogsV1(GetVpcFlowLogsV1Args.builder()
                .resourceType("vpc")
                .resourceId(vpcId)
                .status("ACTIVE")
                .build());
    
        }
    }
    
    variables:
      flowLogs:
        fn::invoke:
          function: opentelekomcloud:getVpcFlowLogsV1
          arguments:
            resourceType: vpc
            resourceId: ${vpcId}
            status: ACTIVE
    
    Example coming soon!
    

    Using getVpcFlowLogsV1

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getVpcFlowLogsV1(args: GetVpcFlowLogsV1Args, opts?: InvokeOptions): Promise<GetVpcFlowLogsV1Result>
    function getVpcFlowLogsV1Output(args: GetVpcFlowLogsV1OutputArgs, opts?: InvokeOutputOptions): Output<GetVpcFlowLogsV1Result>
    def get_vpc_flow_logs_v1(description: Optional[str] = None,
                             id: Optional[str] = None,
                             limit: Optional[float] = None,
                             log_group_id: Optional[str] = None,
                             log_topic_id: Optional[str] = None,
                             marker: Optional[str] = None,
                             name: Optional[str] = None,
                             resource_id: Optional[str] = None,
                             resource_type: Optional[str] = None,
                             status: Optional[str] = None,
                             tenant_id: Optional[str] = None,
                             traffic_type: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetVpcFlowLogsV1Result
    def get_vpc_flow_logs_v1_output(description: pulumi.Input[Optional[str]] = None,
                             id: pulumi.Input[Optional[str]] = None,
                             limit: pulumi.Input[Optional[float]] = None,
                             log_group_id: pulumi.Input[Optional[str]] = None,
                             log_topic_id: pulumi.Input[Optional[str]] = None,
                             marker: pulumi.Input[Optional[str]] = None,
                             name: pulumi.Input[Optional[str]] = None,
                             resource_id: pulumi.Input[Optional[str]] = None,
                             resource_type: pulumi.Input[Optional[str]] = None,
                             status: pulumi.Input[Optional[str]] = None,
                             tenant_id: pulumi.Input[Optional[str]] = None,
                             traffic_type: pulumi.Input[Optional[str]] = None,
                             opts: Optional[InvokeOutputOptions] = None) -> Output[GetVpcFlowLogsV1Result]
    func GetVpcFlowLogsV1(ctx *Context, args *GetVpcFlowLogsV1Args, opts ...InvokeOption) (*GetVpcFlowLogsV1Result, error)
    func GetVpcFlowLogsV1Output(ctx *Context, args *GetVpcFlowLogsV1OutputArgs, opts ...InvokeOption) GetVpcFlowLogsV1ResultOutput

    > Note: This function is named GetVpcFlowLogsV1 in the Go SDK.

    public static class GetVpcFlowLogsV1 
    {
        public static Task<GetVpcFlowLogsV1Result> InvokeAsync(GetVpcFlowLogsV1Args args, InvokeOptions? opts = null)
        public static Output<GetVpcFlowLogsV1Result> Invoke(GetVpcFlowLogsV1InvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcFlowLogsV1Result> Invoke(GetVpcFlowLogsV1InvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetVpcFlowLogsV1Result> getVpcFlowLogsV1(GetVpcFlowLogsV1Args args, InvokeOptions options)
    public static Output<GetVpcFlowLogsV1Result> getVpcFlowLogsV1(GetVpcFlowLogsV1Args args, InvokeOptions options)
    public static Output<GetVpcFlowLogsV1Result> getVpcFlowLogsV1(GetVpcFlowLogsV1Args args, InvokeOutputOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getVpcFlowLogsV1:getVpcFlowLogsV1
      arguments:
        # arguments dictionary
    data "opentelekomcloud_get_vpc_flow_logs_v1" "name" {
        # arguments
    }

    The following arguments are supported:

    Description string
    Flow log description.
    Id string
    Flow log ID.
    Limit double
    Number of records requested per page. Valid values are from 0 to 2000. Defaults to 2000.
    LogGroupId string
    LTS log group ID.
    LogTopicId string
    LTS log topic ID.
    Marker string
    Resource ID after which listing starts.
    Name string
    Flow log name.
    ResourceId string
    ID of the resource whose traffic is logged.
    ResourceType string
    Resource type. Valid values are port, vpc, and network.
    Status string
    Flow log status. Valid values are ACTIVE, DOWN, and ERROR.
    TenantId string
    Project ID.
    TrafficType string
    Traffic type. Valid values are all, accept, and reject.
    Description string
    Flow log description.
    Id string
    Flow log ID.
    Limit float64
    Number of records requested per page. Valid values are from 0 to 2000. Defaults to 2000.
    LogGroupId string
    LTS log group ID.
    LogTopicId string
    LTS log topic ID.
    Marker string
    Resource ID after which listing starts.
    Name string
    Flow log name.
    ResourceId string
    ID of the resource whose traffic is logged.
    ResourceType string
    Resource type. Valid values are port, vpc, and network.
    Status string
    Flow log status. Valid values are ACTIVE, DOWN, and ERROR.
    TenantId string
    Project ID.
    TrafficType string
    Traffic type. Valid values are all, accept, and reject.
    description string
    Flow log description.
    id string
    Flow log ID.
    limit number
    Number of records requested per page. Valid values are from 0 to 2000. Defaults to 2000.
    log_group_id string
    LTS log group ID.
    log_topic_id string
    LTS log topic ID.
    marker string
    Resource ID after which listing starts.
    name string
    Flow log name.
    resource_id string
    ID of the resource whose traffic is logged.
    resource_type string
    Resource type. Valid values are port, vpc, and network.
    status string
    Flow log status. Valid values are ACTIVE, DOWN, and ERROR.
    tenant_id string
    Project ID.
    traffic_type string
    Traffic type. Valid values are all, accept, and reject.
    description String
    Flow log description.
    id String
    Flow log ID.
    limit Double
    Number of records requested per page. Valid values are from 0 to 2000. Defaults to 2000.
    logGroupId String
    LTS log group ID.
    logTopicId String
    LTS log topic ID.
    marker String
    Resource ID after which listing starts.
    name String
    Flow log name.
    resourceId String
    ID of the resource whose traffic is logged.
    resourceType String
    Resource type. Valid values are port, vpc, and network.
    status String
    Flow log status. Valid values are ACTIVE, DOWN, and ERROR.
    tenantId String
    Project ID.
    trafficType String
    Traffic type. Valid values are all, accept, and reject.
    description string
    Flow log description.
    id string
    Flow log ID.
    limit number
    Number of records requested per page. Valid values are from 0 to 2000. Defaults to 2000.
    logGroupId string
    LTS log group ID.
    logTopicId string
    LTS log topic ID.
    marker string
    Resource ID after which listing starts.
    name string
    Flow log name.
    resourceId string
    ID of the resource whose traffic is logged.
    resourceType string
    Resource type. Valid values are port, vpc, and network.
    status string
    Flow log status. Valid values are ACTIVE, DOWN, and ERROR.
    tenantId string
    Project ID.
    trafficType string
    Traffic type. Valid values are all, accept, and reject.
    description str
    Flow log description.
    id str
    Flow log ID.
    limit float
    Number of records requested per page. Valid values are from 0 to 2000. Defaults to 2000.
    log_group_id str
    LTS log group ID.
    log_topic_id str
    LTS log topic ID.
    marker str
    Resource ID after which listing starts.
    name str
    Flow log name.
    resource_id str
    ID of the resource whose traffic is logged.
    resource_type str
    Resource type. Valid values are port, vpc, and network.
    status str
    Flow log status. Valid values are ACTIVE, DOWN, and ERROR.
    tenant_id str
    Project ID.
    traffic_type str
    Traffic type. Valid values are all, accept, and reject.
    description String
    Flow log description.
    id String
    Flow log ID.
    limit Number
    Number of records requested per page. Valid values are from 0 to 2000. Defaults to 2000.
    logGroupId String
    LTS log group ID.
    logTopicId String
    LTS log topic ID.
    marker String
    Resource ID after which listing starts.
    name String
    Flow log name.
    resourceId String
    ID of the resource whose traffic is logged.
    resourceType String
    Resource type. Valid values are port, vpc, and network.
    status String
    Flow log status. Valid values are ACTIVE, DOWN, and ERROR.
    tenantId String
    Project ID.
    trafficType String
    Traffic type. Valid values are all, accept, and reject.

    getVpcFlowLogsV1 Result

    The following output properties are available:

    FlowLogs List<GetVpcFlowLogsV1FlowLog>
    Matching VPC flow logs. Each entry contains:
    Description string
    Flow log description.
    Id string
    Flow log ID.
    Limit double
    LogGroupId string
    LTS log group ID.
    LogTopicId string
    LTS log topic ID.
    Marker string
    Name string
    Flow log name.
    ResourceId string
    Resource ID.
    ResourceType string
    Resource type.
    Status string
    Flow log status.
    TenantId string
    Project ID.
    TrafficType string
    Traffic type.
    FlowLogs []GetVpcFlowLogsV1FlowLog
    Matching VPC flow logs. Each entry contains:
    Description string
    Flow log description.
    Id string
    Flow log ID.
    Limit float64
    LogGroupId string
    LTS log group ID.
    LogTopicId string
    LTS log topic ID.
    Marker string
    Name string
    Flow log name.
    ResourceId string
    Resource ID.
    ResourceType string
    Resource type.
    Status string
    Flow log status.
    TenantId string
    Project ID.
    TrafficType string
    Traffic type.
    flow_logs list(object)
    Matching VPC flow logs. Each entry contains:
    description string
    Flow log description.
    id string
    Flow log ID.
    limit number
    log_group_id string
    LTS log group ID.
    log_topic_id string
    LTS log topic ID.
    marker string
    name string
    Flow log name.
    resource_id string
    Resource ID.
    resource_type string
    Resource type.
    status string
    Flow log status.
    tenant_id string
    Project ID.
    traffic_type string
    Traffic type.
    flowLogs List<GetVpcFlowLogsV1FlowLog>
    Matching VPC flow logs. Each entry contains:
    description String
    Flow log description.
    id String
    Flow log ID.
    limit Double
    logGroupId String
    LTS log group ID.
    logTopicId String
    LTS log topic ID.
    marker String
    name String
    Flow log name.
    resourceId String
    Resource ID.
    resourceType String
    Resource type.
    status String
    Flow log status.
    tenantId String
    Project ID.
    trafficType String
    Traffic type.
    flowLogs GetVpcFlowLogsV1FlowLog[]
    Matching VPC flow logs. Each entry contains:
    description string
    Flow log description.
    id string
    Flow log ID.
    limit number
    logGroupId string
    LTS log group ID.
    logTopicId string
    LTS log topic ID.
    marker string
    name string
    Flow log name.
    resourceId string
    Resource ID.
    resourceType string
    Resource type.
    status string
    Flow log status.
    tenantId string
    Project ID.
    trafficType string
    Traffic type.
    flow_logs Sequence[GetVpcFlowLogsV1FlowLog]
    Matching VPC flow logs. Each entry contains:
    description str
    Flow log description.
    id str
    Flow log ID.
    limit float
    log_group_id str
    LTS log group ID.
    log_topic_id str
    LTS log topic ID.
    marker str
    name str
    Flow log name.
    resource_id str
    Resource ID.
    resource_type str
    Resource type.
    status str
    Flow log status.
    tenant_id str
    Project ID.
    traffic_type str
    Traffic type.
    flowLogs List<Property Map>
    Matching VPC flow logs. Each entry contains:
    description String
    Flow log description.
    id String
    Flow log ID.
    limit Number
    logGroupId String
    LTS log group ID.
    logTopicId String
    LTS log topic ID.
    marker String
    name String
    Flow log name.
    resourceId String
    Resource ID.
    resourceType String
    Resource type.
    status String
    Flow log status.
    tenantId String
    Project ID.
    trafficType String
    Traffic type.

    Supporting Types

    GetVpcFlowLogsV1FlowLog

    CreatedAt string
    Creation time.
    Description string
    Flow log description.
    Enabled bool
    Whether the flow log function is enabled.
    Id string
    Flow log ID.
    LogGroupId string
    LTS log group ID.
    LogTopicId string
    LTS log topic ID.
    Name string
    Flow log name.
    ResourceId string
    ID of the resource whose traffic is logged.
    ResourceType string
    Resource type. Valid values are port, vpc, and network.
    Status string
    Flow log status. Valid values are ACTIVE, DOWN, and ERROR.
    TenantId string
    Project ID.
    TrafficType string
    Traffic type. Valid values are all, accept, and reject.
    UpdatedAt string
    Last update time.
    CreatedAt string
    Creation time.
    Description string
    Flow log description.
    Enabled bool
    Whether the flow log function is enabled.
    Id string
    Flow log ID.
    LogGroupId string
    LTS log group ID.
    LogTopicId string
    LTS log topic ID.
    Name string
    Flow log name.
    ResourceId string
    ID of the resource whose traffic is logged.
    ResourceType string
    Resource type. Valid values are port, vpc, and network.
    Status string
    Flow log status. Valid values are ACTIVE, DOWN, and ERROR.
    TenantId string
    Project ID.
    TrafficType string
    Traffic type. Valid values are all, accept, and reject.
    UpdatedAt string
    Last update time.
    created_at string
    Creation time.
    description string
    Flow log description.
    enabled bool
    Whether the flow log function is enabled.
    id string
    Flow log ID.
    log_group_id string
    LTS log group ID.
    log_topic_id string
    LTS log topic ID.
    name string
    Flow log name.
    resource_id string
    ID of the resource whose traffic is logged.
    resource_type string
    Resource type. Valid values are port, vpc, and network.
    status string
    Flow log status. Valid values are ACTIVE, DOWN, and ERROR.
    tenant_id string
    Project ID.
    traffic_type string
    Traffic type. Valid values are all, accept, and reject.
    updated_at string
    Last update time.
    createdAt String
    Creation time.
    description String
    Flow log description.
    enabled Boolean
    Whether the flow log function is enabled.
    id String
    Flow log ID.
    logGroupId String
    LTS log group ID.
    logTopicId String
    LTS log topic ID.
    name String
    Flow log name.
    resourceId String
    ID of the resource whose traffic is logged.
    resourceType String
    Resource type. Valid values are port, vpc, and network.
    status String
    Flow log status. Valid values are ACTIVE, DOWN, and ERROR.
    tenantId String
    Project ID.
    trafficType String
    Traffic type. Valid values are all, accept, and reject.
    updatedAt String
    Last update time.
    createdAt string
    Creation time.
    description string
    Flow log description.
    enabled boolean
    Whether the flow log function is enabled.
    id string
    Flow log ID.
    logGroupId string
    LTS log group ID.
    logTopicId string
    LTS log topic ID.
    name string
    Flow log name.
    resourceId string
    ID of the resource whose traffic is logged.
    resourceType string
    Resource type. Valid values are port, vpc, and network.
    status string
    Flow log status. Valid values are ACTIVE, DOWN, and ERROR.
    tenantId string
    Project ID.
    trafficType string
    Traffic type. Valid values are all, accept, and reject.
    updatedAt string
    Last update time.
    created_at str
    Creation time.
    description str
    Flow log description.
    enabled bool
    Whether the flow log function is enabled.
    id str
    Flow log ID.
    log_group_id str
    LTS log group ID.
    log_topic_id str
    LTS log topic ID.
    name str
    Flow log name.
    resource_id str
    ID of the resource whose traffic is logged.
    resource_type str
    Resource type. Valid values are port, vpc, and network.
    status str
    Flow log status. Valid values are ACTIVE, DOWN, and ERROR.
    tenant_id str
    Project ID.
    traffic_type str
    Traffic type. Valid values are all, accept, and reject.
    updated_at str
    Last update time.
    createdAt String
    Creation time.
    description String
    Flow log description.
    enabled Boolean
    Whether the flow log function is enabled.
    id String
    Flow log ID.
    logGroupId String
    LTS log group ID.
    logTopicId String
    LTS log topic ID.
    name String
    Flow log name.
    resourceId String
    ID of the resource whose traffic is logged.
    resourceType String
    Resource type. Valid values are port, vpc, and network.
    status String
    Flow log status. Valid values are ACTIVE, DOWN, and ERROR.
    tenantId String
    Project ID.
    trafficType String
    Traffic type. Valid values are all, accept, and reject.
    updatedAt String
    Last update time.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    Viewing docs for opentelekomcloud 1.37.8
    published on Thursday, Sep 10, 2026 by opentelekomcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial