1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cen
  5. getFlowlogs
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cen.getFlowlogs

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

This data source provides CEN flow logs available to the user.

NOTE: Available since v1.78.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";

const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const defaultInteger = new random.index.Integer("default", {
    min: 10000,
    max: 99999,
});
const defaultc5kxyC = new alicloud.cen.Instance("defaultc5kxyC", {cenInstanceName: name});
const defaultVw2U9u = new alicloud.cen.TransitRouter("defaultVw2U9u", {cenId: defaultc5kxyC.id});
const defaultProject = new alicloud.log.Project("default", {
    projectName: `${name}-${defaultInteger.result}`,
    description: "terraform-example",
});
const defaultStore = new alicloud.log.Store("default", {
    projectName: defaultProject.projectName,
    logstoreName: `${name}-${defaultInteger.result}`,
    shardCount: 3,
    autoSplit: true,
    maxSplitShardCount: 60,
    appendMeta: true,
});
const defaultFlowLog = new alicloud.cen.FlowLog("default", {
    projectName: defaultStore.projectName,
    flowLogName: `${name}-${defaultInteger.result}`,
    logFormatString: "${srcaddr}${dstaddr}${bytes}",
    cenId: defaultc5kxyC.id,
    logStoreName: defaultStore.logstoreName,
    interval: 600,
    status: "Active",
    transitRouterId: defaultVw2U9u.transitRouterId,
    description: "flowlog-resource-example-1",
});
const _default = alicloud.cen.getFlowlogsOutput({
    ids: [defaultFlowLog.id],
});
export const firstCenFlowlogId = _default.apply(_default => _default.flowlogs?.[0]?.id);
Copy
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "tf-example"
default_integer = random.index.Integer("default",
    min=10000,
    max=99999)
defaultc5kxy_c = alicloud.cen.Instance("defaultc5kxyC", cen_instance_name=name)
default_vw2_u9u = alicloud.cen.TransitRouter("defaultVw2U9u", cen_id=defaultc5kxy_c.id)
default_project = alicloud.log.Project("default",
    project_name=f"{name}-{default_integer['result']}",
    description="terraform-example")
default_store = alicloud.log.Store("default",
    project_name=default_project.project_name,
    logstore_name=f"{name}-{default_integer['result']}",
    shard_count=3,
    auto_split=True,
    max_split_shard_count=60,
    append_meta=True)
default_flow_log = alicloud.cen.FlowLog("default",
    project_name=default_store.project_name,
    flow_log_name=f"{name}-{default_integer['result']}",
    log_format_string="${srcaddr}${dstaddr}${bytes}",
    cen_id=defaultc5kxy_c.id,
    log_store_name=default_store.logstore_name,
    interval=600,
    status="Active",
    transit_router_id=default_vw2_u9u.transit_router_id,
    description="flowlog-resource-example-1")
default = alicloud.cen.get_flowlogs_output(ids=[default_flow_log.id])
pulumi.export("firstCenFlowlogId", default.flowlogs[0].id)
Copy
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/log"
	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
	"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, "")
