1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getErFlowLogsV3
opentelekomcloud 1.36.44 published on Thursday, Jul 31, 2025 by opentelekomcloud

opentelekomcloud.getErFlowLogsV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.44 published on Thursday, Jul 31, 2025 by opentelekomcloud

    Use this data source to get the list of flow logs.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const instanceId = config.requireObject("instanceId");
    const resourceId = config.requireObject("resourceId");
    const test = opentelekomcloud.getErFlowLogsV3({
        instanceId: instanceId,
        resourceId: resourceId,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    instance_id = config.require_object("instanceId")
    resource_id = config.require_object("resourceId")
    test = opentelekomcloud.get_er_flow_logs_v3(instance_id=instance_id,
        resource_id=resource_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		instanceId := cfg.RequireObject("instanceId")
    		resourceId := cfg.RequireObject("resourceId")
    		_, err := opentelekomcloud.GetErFlowLogsV3(ctx, &opentelekomcloud.GetErFlowLogsV3Args{
    			InstanceId: instanceId,
    			ResourceId: pulumi.StringRef(resourceId),
    		}, 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 config = new Config();
        var instanceId = config.RequireObject<dynamic>("instanceId");
        var resourceId = config.RequireObject<dynamic>("resourceId");
        var test = Opentelekomcloud.GetErFlowLogsV3.Invoke(new()
        {
            InstanceId = instanceId,
            ResourceId = resourceId,
        });
    
    });
    
    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.GetErFlowLogsV3Args;
    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 config = ctx.config();
            final var instanceId = config.get("instanceId");
            final var resourceId = config.get("resourceId");
            final var test = OpentelekomcloudFunctions.getErFlowLogsV3(GetErFlowLogsV3Args.builder()
                .instanceId(instanceId)
                .resourceId(resourceId)
                .build());
    
        }
    }
    
    configuration:
      instanceId:
        type: dynamic
      resourceId:
        type: dynamic
    variables:
      test:
        fn::invoke:
          function: opentelekomcloud:getErFlowLogsV3
          arguments:
            instanceId: ${instanceId}
            resourceId: ${resourceId}
    

    Using getErFlowLogsV3

    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 getErFlowLogsV3(args: GetErFlowLogsV3Args, opts?: InvokeOptions): Promise<GetErFlowLogsV3Result>
    function getErFlowLogsV3Output(args: GetErFlowLogsV3OutputArgs, opts?: InvokeOptions): Output<GetErFlowLogsV3Result>
    def get_er_flow_logs_v3(enabled: Optional[str] = None,
                            flow_log_id: Optional[str] = None,
                            id: Optional[str] = None,
                            instance_id: Optional[str] = None,
                            log_group_id: Optional[str] = None,
                            log_stream_id: Optional[str] = None,
                            name: Optional[str] = None,
                            resource_id: Optional[str] = None,
                            resource_type: Optional[str] = None,
                            status: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetErFlowLogsV3Result
    def get_er_flow_logs_v3_output(enabled: Optional[pulumi.Input[str]] = None,
                            flow_log_id: Optional[pulumi.Input[str]] = None,
                            id: Optional[pulumi.Input[str]] = None,
                            instance_id: Optional[pulumi.Input[str]] = None,
                            log_group_id: Optional[pulumi.Input[str]] = None,
                            log_stream_id: Optional[pulumi.Input[str]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            resource_id: Optional[pulumi.Input[str]] = None,
                            resource_type: Optional[pulumi.Input[str]] = None,
                            status: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetErFlowLogsV3Result]
    func GetErFlowLogsV3(ctx *Context, args *GetErFlowLogsV3Args, opts ...InvokeOption) (*GetErFlowLogsV3Result, error)
    func GetErFlowLogsV3Output(ctx *Context, args *GetErFlowLogsV3OutputArgs, opts ...InvokeOption) GetErFlowLogsV3ResultOutput

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

    public static class GetErFlowLogsV3 
    {
        public static Task<GetErFlowLogsV3Result> InvokeAsync(GetErFlowLogsV3Args args, InvokeOptions? opts = null)
        public static Output<GetErFlowLogsV3Result> Invoke(GetErFlowLogsV3InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetErFlowLogsV3Result> getErFlowLogsV3(GetErFlowLogsV3Args args, InvokeOptions options)
    public static Output<GetErFlowLogsV3Result> getErFlowLogsV3(GetErFlowLogsV3Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getErFlowLogsV3:getErFlowLogsV3
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    Specifies the ID of the ER instance to which the flow logs belong.
    Enabled string
    Specifies the switch status of the flow log. The value can be true and false.
    FlowLogId string
    Specifies the ID of the flow log.
    Id string
    The ID of the flow log.
    LogGroupId string
    Specifies the ID of the log group to which the flow logs belong.
    LogStreamId string
    Specifies the ID of the log stream to which the flow logs belong.
    Name string
    Specifies the name of the flow log.
    ResourceId string
    Specifies the ID of the attachment to which the flow logs belong.
    ResourceType string
    Specifies the type of the flow logs. The valid values are as follows:
    Status string
    Specifies the status of the flow logs.
    InstanceId string
    Specifies the ID of the ER instance to which the flow logs belong.
    Enabled string
    Specifies the switch status of the flow log. The value can be true and false.
    FlowLogId string
    Specifies the ID of the flow log.
    Id string
    The ID of the flow log.
    LogGroupId string
    Specifies the ID of the log group to which the flow logs belong.
    LogStreamId string
    Specifies the ID of the log stream to which the flow logs belong.
    Name string
    Specifies the name of the flow log.
    ResourceId string
    Specifies the ID of the attachment to which the flow logs belong.
    ResourceType string
    Specifies the type of the flow logs. The valid values are as follows:
    Status string
    Specifies the status of the flow logs.
    instanceId String
    Specifies the ID of the ER instance to which the flow logs belong.
    enabled String
    Specifies the switch status of the flow log. The value can be true and false.
    flowLogId String
    Specifies the ID of the flow log.
    id String
    The ID of the flow log.
    logGroupId String
    Specifies the ID of the log group to which the flow logs belong.
    logStreamId String
    Specifies the ID of the log stream to which the flow logs belong.
    name String
    Specifies the name of the flow log.
    resourceId String
    Specifies the ID of the attachment to which the flow logs belong.
    resourceType String
    Specifies the type of the flow logs. The valid values are as follows:
    status String
    Specifies the status of the flow logs.
    instanceId string
    Specifies the ID of the ER instance to which the flow logs belong.
    enabled string
    Specifies the switch status of the flow log. The value can be true and false.
    flowLogId string
    Specifies the ID of the flow log.
    id string
    The ID of the flow log.
    logGroupId string
    Specifies the ID of the log group to which the flow logs belong.
    logStreamId string
    Specifies the ID of the log stream to which the flow logs belong.
    name string
    Specifies the name of the flow log.
    resourceId string
    Specifies the ID of the attachment to which the flow logs belong.
    resourceType string
    Specifies the type of the flow logs. The valid values are as follows:
    status string
    Specifies the status of the flow logs.
    instance_id str
    Specifies the ID of the ER instance to which the flow logs belong.
    enabled str
    Specifies the switch status of the flow log. The value can be true and false.
    flow_log_id str
    Specifies the ID of the flow log.
    id str
    The ID of the flow log.
    log_group_id str
    Specifies the ID of the log group to which the flow logs belong.
    log_stream_id str
    Specifies the ID of the log stream to which the flow logs belong.
    name str
    Specifies the name of the flow log.
    resource_id str
    Specifies the ID of the attachment to which the flow logs belong.
    resource_type str
    Specifies the type of the flow logs. The valid values are as follows:
    status str
    Specifies the status of the flow logs.
    instanceId String
    Specifies the ID of the ER instance to which the flow logs belong.
    enabled String
    Specifies the switch status of the flow log. The value can be true and false.
    flowLogId String
    Specifies the ID of the flow log.
    id String
    The ID of the flow log.
    logGroupId String
    Specifies the ID of the log group to which the flow logs belong.
    logStreamId String
    Specifies the ID of the log stream to which the flow logs belong.
    name String
    Specifies the name of the flow log.
    resourceId String
    Specifies the ID of the attachment to which the flow logs belong.
    resourceType String
    Specifies the type of the flow logs. The valid values are as follows:
    status String
    Specifies the status of the flow logs.

    getErFlowLogsV3 Result

    The following output properties are available:

    FlowLogs List<GetErFlowLogsV3FlowLog>
    The list ot the flow logs. The flow_logs structure is documented below.
    Id string
    The ID of the flow log.
    InstanceId string
    Region string
    Region where the flow logs are located.
    Enabled string
    The switch of the flow log.
    FlowLogId string
    LogGroupId string
    The ID of the log group to which the flow log belongs.
    LogStreamId string
    The ID of the log stream to which the flow log belongs.
    Name string
    The name of the flow log.
    ResourceId string
    The ID of the attachment to which the flow log belongs.
    ResourceType string
    The type of the flow log.
    Status string
    The status of the flow log.
    FlowLogs []GetErFlowLogsV3FlowLog
    The list ot the flow logs. The flow_logs structure is documented below.
    Id string
    The ID of the flow log.
    InstanceId string
    Region string
    Region where the flow logs are located.
    Enabled string
    The switch of the flow log.
    FlowLogId string
    LogGroupId string
    The ID of the log group to which the flow log belongs.
    LogStreamId string
    The ID of the log stream to which the flow log belongs.
    Name string
    The name of the flow log.
    ResourceId string
    The ID of the attachment to which the flow log belongs.
    ResourceType string
    The type of the flow log.
    Status string
    The status of the flow log.
    flowLogs List<GetErFlowLogsV3FlowLog>
    The list ot the flow logs. The flow_logs structure is documented below.
    id String
    The ID of the flow log.
    instanceId String
    region String
    Region where the flow logs are located.
    enabled String
    The switch of the flow log.
    flowLogId String
    logGroupId String
    The ID of the log group to which the flow log belongs.
    logStreamId String
    The ID of the log stream to which the flow log belongs.
    name String
    The name of the flow log.
    resourceId String
    The ID of the attachment to which the flow log belongs.
    resourceType String
    The type of the flow log.
    status String
    The status of the flow log.
    flowLogs GetErFlowLogsV3FlowLog[]
    The list ot the flow logs. The flow_logs structure is documented below.
    id string
    The ID of the flow log.
    instanceId string
    region string
    Region where the flow logs are located.
    enabled string
    The switch of the flow log.
    flowLogId string
    logGroupId string
    The ID of the log group to which the flow log belongs.
    logStreamId string
    The ID of the log stream to which the flow log belongs.
    name string
    The name of the flow log.
    resourceId string
    The ID of the attachment to which the flow log belongs.
    resourceType string
    The type of the flow log.
    status string
    The status of the flow log.
    flow_logs Sequence[GetErFlowLogsV3FlowLog]
    The list ot the flow logs. The flow_logs structure is documented below.
    id str
    The ID of the flow log.
    instance_id str
    region str
    Region where the flow logs are located.
    enabled str
    The switch of the flow log.
    flow_log_id str
    log_group_id str
    The ID of the log group to which the flow log belongs.
    log_stream_id str
    The ID of the log stream to which the flow log belongs.
    name str
    The name of the flow log.
    resource_id str
    The ID of the attachment to which the flow log belongs.
    resource_type str
    The type of the flow log.
    status str
    The status of the flow log.
    flowLogs List<Property Map>
    The list ot the flow logs. The flow_logs structure is documented below.
    id String
    The ID of the flow log.
    instanceId String
    region String
    Region where the flow logs are located.
    enabled String
    The switch of the flow log.
    flowLogId String
    logGroupId String
    The ID of the log group to which the flow log belongs.
    logStreamId String
    The ID of the log stream to which the flow log belongs.
    name String
    The name of the flow log.
    resourceId String
    The ID of the attachment to which the flow log belongs.
    resourceType String
    The type of the flow log.
    status String
    The status of the flow log.

    Supporting Types

    GetErFlowLogsV3FlowLog

    CreatedAt string
    The creation time of the flow log.
    Description string
    The description of the flow log.
    Enabled bool
    Specifies the switch status of the flow log. The value can be true and false.
    Id string
    The ID of the flow log.
    LogGroupId string
    Specifies the ID of the log group to which the flow logs belong.
    LogStoreType string
    The storage type of the flow log.
    LogStreamId string
    Specifies the ID of the log stream to which the flow logs belong.
    Name string
    Specifies the name of the flow log.
    ResourceId string
    Specifies the ID of the attachment to which the flow logs belong.
    ResourceType string
    Specifies the type of the flow logs. The valid values are as follows:
    Status string
    Specifies the status of the flow logs.
    UpdatedAt string
    The latest update time of the flow log.
    CreatedAt string
    The creation time of the flow log.
    Description string
    The description of the flow log.
    Enabled bool
    Specifies the switch status of the flow log. The value can be true and false.
    Id string
    The ID of the flow log.
    LogGroupId string
    Specifies the ID of the log group to which the flow logs belong.
    LogStoreType string
    The storage type of the flow log.
    LogStreamId string
    Specifies the ID of the log stream to which the flow logs belong.
    Name string
    Specifies the name of the flow log.
    ResourceId string
    Specifies the ID of the attachment to which the flow logs belong.
    ResourceType string
    Specifies the type of the flow logs. The valid values are as follows:
    Status string
    Specifies the status of the flow logs.
    UpdatedAt string
    The latest update time of the flow log.
    createdAt String
    The creation time of the flow log.
    description String
    The description of the flow log.
    enabled Boolean
    Specifies the switch status of the flow log. The value can be true and false.
    id String
    The ID of the flow log.
    logGroupId String
    Specifies the ID of the log group to which the flow logs belong.
    logStoreType String
    The storage type of the flow log.
    logStreamId String
    Specifies the ID of the log stream to which the flow logs belong.
    name String
    Specifies the name of the flow log.
    resourceId String
    Specifies the ID of the attachment to which the flow logs belong.
    resourceType String
    Specifies the type of the flow logs. The valid values are as follows:
    status String
    Specifies the status of the flow logs.
    updatedAt String
    The latest update time of the flow log.
    createdAt string
    The creation time of the flow log.
    description string
    The description of the flow log.
    enabled boolean
    Specifies the switch status of the flow log. The value can be true and false.
    id string
    The ID of the flow log.
    logGroupId string
    Specifies the ID of the log group to which the flow logs belong.
    logStoreType string
    The storage type of the flow log.
    logStreamId string
    Specifies the ID of the log stream to which the flow logs belong.
    name string
    Specifies the name of the flow log.
    resourceId string
    Specifies the ID of the attachment to which the flow logs belong.
    resourceType string
    Specifies the type of the flow logs. The valid values are as follows:
    status string
    Specifies the status of the flow logs.
    updatedAt string
    The latest update time of the flow log.
    created_at str
    The creation time of the flow log.
    description str
    The description of the flow log.
    enabled bool
    Specifies the switch status of the flow log. The value can be true and false.
    id str
    The ID of the flow log.
    log_group_id str
    Specifies the ID of the log group to which the flow logs belong.
    log_store_type str
    The storage type of the flow log.
    log_stream_id str
    Specifies the ID of the log stream to which the flow logs belong.
    name str
    Specifies the name of the flow log.
    resource_id str
    Specifies the ID of the attachment to which the flow logs belong.
    resource_type str
    Specifies the type of the flow logs. The valid values are as follows:
    status str
    Specifies the status of the flow logs.
    updated_at str
    The latest update time of the flow log.
    createdAt String
    The creation time of the flow log.
    description String
    The description of the flow log.
    enabled Boolean
    Specifies the switch status of the flow log. The value can be true and false.
    id String
    The ID of the flow log.
    logGroupId String
    Specifies the ID of the log group to which the flow logs belong.
    logStoreType String
    The storage type of the flow log.
    logStreamId String
    Specifies the ID of the log stream to which the flow logs belong.
    name String
    Specifies the name of the flow log.
    resourceId String
    Specifies the ID of the attachment to which the flow logs belong.
    resourceType String
    Specifies the type of the flow logs. The valid values are as follows:
    status String
    Specifies the status of the flow logs.
    updatedAt String
    The latest update time of the flow log.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.44 published on Thursday, Jul 31, 2025 by opentelekomcloud