Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.cen.getFlowlogs
Explore with Pulumi AI
This data source provides CEN flow logs available to the user.
NOTE: Available in 1.78.0+
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const default = alicloud.cen.getFlowlogs({
ids: ["flowlog-tig1xxxxx"],
nameRegex: "^foo",
});
export const firstCenFlowlogId = defaultAlicloudCenInstances.flowlogs[0].id;
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.cen.get_flowlogs(ids=["flowlog-tig1xxxxx"],
name_regex="^foo")
pulumi.export("firstCenFlowlogId", default_alicloud_cen_instances["flowlogs"][0]["id"])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cen.GetFlowlogs(ctx, &cen.GetFlowlogsArgs{
Ids: []string{
"flowlog-tig1xxxxx",
},
NameRegex: pulumi.StringRef("^foo"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstCenFlowlogId", defaultAlicloudCenInstances.Flowlogs[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.Cen.GetFlowlogs.Invoke(new()
{
Ids = new[]
{
"flowlog-tig1xxxxx",
},
NameRegex = "^foo",
});
return new Dictionary<string, object?>
{
["firstCenFlowlogId"] = defaultAlicloudCenInstances.Flowlogs[0].Id,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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 default = CenFunctions.getFlowlogs(GetFlowlogsArgs.builder()
.ids("flowlog-tig1xxxxx")
.nameRegex("^foo")
.build());
ctx.export("firstCenFlowlogId", defaultAlicloudCenInstances.flowlogs()[0].id());
}
}
variables:
default:
fn::invoke:
Function: alicloud:cen:getFlowlogs
Arguments:
ids:
- flowlog-tig1xxxxx
nameRegex: ^foo
outputs:
firstCenFlowlogId: ${defaultAlicloudCenInstances.flowlogs[0].id}
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>
def get_flowlogs(cen_id: Optional[str] = None,
description: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
log_store_name: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
project_name: Optional[str] = None,
status: 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,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
log_store_name: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFlowlogsResult]
func GetFlowlogs(ctx *Context, args *GetFlowlogsArgs, opts ...InvokeOption) (*GetFlowlogsResult, error)
func GetFlowlogsOutput(ctx *Context, args *GetFlowlogsOutputArgs, opts ...InvokeOption) GetFlowlogsResultOutput
> 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)
}
public static CompletableFuture<GetFlowlogsResult> getFlowlogs(GetFlowlogsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:cen/getFlowlogs:getFlowlogs
arguments:
# arguments dictionary
The following arguments are supported:
- Cen
Id string - The ID of the CEN Instance.
- Description string
- The description of flowlog.
- Ids List<string>
- A list of CEN flow log IDs.
- Log
Store stringName - The name of the log store which is in the
project_name
SLS project. - Name
Regex string - A regex string to filter CEN flow logs by name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Project
Name string - The name of the SLS project.
- Status string
- The status of flowlog. Valid values: ["Active", "Inactive"]. Default to "Active".
- Cen
Id string - The ID of the CEN Instance.
- Description string
- The description of flowlog.
- Ids []string
- A list of CEN flow log IDs.
- Log
Store stringName - The name of the log store which is in the
project_name
SLS project. - Name
Regex string - A regex string to filter CEN flow logs by name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Project
Name string - The name of the SLS project.
- Status string
- The status of flowlog. Valid values: ["Active", "Inactive"]. Default to "Active".
- cen
Id String - The ID of the CEN Instance.
- description String
- The description of flowlog.
- ids List<String>
- A list of CEN flow log IDs.
- log
Store StringName - The name of the log store which is in the
project_name
SLS project. - name
Regex String - A regex string to filter CEN flow logs by name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - project
Name String - The name of the SLS project.
- status String
- The status of flowlog. Valid values: ["Active", "Inactive"]. Default to "Active".
- cen
Id string - The ID of the CEN Instance.
- description string
- The description of flowlog.
- ids string[]
- A list of CEN flow log IDs.
- log
Store stringName - The name of the log store which is in the
project_name
SLS project. - name
Regex string - A regex string to filter CEN flow logs by name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - project
Name 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 Sequence[str]
- A list of CEN flow log IDs.
- log_
store_ strname - 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 - File name where to save data source results (after running
pulumi preview
). - project_
name str - The name of the SLS project.
- status str
- The status of flowlog. Valid values: ["Active", "Inactive"]. Default to "Active".
- cen
Id String - The ID of the CEN Instance.
- description String
- The description of flowlog.
- ids List<String>
- A list of CEN flow log IDs.
- log
Store StringName - The name of the log store which is in the
project_name
SLS project. - name
Regex String - A regex string to filter CEN flow logs by name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - project
Name String - The name of the SLS project.
- status String
- The status of flowlog. Valid values: ["Active", "Inactive"]. Default to "Active".
getFlowlogs Result
The following output properties are available:
- Flowlogs
List<Pulumi.
Ali Cloud. Cen. Outputs. Get Flowlogs Flowlog> - 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.
- Cen
Id string - The ID of the CEN Instance.
- Description string
- The description of flowlog.
- Log
Store stringName - The name of the log store which is in the
project_name
SLS project. - Name
Regex string - Output
File string - Project
Name string - The name of the SLS project.
- Status string
- The status of flowlog.
- Flowlogs
[]Get
Flowlogs Flowlog - 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.
- Cen
Id string - The ID of the CEN Instance.
- Description string
- The description of flowlog.
- Log
Store stringName - The name of the log store which is in the
project_name
SLS project. - Name
Regex string - Output
File string - Project
Name string - The name of the SLS project.
- Status string
- The status of flowlog.
- flowlogs
List<Get
Flowlogs Flowlog> - 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.
- cen
Id String - The ID of the CEN Instance.
- description String
- The description of flowlog.
- log
Store StringName - The name of the log store which is in the
project_name
SLS project. - name
Regex String - output
File String - project
Name String - The name of the SLS project.
- status String
- The status of flowlog.
- flowlogs
Get
Flowlogs Flowlog[] - 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.
- cen
Id string - The ID of the CEN Instance.
- description string
- The description of flowlog.
- log
Store stringName - The name of the log store which is in the
project_name
SLS project. - name
Regex string - output
File string - project
Name string - The name of the SLS project.
- status string
- The status of flowlog.
- flowlogs
Sequence[Get
Flowlogs Flowlog] - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of CEN flow log IDs.
- names Sequence[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_ strname - 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.
- flowlogs List<Property Map>
- 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.
- cen
Id String - The ID of the CEN Instance.
- description String
- The description of flowlog.
- log
Store StringName - The name of the log store which is in the
project_name
SLS project. - name
Regex String - output
File String - project
Name String - The name of the SLS project.
- status String
- The status of flowlog.
Supporting Types
GetFlowlogsFlowlog
- Cen
Id string - The ID of the CEN Instance.
- Description string
- The description of flowlog.
- Flow
Log stringId - ID of the CEN flow log.
- Flow
Log stringName - The name of flowlog.
- Id string
- ID of the CEN flow log.
- Log
Store stringName - The name of the log store which is in the
project_name
SLS project. - Project
Name string - The name of the SLS project.
- Status string
- The status of flowlog. Valid values: ["Active", "Inactive"]. Default to "Active".
- Cen
Id string - The ID of the CEN Instance.
- Description string
- The description of flowlog.
- Flow
Log stringId - ID of the CEN flow log.
- Flow
Log stringName - The name of flowlog.
- Id string
- ID of the CEN flow log.
- Log
Store stringName - The name of the log store which is in the
project_name
SLS project. - Project
Name string - The name of the SLS project.
- Status string
- The status of flowlog. Valid values: ["Active", "Inactive"]. Default to "Active".
- cen
Id String - The ID of the CEN Instance.
- description String
- The description of flowlog.
- flow
Log StringId - ID of the CEN flow log.
- flow
Log StringName - The name of flowlog.
- id String
- ID of the CEN flow log.
- log
Store StringName - The name of the log store which is in the
project_name
SLS project. - project
Name String - The name of the SLS project.
- status String
- The status of flowlog. Valid values: ["Active", "Inactive"]. Default to "Active".
- cen
Id string - The ID of the CEN Instance.
- description string
- The description of flowlog.
- flow
Log stringId - ID of the CEN flow log.
- flow
Log stringName - The name of flowlog.
- id string
- ID of the CEN flow log.
- log
Store stringName - The name of the log store which is in the
project_name
SLS project. - project
Name 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.
- flow_
log_ strid - ID of the CEN flow log.
- flow_
log_ strname - The name of flowlog.
- id str
- ID of the CEN flow log.
- log_
store_ strname - 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".
- cen
Id String - The ID of the CEN Instance.
- description String
- The description of flowlog.
- flow
Log StringId - ID of the CEN flow log.
- flow
Log StringName - The name of flowlog.
- id String
- ID of the CEN flow log.
- log
Store StringName - The name of the log store which is in the
project_name
SLS project. - project
Name String - The name of the SLS project.
- status String
- The status of flowlog. Valid values: ["Active", "Inactive"]. Default to "Active".
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.