GetFlowlogs

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

NOTE: Available in 1.78.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = Output.Create(AliCloud.Cen.GetFlowlogs.InvokeAsync(new AliCloud.Cen.GetFlowlogsArgs
        {
            Ids = 
            {
                "flowlog-tig1xxxxx",
            },
            NameRegex = "^foo",
        }));
        this.FirstCenFlowlogId = data.Alicloud_cen_instances.Default.Flowlogs[0].Id;
    }

    [Output("firstCenFlowlogId")]
    public Output<string> FirstCenFlowlogId { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default = alicloud.cen.get_flowlogs(ids=["flowlog-tig1xxxxx"],
    name_regex="^foo")
pulumi.export("firstCenFlowlogId", data["alicloud.cen.getInstances"]["default"]["flowlogs"][0]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultFlowlogs = pulumi.output(alicloud.cen.getFlowlogs({
    ids: ["flowlog-tig1xxxxx"],
    nameRegex: "^foo",
}, { async: true }));

export const firstCenFlowlogId = alicloud_cen_instances_default.flowlogs.0.id;

Using GetFlowlogs

function getFlowlogs(args: GetFlowlogsArgs, opts?: InvokeOptions): Promise<GetFlowlogsResult>
function  get_flowlogs(cen_id=None, description=None, ids=None, log_store_name=None, name_regex=None, output_file=None, project_name=None, status=None, opts=None)
func GetFlowlogs(ctx *Context, args *GetFlowlogsArgs, opts ...InvokeOption) (*GetFlowlogsResult, error)
public static class GetFlowlogs {
    public static Task<GetFlowlogsResult> InvokeAsync(GetFlowlogsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

CenId string

The ID of the CEN Instance.

Description string

The description of flowlog.

Ids List<string>

A list of CEN flow log IDs.

LogStoreName string

The name of the log store which is in the project_name SLS project.

NameRegex string

A regex string to filter CEN flow logs by name.

OutputFile string
ProjectName string

The name of the SLS project.

Status string

The status of flowlog. Valid values: [“Active”, “Inactive”]. Default to “Active”.

CenId string

The ID of the CEN Instance.

Description string

The description of flowlog.

Ids []string

A list of CEN flow log IDs.

LogStoreName string

The name of the log store which is in the project_name SLS project.

NameRegex string

A regex string to filter CEN flow logs by name.

OutputFile string
ProjectName string

The name of the SLS project.

Status string

The status of flowlog. Valid values: [“Active”, “Inactive”]. Default to “Active”.

cenId string

The ID of the CEN Instance.

description string

The description of flowlog.

ids string[]

A list of CEN flow log IDs.

logStoreName string

The name of the log store which is in the project_name SLS project.

nameRegex string

A regex string to filter CEN flow logs by name.

outputFile string
projectName string

The name of the SLS project.

status string

The status of flowlog. Valid values: [“Active”, “Inactive”]. Default to “Active”.

cen_id str

The ID of the CEN Instance.

description str

The description of flowlog.

ids List[str]

A list of CEN flow log IDs.

log_store_name str

The name of the log store which is in the project_name SLS project.

name_regex str

A regex string to filter CEN flow logs by name.

output_file str
project_name str

The name of the SLS project.

status str

The status of flowlog. Valid values: [“Active”, “Inactive”]. Default to “Active”.

GetFlowlogs Result

The following output properties are available:

Flowlogs List<Pulumi.AliCloud.Cen.Outputs.GetFlowlogsFlowlog>
Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of CEN flow log IDs.

Names List<string>

A list of CEN flow log names.

CenId string

The ID of the CEN Instance.

Description string

The description of flowlog.

LogStoreName string

The name of the log store which is in the project_name SLS project.

NameRegex string
OutputFile string
ProjectName string

The name of the SLS project.

Status string

The status of flowlog.

Flowlogs []GetFlowlogsFlowlog
Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of CEN flow log IDs.

Names []string

A list of CEN flow log names.

CenId string

The ID of the CEN Instance.

Description string

The description of flowlog.

LogStoreName string

The name of the log store which is in the project_name SLS project.

NameRegex string
OutputFile string
ProjectName string

The name of the SLS project.

Status string

The status of flowlog.

flowlogs GetFlowlogsFlowlog[]
id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of CEN flow log IDs.

names string[]

A list of CEN flow log names.

cenId string

The ID of the CEN Instance.

description string

The description of flowlog.

logStoreName string

The name of the log store which is in the project_name SLS project.

nameRegex string
outputFile string
projectName string

The name of the SLS project.

status string

The status of flowlog.

flowlogs List[GetFlowlogsFlowlog]
id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of CEN flow log IDs.

names List[str]

A list of CEN flow log names.

cen_id str

The ID of the CEN Instance.

description str

The description of flowlog.

log_store_name str

The name of the log store which is in the project_name SLS project.

name_regex str
output_file str
project_name str

The name of the SLS project.

status str

The status of flowlog.

Supporting Types

GetFlowlogsFlowlog

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

CenId string

The ID of the CEN Instance.

Description string

The description of flowlog.

FlowLogId string

ID of the CEN flow log.

FlowLogName string

The name of flowlog.

Id string

ID of the CEN flow log.

LogStoreName string

The name of the log store which is in the project_name SLS project.

ProjectName string

The name of the SLS project.

Status string

The status of flowlog. Valid values: [“Active”, “Inactive”]. Default to “Active”.

CenId string

The ID of the CEN Instance.

Description string

The description of flowlog.

FlowLogId string

ID of the CEN flow log.

FlowLogName string

The name of flowlog.

Id string

ID of the CEN flow log.

LogStoreName string

The name of the log store which is in the project_name SLS project.

ProjectName string

The name of the SLS project.

Status string

The status of flowlog. Valid values: [“Active”, “Inactive”]. Default to “Active”.

cenId string

The ID of the CEN Instance.

description string

The description of flowlog.

flowLogId string

ID of the CEN flow log.

flowLogName string

The name of flowlog.

id string

ID of the CEN flow log.

logStoreName string

The name of the log store which is in the project_name SLS project.

projectName string

The name of the SLS project.

status string

The status of flowlog. Valid values: [“Active”, “Inactive”]. Default to “Active”.

cen_id str

The ID of the CEN Instance.

description str

The description of flowlog.

flowLogId str

ID of the CEN flow log.

flow_log_name str

The name of flowlog.

id str

ID of the CEN flow log.

log_store_name str

The name of the log store which is in the project_name SLS project.

project_name str

The name of the SLS project.

status str

The status of flowlog. Valid values: [“Active”, “Inactive”]. Default to “Active”.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.