name := "tf-example";
if param := cfg.Get("name"); param != ""{
name = param
}
defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Min: 10000,
Max: 99999,
})
if err != nil {
return err
}
defaultc5kxyC, err := cen.NewInstance(ctx, "defaultc5kxyC", &cen.InstanceArgs{
CenInstanceName: pulumi.String(name),
})
if err != nil {
return err
}
defaultVw2U9u, err := cen.NewTransitRouter(ctx, "defaultVw2U9u", &cen.TransitRouterArgs{
CenId: defaultc5kxyC.ID(),
})
if err != nil {
return err
}
defaultProject, err := log.NewProject(ctx, "default", &log.ProjectArgs{
ProjectName: pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
Description: pulumi.String("terraform-example"),
})
if err != nil {
return err
}
defaultStore, err := log.NewStore(ctx, "default", &log.StoreArgs{
ProjectName: defaultProject.ProjectName,
LogstoreName: pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
ShardCount: pulumi.Int(3),
AutoSplit: pulumi.Bool(true),
MaxSplitShardCount: pulumi.Int(60),
AppendMeta: pulumi.Bool(true),
})
if err != nil {
return err
}
defaultFlowLog, err := cen.NewFlowLog(ctx, "default", &cen.FlowLogArgs{
ProjectName: defaultStore.ProjectName,
FlowLogName: pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
LogFormatString: pulumi.String("${srcaddr}${dstaddr}${bytes}"),
CenId: defaultc5kxyC.ID(),
LogStoreName: defaultStore.LogstoreName,
Interval: pulumi.Int(600),
Status: pulumi.String("Active"),
TransitRouterId: defaultVw2U9u.TransitRouterId,
Description: pulumi.String("flowlog-resource-example-1"),
})
if err != nil {
return err
}
_default := cen.GetFlowlogsOutput(ctx, cen.GetFlowlogsOutputArgs{
Ids: pulumi.StringArray{
defaultFlowLog.ID(),
},
}, nil);
ctx.Export("firstCenFlowlogId", _default.ApplyT(func(_default cen.GetFlowlogsResult) (*string, error) {
return &default.Flowlogs[0].Id, nil
}).(pulumi.StringPtrOutput))
return nil
})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var name = config.Get("name") ?? "tf-example";
    var defaultInteger = new Random.Index.Integer("default", new()
    {
        Min = 10000,
        Max = 99999,
    });

    var defaultc5kxyC = new AliCloud.Cen.Instance("defaultc5kxyC", new()
    {
        CenInstanceName = name,
    });

    var defaultVw2U9u = new AliCloud.Cen.TransitRouter("defaultVw2U9u", new()
    {
        CenId = defaultc5kxyC.Id,
    });

    var defaultProject = new AliCloud.Log.Project("default", new()
    {
        ProjectName = $"{name}-{defaultInteger.Result}",
        Description = "terraform-example",
    });

    var defaultStore = new AliCloud.Log.Store("default", new()
    {
        ProjectName = defaultProject.ProjectName,
        LogstoreName = $"{name}-{defaultInteger.Result}",
        ShardCount = 3,
        AutoSplit = true,
        MaxSplitShardCount = 60,
        AppendMeta = true,
    });

    var defaultFlowLog = new AliCloud.Cen.FlowLog("default", new()
    {
        ProjectName = defaultStore.ProjectName,
        FlowLogName = $"{name}-{defaultInteger.Result}",
        LogFormatString = "${srcaddr}${dstaddr}${bytes}",
        CenId = defaultc5kxyC.Id,
        LogStoreName = defaultStore.LogstoreName,
        Interval = 600,
        Status = "Active",
        TransitRouterId = defaultVw2U9u.TransitRouterId,
        Description = "flowlog-resource-example-1",
    });

    var @default = AliCloud.Cen.GetFlowlogs.Invoke(new()
    {
        Ids = new[]
        {
            defaultFlowLog.Id,
        },
    });

    return new Dictionary<string, object?>
    {
        ["firstCenFlowlogId"] = @default.Apply(@default => @default.Apply(getFlowlogsResult => getFlowlogsResult.Flowlogs[0]?.Id)),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.cen.Instance;
import com.pulumi.alicloud.cen.InstanceArgs;
import com.pulumi.alicloud.cen.TransitRouter;
import com.pulumi.alicloud.cen.TransitRouterArgs;
import com.pulumi.alicloud.log.Project;
import com.pulumi.alicloud.log.ProjectArgs;
import com.pulumi.alicloud.log.Store;
import com.pulumi.alicloud.log.StoreArgs;
import com.pulumi.alicloud.cen.FlowLog;
import com.pulumi.alicloud.cen.FlowLogArgs;
import com.pulumi.alicloud.cen.CenFunctions;
import com.pulumi.alicloud.cen.inputs.GetFlowlogsArgs;
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 name = config.get("name").orElse("tf-example");
        var defaultInteger = new Integer("defaultInteger", IntegerArgs.builder()
            .min(10000)
            .max(99999)
            .build());

        var defaultc5kxyC = new Instance("defaultc5kxyC", InstanceArgs.builder()
            .cenInstanceName(name)
            .build());

        var defaultVw2U9u = new TransitRouter("defaultVw2U9u", TransitRouterArgs.builder()
            .cenId(defaultc5kxyC.id())
            .build());

        var defaultProject = new Project("defaultProject", ProjectArgs.builder()
            .projectName(String.format("%s-%s", name,defaultInteger.result()))
            .description("terraform-example")
            .build());

        var defaultStore = new Store("defaultStore", StoreArgs.builder()
            .projectName(defaultProject.projectName())
            .logstoreName(String.format("%s-%s", name,defaultInteger.result()))
            .shardCount(3)
            .autoSplit(true)
            .maxSplitShardCount(60)
            .appendMeta(true)
            .build());

        var defaultFlowLog = new FlowLog("defaultFlowLog", FlowLogArgs.builder()
            .projectName(defaultStore.projectName())
            .flowLogName(String.format("%s-%s", name,defaultInteger.result()))
            .logFormatString("${srcaddr}${dstaddr}${bytes}")
            .cenId(defaultc5kxyC.id())
            .logStoreName(defaultStore.logstoreName())
            .interval("600")
            .status("Active")
            .transitRouterId(defaultVw2U9u.transitRouterId())
            .description("flowlog-resource-example-1")
            .build());

        final var default = CenFunctions.getFlowlogs(GetFlowlogsArgs.builder()
            .ids(defaultFlowLog.id())
            .build());

        ctx.export("firstCenFlowlogId", default_.applyValue(default_ -> default_.flowlogs()[0].id()));
    }
}
Copy
configuration:
  name:
    type: string
    default: tf-example
