opentelekomcloud_er_flow_logs_v3¶
Use this data source to get the list of flow logs.
Example Usage¶
variable "instance_id" {}
variable "resource_id" {}
data "opentelekomcloud_er_flow_logs_v3" "test" {
instance_id = var.instance_id
resource_id = var.resource_id
}
Argument Reference¶
The following arguments are supported:
instance_id
- (Required, String) Specifies the ID of the ER instance to which the flow logs belong.resource_type
- (Optional, String) Specifies the type of the flow logs. The valid values are as follows:attachment
: The flow logs type are attachment.
resource_id
- (Optional, String) Specifies the ID of the attachment to which the flow logs belong.flow_log_id
- (Optional, String) Specifies the ID of the flow log.name
- (Optional, String) Specifies the name of the flow log.status
- (Optional, String) Specifies the status of the flow logs.enabled
- (Optional, String) Specifies the switch status of the flow log. The value can betrue
andfalse
.log_group_id
- (Optional, String) Specifies the ID of the log group to which the flow logs belong.log_stream_id
- (Optional, String) Specifies the ID of the log stream to which the flow logs belong.
Attribute Reference¶
In addition to all arguments above, the following attributes are exported:
id
- The data source ID.flow_logs
- The list ot the flow logs. The flow_logs structure is documented below.
id
- The ID of the flow log.name
- The name of the flow log.description
- The description of the flow log.resource_type
- The type of the flow log.resource_id
- The ID of the attachment to which the flow log belongs.log_group_id
- The ID of the log group to which the flow log belongs.log_stream_id
- The ID of the log stream to which the flow log belongs.log_store_type
- The storage type of the flow log.created_at
- The creation time of the flow log.updated_at
- The latest update time of the flow log.status
- The status of the flow log.enabled
- The switch of the flow log.region
- Region where the flow logs are located.