Data Source: oci_core_local_peering_gateways
This data source provides the list of Local Peering Gateways in Oracle Cloud Infrastructure Core service.
Lists the local peering gateways (LPGs) for the specified VCN and specified compartment. If the VCN ID is not provided, then the list includes the LPGs from all VCNs in the specified compartment.
Example Usage
data "oci_core_local_peering_gateways" "test_local_peering_gateways" {
#Required
compartment_id = var.compartment_id
#Optional
vcn_id = oci_core_vcn.test_vcn.id
}
Argument Reference
The following arguments are supported:
Attributes Reference
The following attributes are exported:
local_peering_gateways
- The list of local_peering_gateways.
LocalPeeringGateway Reference
The following attributes are exported:
compartment_id
- The OCID of the compartment containing the LPG.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 LPG’s Oracle ID (OCID).is_cross_tenancy_peering
- Whether the VCN at the other end of the peering is in a different tenancy. Example:false
peer_advertised_cidr
- The smallest aggregate CIDR that contains all the CIDR routes advertised by the VCN at the other end of the peering from this LPG. SeepeerAdvertisedCidrDetails
for the individual CIDRs. The value isnull
if the LPG is not peered. Example:192.168.0.0/16
, or if aggregated with172.16.0.0/24
then128.0.0.0/1
peer_advertised_cidr_details
- The specific ranges of IP addresses available on or via the VCN at the other end of the peering from this LPG. The value isnull
if the LPG is not peered. You can use these as destination CIDRs for route rules to route a subnet’s traffic to this LPG. Example: [192.168.0.0/16
,172.16.0.0/24
]peer_id
- The OCID of the peered LPGpeering_status
- Whether the LPG is peered with another LPG.NEW
means the LPG has not yet been peered.PENDING
means the peering is being established.REVOKED
means the LPG at the other end of the peering has been deleted.peering_status_details
- Additional information regarding the peering status, if applicable.route_table_id
- The OCID of the route table the LPG is using.For information about why you would associate a route table with an LPG, see Transit Routing: Access to Multiple VCNs in Same Region.
state
- The LPG’s current lifecycle state.time_created
- The date and time the LPG was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
vcn_id
- The OCID of the VCN that uses the LPG.