resources:
  defaultInteger:
    type: random:integer
    name: default
    properties:
      min: 10000
      max: 99999
  defaultc5kxyC:
    type: alicloud:cen:Instance
    properties:
      cenInstanceName: ${name}
  defaultVw2U9u:
    type: alicloud:cen:TransitRouter
    properties:
      cenId: ${defaultc5kxyC.id}
  defaultProject:
    type: alicloud:log:Project
    name: default
    properties:
      projectName: ${name}-${defaultInteger.result}
      description: terraform-example
  defaultStore:
    type: alicloud:log:Store
    name: default
    properties:
      projectName: ${defaultProject.projectName}
      logstoreName: ${name}-${defaultInteger.result}
      shardCount: 3
      autoSplit: true
      maxSplitShardCount: 60
      appendMeta: true
  defaultFlowLog:
    type: alicloud:cen:FlowLog
    name: default
    properties:
      projectName: ${defaultStore.projectName}
      flowLogName: ${name}-${defaultInteger.result}
      logFormatString: $${srcaddr}$${dstaddr}$${bytes}
      cenId: ${defaultc5kxyC.id}
      logStoreName: ${defaultStore.logstoreName}
      interval: '600'
      status: Active
      transitRouterId: ${defaultVw2U9u.transitRouterId}
      description: flowlog-resource-example-1
variables:
  default:
    fn::invoke:
      function: alicloud:cen:getFlowlogs
      arguments:
        ids:
          - ${defaultFlowLog.id}
outputs:
  firstCenFlowlogId: ${default.flowlogs[0].id}
Copy

