Data Source: oci_core_vtaps
This data source provides the list of Vtaps in Oracle Cloud Infrastructure Core service.
Lists the virtual test access points (VTAPs) in the specified compartment.
Example Usage
data "oci_core_vtaps" "test_vtaps" {
#Required
compartment_id = var.compartment_id
#Optional
display_name = var.vtap_display_name
is_vtap_enabled = var.vtap_is_vtap_enabled
source = var.vtap_source
state = var.vtap_state
target_id = oci_cloud_guard_target.test_target.id
target_ip = var.vtap_target_ip
vcn_id = oci_core_vcn.test_vcn.id
}
Argument Reference
The following arguments are supported:
compartment_id- (Required) The OCID of the compartment.display_name- (Optional) A filter to return only resources that match the given display name exactly.is_vtap_enabled- (Optional) Indicates whether to list all VTAPs or only running VTAPs.- When
FALSE, lists ALL running and stopped VTAPs. - When
TRUE, lists only running VTAPs (VTAPs where isVtapEnabled =TRUE).
- When
source- (Optional) The OCID of the VTAP source.state- (Optional) A filter to return only resources that match the given VTAP administrative lifecycle state. The state value is case-insensitive.target_id- (Optional) The OCID of the VTAP target.target_ip- (Optional) The IP address of the VTAP target.vcn_id- (Optional) The OCID of the VCN.
Attributes Reference
The following attributes are exported:
vtaps- The list of vtaps.
Vtap Reference
The following attributes are exported:
capture_filter_id- The capture filter’s Oracle ID (OCID).compartment_id- The OCID of the compartment containing theVtapresource.defined_tags- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}display_name- A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.encapsulation_protocol- Defines an encapsulation header type for the VTAP’s mirrored traffic.freeform_tags- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:{"Department": "Finance"}id- The VTAP’s Oracle ID (OCID).is_vtap_enabled- Used to start or stop aVtapresource.TRUEdirects the VTAP to start mirroring traffic.FALSE(Default) directs the VTAP to stop mirroring traffic.
lifecycle_state_details- The VTAP’s current running state.max_packet_size- The maximum size of the packets to be included in the filter.source_id- The OCID of the source point where packets are captured.source_private_endpoint_ip- The IP Address of the source private endpoint.source_private_endpoint_subnet_id- The OCID of the subnet that source private endpoint belongs to.source_type- The source type for the VTAP.state- The VTAP’s administrative lifecycle state.target_id- The OCID of the destination resource where mirrored packets are sent.target_ip- The IP address of the destination resource where mirrored packets are sent.target_type- The target type for the VTAP.time_created- The date and time the VTAP was created, in the format defined by RFC3339. Example:2020-08-25T21:10:29.600Ztraffic_mode- Used to control the priority of traffic. It is an optional field. If it not passed, the value is DEFAULTvcn_id- The OCID of the VCN containing theVtapresource.vxlan_network_identifier- The virtual extensible LAN (VXLAN) network identifier (or VXLAN segment ID) that uniquely identifies the VXLAN.