Viewing docs for opentelekomcloud 1.37.8
published on Thursday, Sep 10, 2026 by opentelekomcloud
published on Thursday, Sep 10, 2026 by opentelekomcloud
Viewing docs for opentelekomcloud 1.37.8
published on Thursday, Sep 10, 2026 by opentelekomcloud
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 dictionarydata "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
0to2000. Defaults to2000. - Log
Group stringId - LTS log group ID.
- Log
Topic stringId - 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, andnetwork. - Status string
- Flow log status. Valid values are
ACTIVE,DOWN, andERROR. - Tenant
Id string - Project ID.
- Traffic
Type string - Traffic type. Valid values are
all,accept, andreject.
- Description string
- Flow log description.
- Id string
- Flow log ID.
- Limit float64
- Number of records requested per page. Valid values are from
0to2000. Defaults to2000. - Log
Group stringId - LTS log group ID.
- Log
Topic stringId - 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, andnetwork. - Status string
- Flow log status. Valid values are
ACTIVE,DOWN, andERROR. - Tenant
Id string - Project ID.
- Traffic
Type string - Traffic type. Valid values are
all,accept, andreject.
- description string
- Flow log description.
- id string
- Flow log ID.
- limit number
- Number of records requested per page. Valid values are from
0to2000. Defaults to2000. - log_
group_ stringid - LTS log group ID.
- log_
topic_ stringid - 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, andnetwork. - status string
- Flow log status. Valid values are
ACTIVE,DOWN, andERROR. - tenant_
id string - Project ID.
- traffic_
type string - Traffic type. Valid values are
all,accept, andreject.
- description String
- Flow log description.
- id String
- Flow log ID.
- limit Double
- Number of records requested per page. Valid values are from
0to2000. Defaults to2000. - log
Group StringId - LTS log group ID.
- log
Topic StringId - 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, andnetwork. - status String
- Flow log status. Valid values are
ACTIVE,DOWN, andERROR. - tenant
Id String - Project ID.
- traffic
Type String - Traffic type. Valid values are
all,accept, andreject.
- description string
- Flow log description.
- id string
- Flow log ID.
- limit number
- Number of records requested per page. Valid values are from
0to2000. Defaults to2000. - log
Group stringId - LTS log group ID.
- log
Topic stringId - 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, andnetwork. - status string
- Flow log status. Valid values are
ACTIVE,DOWN, andERROR. - tenant
Id string - Project ID.
- traffic
Type string - Traffic type. Valid values are
all,accept, andreject.
- description str
- Flow log description.
- id str
- Flow log ID.
- limit float
- Number of records requested per page. Valid values are from
0to2000. Defaults to2000. - log_
group_ strid - LTS log group ID.
- log_
topic_ strid - 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, andnetwork. - status str
- Flow log status. Valid values are
ACTIVE,DOWN, andERROR. - tenant_
id str - Project ID.
- traffic_
type str - Traffic type. Valid values are
all,accept, andreject.
- description String
- Flow log description.
- id String
- Flow log ID.
- limit Number
- Number of records requested per page. Valid values are from
0to2000. Defaults to2000. - log
Group StringId - LTS log group ID.
- log
Topic StringId - 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, andnetwork. - status String
- Flow log status. Valid values are
ACTIVE,DOWN, andERROR. - tenant
Id String - Project ID.
- traffic
Type String - Traffic type. Valid values are
all,accept, andreject.
getVpcFlowLogsV1 Result
The following output properties are available:
- Flow
Logs List<GetVpc Flow Logs V1Flow Log> - Matching VPC flow logs. Each entry contains:
- Description string
- Flow log description.
- Id string
- Flow log ID.
- Limit double
- Log
Group stringId - LTS log group ID.
- Log
Topic stringId - 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.
- Flow
Logs []GetVpc Flow Logs V1Flow Log - Matching VPC flow logs. Each entry contains:
- Description string
- Flow log description.
- Id string
- Flow log ID.
- Limit float64
- Log
Group stringId - LTS log group ID.
- Log
Topic stringId - 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.
- 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_ stringid - LTS log group ID.
- log_
topic_ stringid - 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.
- flow
Logs List<GetVpc Flow Logs V1Flow Log> - Matching VPC flow logs. Each entry contains:
- description String
- Flow log description.
- id String
- Flow log ID.
- limit Double
- log
Group StringId - LTS log group ID.
- log
Topic StringId - 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.
- flow
Logs GetVpc Flow Logs V1Flow Log[] - Matching VPC flow logs. Each entry contains:
- description string
- Flow log description.
- id string
- Flow log ID.
- limit number
- log
Group stringId - LTS log group ID.
- log
Topic stringId - 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.
- flow_
logs Sequence[GetVpc Flow Logs V1Flow Log] - Matching VPC flow logs. Each entry contains:
- description str
- Flow log description.
- id str
- Flow log ID.
- limit float
- log_
group_ strid - LTS log group ID.
- log_
topic_ strid - 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.
- flow
Logs List<Property Map> - Matching VPC flow logs. Each entry contains:
- description String
- Flow log description.
- id String
- Flow log ID.
- limit Number
- log
Group StringId - LTS log group ID.
- log
Topic StringId - 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.
Supporting Types
GetVpcFlowLogsV1FlowLog
- 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 stringId - LTS log group ID.
- Log
Topic stringId - 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, andnetwork. - Status string
- Flow log status. Valid values are
ACTIVE,DOWN, andERROR. - Tenant
Id string - Project ID.
- Traffic
Type string - Traffic type. Valid values are
all,accept, andreject. - Updated
At 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 stringId - LTS log group ID.
- Log
Topic stringId - 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, andnetwork. - Status string
- Flow log status. Valid values are
ACTIVE,DOWN, andERROR. - Tenant
Id string - Project ID.
- Traffic
Type string - Traffic type. Valid values are
all,accept, andreject. - Updated
At 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_ stringid - LTS log group ID.
- log_
topic_ stringid - 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, andnetwork. - status string
- Flow log status. Valid values are
ACTIVE,DOWN, andERROR. - tenant_
id string - Project ID.
- traffic_
type string - Traffic type. Valid values are
all,accept, andreject. - updated_
at string - Last update time.
- created
At String - Creation time.
- description String
- Flow log description.
- enabled Boolean
- Whether the flow log function is enabled.
- id String
- Flow log ID.
- log
Group StringId - LTS log group ID.
- log
Topic StringId - 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, andnetwork. - status String
- Flow log status. Valid values are
ACTIVE,DOWN, andERROR. - tenant
Id String - Project ID.
- traffic
Type String - Traffic type. Valid values are
all,accept, andreject. - updated
At String - Last update time.
- created
At string - Creation time.
- description string
- Flow log description.
- enabled boolean
- Whether the flow log function is enabled.
- id string
- Flow log ID.
- log
Group stringId - LTS log group ID.
- log
Topic stringId - 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, andnetwork. - status string
- Flow log status. Valid values are
ACTIVE,DOWN, andERROR. - tenant
Id string - Project ID.
- traffic
Type string - Traffic type. Valid values are
all,accept, andreject. - updated
At 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_ strid - LTS log group ID.
- log_
topic_ strid - 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, andnetwork. - status str
- Flow log status. Valid values are
ACTIVE,DOWN, andERROR. - tenant_
id str - Project ID.
- traffic_
type str - Traffic type. Valid values are
all,accept, andreject. - updated_
at str - Last update time.
- created
At String - Creation time.
- description String
- Flow log description.
- enabled Boolean
- Whether the flow log function is enabled.
- id String
- Flow log ID.
- log
Group StringId - LTS log group ID.
- log
Topic StringId - 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, andnetwork. - status String
- Flow log status. Valid values are
ACTIVE,DOWN, andERROR. - tenant
Id String - Project ID.
- traffic
Type String - Traffic type. Valid values are
all,accept, andreject. - updated
At String - Last update time.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloudTerraform Provider.
Viewing docs for opentelekomcloud 1.37.8
published on Thursday, Sep 10, 2026 by opentelekomcloud
published on Thursday, Sep 10, 2026 by opentelekomcloud