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:
- 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_nameSLS project.- Name
Regex string A regex string to filter CEN flow logs by name.
- Output
File string - 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_nameSLS project.- Name
Regex string A regex string to filter CEN flow logs by name.
- Output
File string - 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_nameSLS project.- name
Regex string A regex string to filter CEN flow logs by name.
- output
File string - 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 List[str]
A list of CEN flow log IDs.
- log_
store_ strname The name of the log store which is in the
project_nameSLS 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.
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_nameSLS 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_nameSLS 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_nameSLS 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 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_ strname The name of the log store which is in the
project_nameSLS 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.
- 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_nameSLS 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_nameSLS 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_nameSLS 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_nameSLS 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
alicloudTerraform Provider.