Data Source: oci_core_cross_connects
This data source provides the list of Cross Connects in Oracle Cloud Infrastructure Core service.
Lists the cross-connects in the specified compartment. You can filter the list by specifying the OCID of a cross-connect group.
Example Usage
data "oci_core_cross_connects" "test_cross_connects" {
#Required
compartment_id = var.compartment_id
#Optional
cross_connect_group_id = oci_core_cross_connect_group.test_cross_connect_group.id
display_name = var.cross_connect_display_name
state = var.cross_connect_state
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) The OCID of the compartment.cross_connect_group_id
- (Optional) The OCID of the cross-connect group.display_name
- (Optional) A filter to return only resources that match the given display name exactly.state
- (Optional) A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
Attributes Reference
The following attributes are exported:
cross_connects
- The list of cross_connects.
CrossConnect Reference
The following attributes are exported:
compartment_id
- The OCID of the compartment containing the cross-connect group.cross_connect_group_id
- The OCID of the cross-connect group this cross-connect belongs to (if any).customer_reference_name
- A reference name or identifier for the physical fiber connection that this cross-connect uses.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.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 cross-connect’s Oracle ID (OCID).location_name
- The name of the FastConnect location where this cross-connect is installed.macsec_properties
- Properties used for MACsec (if capable).encryption_cipher
- Type of encryption cipher suite to use for the MACsec connection.is_unprotected_traffic_allowed
- Indicates whether unencrypted traffic is allowed if MACsec Key Agreement protocol (MKA) fails.primary_key
- An object defining the Secrets-in-Vault OCIDs representing the MACsec key.connectivity_association_key_secret_id
- Secret OCID containing the Connectivity Association Key (CAK) of this MACsec key.connectivity_association_key_secret_version
- The secret version of theconnectivityAssociationKey
secret in Vault.connectivity_association_name_secret_id
- Secret OCID containing the Connectivity association Key Name (CKN) of this MACsec key.connectivity_association_name_secret_version
- The secret version of the connectivity association name secret in Vault.
state
- Indicates whether or not MACsec is enabled.
oci_logical_device_name
- The FastConnect device that terminates the logical connection. This device might be different than the device that terminates the physical connection.oci_physical_device_name
- The FastConnect device that terminates the physical connection.port_name
- A string identifying the meet-me room port for this cross-connect.port_speed_shape_name
- The port speed for this cross-connect. Example:10 Gbps
state
- The cross-connect’s current state.time_created
- The date and time the cross-connect was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z