Using getFlowlogs

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 getFlowlogs(args: GetFlowlogsArgs, opts?: InvokeOptions): Promise<GetFlowlogsResult>
function getFlowlogsOutput(args: GetFlowlogsOutputArgs, opts?: InvokeOptions): Output<GetFlowlogsResult>
Copy
def get_flowlogs(cen_id: Optional[str] = None,
                 description: Optional[str] = None,
                 flow_log_id: Optional[str] = None,
                 flow_log_name: Optional[str] = None,
                 flow_log_version: Optional[str] = None,
                 ids: Optional[Sequence[str]] = None,
                 interval: Optional[int] = None,
                 log_store_name: Optional[str] = None,
                 name_regex: Optional[str] = None,
                 output_file: Optional[str] = None,
                 page_number: Optional[int] = None,
                 page_size: Optional[int] = None,
                 project_name: Optional[str] = None,
                 region_id: Optional[str] = None,
                 status: Optional[str] = None,
                 transit_router_id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetFlowlogsResult
def get_flowlogs_output(cen_id: Optional[pulumi.Input[str]] = None,
                 description: Optional[pulumi.Input[str]] = None,
                 flow_log_id: Optional[pulumi.Input[str]] = None,
                 flow_log_name: Optional[pulumi.Input[str]] = None,
                 flow_log_version: Optional[pulumi.Input[str]] = None,
                 ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                 interval: Optional[pulumi.Input[int]] = None,
                 log_store_name: Optional[pulumi.Input[str]] = None,
                 name_regex: Optional[pulumi.Input[str]] = None,
                 output_file: Optional[pulumi.Input[str]] = None,
                 page_number: Optional[pulumi.Input[int]] = None,
                 page_size: Optional[pulumi.Input[int]] = None,
                 project_name: Optional[pulumi.Input[str]] = None,
                 region_id: Optional[pulumi.Input[str]] = None,
                 status: Optional[pulumi.Input[str]] = None,
                 transit_router_id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetFlowlogsResult]
Copy
func GetFlowlogs(ctx *Context, args *GetFlowlogsArgs, opts ...InvokeOption) (*GetFlowlogsResult, error)
func GetFlowlogsOutput(ctx *Context, args *GetFlowlogsOutputArgs, opts ...InvokeOption) GetFlowlogsResultOutput
Copy

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

public static class GetFlowlogs 
{
    public static Task<GetFlowlogsResult> InvokeAsync(GetFlowlogsArgs args, InvokeOptions? opts = null)
    public static Output<GetFlowlogsResult> Invoke(GetFlowlogsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetFlowlogsResult> getFlowlogs(GetFlowlogsArgs args, InvokeOptions options)
public static Output<GetFlowlogsResult> getFlowlogs(GetFlowlogsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:cen/getFlowlogs:getFlowlogs
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CenId Changes to this property will trigger replacement. string
The ID of Cen instance.
Description Changes to this property will trigger replacement. string
The description of the flowlog.
FlowLogId Changes to this property will trigger replacement. string
The ID of FlowLog.
FlowLogName Changes to this property will trigger replacement. string
The name of the flowlog.
FlowLogVersion Changes to this property will trigger replacement. string
Flowlog Version.
Ids Changes to this property will trigger replacement. List<string>
A list of Flow Log IDs.
Interval Changes to this property will trigger replacement. int
The duration of the capture window for the flow log to capture traffic. Unit: seconds. Valid values: 60 or **600 * *. Default value: **600 * *.
LogStoreName Changes to this property will trigger replacement. string
The LogStore that stores the flowlog.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Group Metric Rule name.
OutputFile Changes to this property will trigger replacement. string
File name where to save data source results (after running pulumi preview).
PageNumber Changes to this property will trigger replacement. int
Current page number.
PageSize Changes to this property will trigger replacement. int
Number of records per page.
ProjectName Changes to this property will trigger replacement. string
The Project that stores the flowlog.
RegionId Changes to this property will trigger replacement. string
Region id
Status Changes to this property will trigger replacement. string
The status of the flow log. Valid values:-Active: started.-InActive: not started.
TransitRouterId Changes to this property will trigger replacement. string
Transit Router ID
CenId Changes to this property will trigger replacement. string
The ID of Cen instance.
Description Changes to this property will trigger replacement. string
The description of the flowlog.
FlowLogId Changes to this property will trigger replacement. string
The ID of FlowLog.
FlowLogName Changes to this property will trigger replacement. string
The name of the flowlog.
FlowLogVersion Changes to this property will trigger replacement. string
Flowlog Version.
Ids Changes to this property will trigger replacement. []string
A list of Flow Log IDs.
Interval Changes to this property will trigger replacement. int
The duration of the capture window for the flow log to capture traffic. Unit: seconds. Valid values: 60 or **600 * *. Default value: **600 * *.
LogStoreName Changes to this property will trigger replacement. string
The LogStore that stores the flowlog.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Group Metric Rule name.
OutputFile Changes to this property will trigger replacement. string
File name where to save data source results (after running pulumi preview).
PageNumber Changes to this property will trigger replacement. int
Current page number.
PageSize Changes to this property will trigger replacement. int
Number of records per page.
ProjectName Changes to this property will trigger replacement. string
The Project that stores the flowlog.
RegionId Changes to this property will trigger replacement. string
Region id
Status Changes to this property will trigger replacement. string
The status of the flow log. Valid values:-Active: started.-InActive: not started.
TransitRouterId Changes to this property will trigger replacement. string
Transit Router ID
cenId Changes to this property will trigger replacement. String
The ID of Cen instance.
description Changes to this property will trigger replacement. String
The description of the flowlog.
flowLogId Changes to this property will trigger replacement. String
The ID of FlowLog.
flowLogName Changes to this property will trigger replacement. String
The name of the flowlog.
flowLogVersion Changes to this property will trigger replacement. String
Flowlog Version.
ids Changes to this property will trigger replacement. List<String>
A list of Flow Log IDs.
interval Changes to this property will trigger replacement. Integer
The duration of the capture window for the flow log to capture traffic. Unit: seconds. Valid values: 60 or **600 * *. Default value: **600 * *.
logStoreName Changes to this property will trigger replacement. String
The LogStore that stores the flowlog.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Group Metric Rule name.
outputFile Changes to this property will trigger replacement. String
File name where to save data source results (after running pulumi preview).
pageNumber Changes to this property will trigger replacement. Integer
Current page number.
pageSize Changes to this property will trigger replacement. Integer
Number of records per page.
projectName Changes to this property will trigger replacement. String
The Project that stores the flowlog.
regionId Changes to this property will trigger replacement. String
Region id
status Changes to this property will trigger replacement. String
The status of the flow log. Valid values:-Active: started.-InActive: not started.
transitRouterId Changes to this property will trigger replacement. String
Transit Router ID
cenId Changes to this property will trigger replacement. string
The ID of Cen instance.
description Changes to this property will trigger replacement. string
The description of the flowlog.
flowLogId Changes to this property will trigger replacement. string
The ID of FlowLog.
flowLogName Changes to this property will trigger replacement. string
The name of the flowlog.
flowLogVersion Changes to this property will trigger replacement. string
Flowlog Version.
ids Changes to this property will trigger replacement. string[]
A list of Flow Log IDs.
interval Changes to this property will trigger replacement. number
The duration of the capture window for the flow log to capture traffic. Unit: seconds. Valid values: 60 or **600 * *. Default value: **600 * *.
logStoreName Changes to this property will trigger replacement. string
The LogStore that stores the flowlog.
nameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Group Metric Rule name.
outputFile Changes to this property will trigger replacement. string
File name where to save data source results (after running pulumi preview).
pageNumber Changes to this property will trigger replacement. number
Current page number.
pageSize Changes to this property will trigger replacement. number
Number of records per page.
projectName Changes to this property will trigger replacement. string
The Project that stores the flowlog.
regionId Changes to this property will trigger replacement. string
Region id
status Changes to this property will trigger replacement. string
The status of the flow log. Valid values:-Active: started.-InActive: not started.
transitRouterId Changes to this property will trigger replacement. string
Transit Router ID
cen_id Changes to this property will trigger replacement. str
The ID of Cen instance.
description Changes to this property will trigger replacement. str
The description of the flowlog.
flow_log_id Changes to this property will trigger replacement. str
The ID of FlowLog.
flow_log_name Changes to this property will trigger replacement. str
The name of the flowlog.
flow_log_version Changes to this property will trigger replacement. str
Flowlog Version.
ids Changes to this property will trigger replacement. Sequence[str]
A list of Flow Log IDs.
interval Changes to this property will trigger replacement. int
The duration of the capture window for the flow log to capture traffic. Unit: seconds. Valid values: 60 or **600 * *. Default value: **600 * *.
log_store_name Changes to this property will trigger replacement. str
The LogStore that stores the flowlog.
name_regex Changes to this property will trigger replacement. str
A regex string to filter results by Group Metric Rule name.
output_file Changes to this property will trigger replacement. str
File name where to save data source results (after running pulumi preview).
page_number Changes to this property will trigger replacement. int
Current page number.
page_size Changes to this property will trigger replacement. int
Number of records per page.
project_name Changes to this property will trigger replacement. str
The Project that stores the flowlog.
region_id Changes to this property will trigger replacement. str
Region id
status Changes to this property will trigger replacement. str
The status of the flow log. Valid values:-Active: started.-InActive: not started.
transit_router_id Changes to this property will trigger replacement. str
Transit Router ID
cenId Changes to this property will trigger replacement. String
The ID of Cen instance.
description Changes to this property will trigger replacement. String
The description of the flowlog.
flowLogId Changes to this property will trigger replacement. String
The ID of FlowLog.
flowLogName Changes to this property will trigger replacement. String
The name of the flowlog.
flowLogVersion Changes to this property will trigger replacement. String
Flowlog Version.
ids Changes to this property will trigger replacement. List<String>
A list of Flow Log IDs.
interval Changes to this property will trigger replacement. Number
The duration of the capture window for the flow log to capture traffic. Unit: seconds. Valid values: 60 or **600 * *. Default value: **600 * *.
logStoreName Changes to this property will trigger replacement. String
The LogStore that stores the flowlog.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Group Metric Rule name.
outputFile Changes to this property will trigger replacement. String
File name where to save data source results (after running pulumi preview).
pageNumber Changes to this property will trigger replacement. Number
Current page number.
pageSize Changes to this property will trigger replacement. Number
Number of records per page.
projectName Changes to this property will trigger replacement. String
The Project that stores the flowlog.
regionId Changes to this property will trigger replacement. String
Region id
status Changes to this property will trigger replacement. String
The status of the flow log. Valid values:-Active: started.-InActive: not started.
transitRouterId Changes to this property will trigger replacement. String
Transit Router ID

getFlowlogs Result

The following output properties are available:

Flowlogs List<Pulumi.AliCloud.Cen.Outputs.GetFlowlogsFlowlog>
A list of Flow Log Entries. Each element contains the following attributes:
Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
A list of Flow Log IDs.
Names List<string>
A list of name of Flow Logs.
CenId string
The ID of Cen instance.
Description string
The description of the flowlog.
FlowLogId string
The ID of FlowLog.
FlowLogName string
The name of the flowlog.
FlowLogVersion string
(Available since v1.236.0) Flowlog Version.
Interval int
(Available since v1.236.0) The duration of the capture window for the flow log to capture traffic. Unit: seconds. Valid values: 60 or **600 * *. Default value: **600 * *.
LogStoreName string
The LogStore that stores the flowlog.
NameRegex string
OutputFile string
PageNumber int
PageSize int
ProjectName string
The Project that stores the flowlog.
RegionId string
(Available since v1.236.0) Region Id.
Status string
The status of the flow log. Valid values:-Active: started.-InActive: not started.
TransitRouterId string
(Available since v1.236.0) Transit Router ID.
Flowlogs []GetFlowlogsFlowlog
A list of Flow Log Entries. Each element contains the following attributes:
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
A list of Flow Log IDs.
Names []string
A list of name of Flow Logs.
CenId string
The ID of Cen instance.
Description string
The description of the flowlog.
FlowLogId string
The ID of FlowLog.
FlowLogName string
The name of the flowlog.
FlowLogVersion string
(Available since v1.236.0) Flowlog Version.
Interval int
(Available since v1.236.0) The duration of the capture window for the flow log to capture traffic. Unit: seconds. Valid values: 60 or **600 * *. Default value: **600 * *.
LogStoreName string
The LogStore that stores the flowlog.
NameRegex string
OutputFile string
PageNumber int
PageSize int
ProjectName string
The Project that stores the flowlog.
RegionId string
(Available since v1.236.0) Region Id.
Status string
The status of the flow log. Valid values:-Active: started.-InActive: not started.
TransitRouterId string
(Available since v1.236.0) Transit Router ID.
flowlogs List<GetFlowlogsFlowlog>
A list of Flow Log Entries. Each element contains the following attributes:
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of Flow Log IDs.
names List<String>
A list of name of Flow Logs.
cenId String
The ID of Cen instance.
description String
The description of the flowlog.
flowLogId String
The ID of FlowLog.
flowLogName String
The name of the flowlog.
flowLogVersion String
(Available since v1.236.0) Flowlog Version.
interval Integer
(Available since v1.236.0) The duration of the capture window for the flow log to capture traffic. Unit: seconds. Valid values: 60 or **600 * *. Default value: **600 * *.
logStoreName String
The LogStore that stores the flowlog.
nameRegex String
outputFile String
pageNumber Integer
pageSize Integer
projectName String
The Project that stores the flowlog.
regionId String
(Available since v1.236.0) Region Id.
status String
The status of the flow log. Valid values:-Active: started.-InActive: not started.
transitRouterId String
(Available since v1.236.0) Transit Router ID.
flowlogs GetFlowlogsFlowlog[]
A list of Flow Log Entries. Each element contains the following attributes:
id string
The provider-assigned unique ID for this managed resource.
ids string[]
A list of Flow Log IDs.
names string[]
A list of name of Flow Logs.
cenId string
The ID of Cen instance.
description string
The description of the flowlog.
flowLogId string
The ID of FlowLog.
flowLogName string
The name of the flowlog.
flowLogVersion string
(Available since v1.236.0) Flowlog Version.
interval number
(Available since v1.236.0) The duration of the capture window for the flow log to capture traffic. Unit: seconds. Valid values: 60 or **600 * *. Default value: **600 * *.
logStoreName string
The LogStore that stores the flowlog.
nameRegex string
outputFile string
pageNumber number
pageSize number
projectName string
The Project that stores the flowlog.
regionId string
(Available since v1.236.0) Region Id.
status string
The status of the flow log. Valid values:-Active: started.-InActive: not started.
transitRouterId string
(Available since v1.236.0) Transit Router ID.
flowlogs Sequence[GetFlowlogsFlowlog]
A list of Flow Log Entries. Each element contains the following attributes:
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
A list of Flow Log IDs.
names Sequence[str]
A list of name of Flow Logs.
cen_id str
The ID of Cen instance.
description str
The description of the flowlog.
flow_log_id str
The ID of FlowLog.
flow_log_name str
The name of the flowlog.
flow_log_version str
(Available since v1.236.0) Flowlog Version.
interval int
(Available since v1.236.0) The duration of the capture window for the flow log to capture traffic. Unit: seconds. Valid values: 60 or **600 * *. Default value: **600 * *.
log_store_name str
The LogStore that stores the flowlog.
name_regex str
output_file str
page_number int
page_size int
project_name str
The Project that stores the flowlog.
region_id str
(Available since v1.236.0) Region Id.
status str
The status of the flow log. Valid values:-Active: started.-InActive: not started.
transit_router_id str
(Available since v1.236.0) Transit Router ID.
flowlogs List<Property Map>
A list of Flow Log Entries. Each element contains the following attributes:
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of Flow Log IDs.
names List<String>
A list of name of Flow Logs.
cenId String
The ID of Cen instance.
description String
The description of the flowlog.
flowLogId String
The ID of FlowLog.
flowLogName String
The name of the flowlog.
flowLogVersion String
(Available since v1.236.0) Flowlog Version.
interval Number
(Available since v1.236.0) The duration of the capture window for the flow log to capture traffic. Unit: seconds. Valid values: 60 or **600 * *. Default value: **600 * *.
logStoreName String
The LogStore that stores the flowlog.
nameRegex String
outputFile String
pageNumber Number
pageSize Number
projectName String
The Project that stores the flowlog.
regionId String
(Available since v1.236.0) Region Id.
status String
The status of the flow log. Valid values:-Active: started.-InActive: not started.
transitRouterId String
(Available since v1.236.0) Transit Router ID.

Supporting Types

GetFlowlogsFlowlog

CenId This property is required. string
The ID of Cen instance.
CreateTime This property is required. string
The createTime of flowlog.
Description This property is required. string
The description of the flowlog.
FlowLogId This property is required. string
The ID of FlowLog.
FlowLogName This property is required. string
The name of the flowlog.
FlowLogVersion This property is required. string
Flowlog Version.
Id This property is required. string
The ID of FlowLog.
Interval This property is required. int
The duration of the capture window for the flow log to capture traffic. Unit: seconds. Valid values: 60 or **600 * *. Default value: **600 * *.
LogFormatString This property is required. string
(Available since v1.236.0) Log Format.
LogStoreName This property is required. string
The LogStore that stores the flowlog.
ProjectName This property is required. string
The Project that stores the flowlog.
RecordTotal This property is required. string
(Available since v1.236.0) Total number of records.
RegionId This property is required. string
Region id
Status This property is required. string
The status of the flow log. Valid values:-Active: started.-InActive: not started.
Tags This property is required. Dictionary<string, string>
The tag of the resource.
TransitRouterAttachmentId This property is required. string
(Available since v1.236.0) Cross-region Connection ID or VBR connection ID.> This parameter is required.
TransitRouterId This property is required. string
Transit Router ID
CenId This property is required. string
The ID of Cen instance.
CreateTime This property is required. string
The createTime of flowlog.
Description This property is required. string
The description of the flowlog.
FlowLogId This property is required. string
The ID of FlowLog.
FlowLogName This property is required. string
The name of the flowlog.
FlowLogVersion This property is required. string
Flowlog Version.
Id This property is required. string
The ID of FlowLog.
Interval This property is required. int
The duration of the capture window for the flow log to capture traffic. Unit: seconds. Valid values: 60 or **600 * *. Default value: **600 * *.
LogFormatString This property is required. string
(Available since v1.236.0) Log Format.
LogStoreName This property is required. string
The LogStore that stores the flowlog.
ProjectName This property is required. string
The Project that stores the flowlog.
RecordTotal This property is required. string
(Available since v1.236.0) Total number of records.
RegionId This property is required. string
Region id
Status This property is required. string
The status of the flow log. Valid values:-Active: started.-InActive: not started.
Tags This property is required. map[string]string
The tag of the resource.
TransitRouterAttachmentId This property is required. string
(Available since v1.236.0) Cross-region Connection ID or VBR connection ID.> This parameter is required.
TransitRouterId This property is required. string
Transit Router ID
cenId This property is required. String
The ID of Cen instance.
createTime This property is required. String
The createTime of flowlog.
description This property is required. String
The description of the flowlog.
flowLogId This property is required. String
The ID of FlowLog.
flowLogName This property is required. String
The name of the flowlog.
flowLogVersion This property is required. String
Flowlog Version.
id This property is required. String
The ID of FlowLog.
interval This property is required. Integer
The duration of the capture window for the flow log to capture traffic. Unit: seconds. Valid values: 60 or **600 * *. Default value: **600 * *.
logFormatString This property is required. String
(Available since v1.236.0) Log Format.
logStoreName This property is required. String
The LogStore that stores the flowlog.
projectName This property is required. String
The Project that stores the flowlog.
recordTotal This property is required. String
(Available since v1.236.0) Total number of records.
regionId This property is required. String
Region id
status This property is required. String
The status of the flow log. Valid values:-Active: started.-InActive: not started.
tags This property is required. Map<String,String>
The tag of the resource.
transitRouterAttachmentId This property is required. String
(Available since v1.236.0) Cross-region Connection ID or VBR connection ID.> This parameter is required.
transitRouterId This property is required. String
Transit Router ID
cenId This property is required. string
The ID of Cen instance.
createTime This property is required. string
The createTime of flowlog.
description This property is required. string
The description of the flowlog.
flowLogId This property is required. string
The ID of FlowLog.
flowLogName This property is required. string
The name of the flowlog.
flowLogVersion This property is required. string
Flowlog Version.
id This property is required. string
The ID of FlowLog.
interval This property is required. number
The duration of the capture window for the flow log to capture traffic. Unit: seconds. Valid values: 60 or **600 * *. Default value: **600 * *.
logFormatString This property is required. string
(Available since v1.236.0) Log Format.
logStoreName This property is required. string
The LogStore that stores the flowlog.
projectName This property is required. string
The Project that stores the flowlog.
recordTotal This property is required. string
(Available since v1.236.0) Total number of records.
regionId This property is required. string
Region id
status This property is required. string
The status of the flow log. Valid values:-Active: started.-InActive: not started.
tags This property is required. {[key: string]: string}
The tag of the resource.
transitRouterAttachmentId This property is required. string
(Available since v1.236.0) Cross-region Connection ID or VBR connection ID.> This parameter is required.
transitRouterId This property is required. string
Transit Router ID
cen_id This property is required. str
The ID of Cen instance.
create_time This property is required. str
The createTime of flowlog.
description This property is required. str
The description of the flowlog.
flow_log_id This property is required. str
The ID of FlowLog.
flow_log_name This property is required. str
The name of the flowlog.
flow_log_version This property is required. str
Flowlog Version.
id This property is required. str
The ID of FlowLog.
interval This property is required. int
The duration of the capture window for the flow log to capture traffic. Unit: seconds. Valid values: 60 or **600 * *. Default value: **600 * *.
log_format_string This property is required. str
(Available since v1.236.0) Log Format.
log_store_name This property is required. str
The LogStore that stores the flowlog.
project_name This property is required. str
The Project that stores the flowlog.
record_total This property is required. str
(Available since v1.236.0) Total number of records.
region_id This property is required. str
Region id
status This property is required. str
The status of the flow log. Valid values:-Active: started.-InActive: not started.
tags This property is required. Mapping[str, str]
The tag of the resource.
transit_router_attachment_id This property is required. str
(Available since v1.236.0) Cross-region Connection ID or VBR connection ID.> This parameter is required.
transit_router_id This property is required. str
Transit Router ID
cenId This property is required. String
The ID of Cen instance.
createTime This property is required. String
The createTime of flowlog.
description This property is required. String
The description of the flowlog.
flowLogId This property is required. String
The ID of FlowLog.
flowLogName This property is required. String
The name of the flowlog.
flowLogVersion This property is required. String
Flowlog Version.
id This property is required. String
The ID of FlowLog.
interval This property is required. Number
The duration of the capture window for the flow log to capture traffic. Unit: seconds. Valid values: 60 or **600 * *. Default value: **600 * *.
logFormatString This property is required. String
(Available since v1.236.0) Log Format.
logStoreName This property is required. String
The LogStore that stores the flowlog.
projectName This property is required. String
The Project that stores the flowlog.
recordTotal This property is required. String
(Available since v1.236.0) Total number of records.
regionId This property is required. String
Region id
status This property is required. String
The status of the flow log. Valid values:-Active: started.-InActive: not started.
tags This property is required. Map<String>
The tag of the resource.
transitRouterAttachmentId This property is required. String
(Available since v1.236.0) Cross-region Connection ID or VBR connection ID.> This parameter is required.
transitRouterId This property is required. String
Transit Router ID

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi