Data Source: oci_core_route_tables

This data source provides the list of Route Tables in Oracle Cloud Infrastructure Core service.

Lists the route tables in the specified VCN and specified compartment. If the VCN ID is not provided, then the list includes the route tables from all VCNs in the specified compartment. The response includes the default route table that automatically comes with each VCN in the specified compartment, plus any route tables you’ve created.

Example Usage

data "oci_core_route_tables" "test_route_tables" {
	#Required
	compartment_id = var.compartment_id

	#Optional
	display_name = var.route_table_display_name
	state = var.route_table_state
	vcn_id = oci_core_vcn.test_vcn.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

RouteTable Reference

The following attributes are exported: