» 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 compartment (the LPG's compartment).

» Example Usage

data "oci_core_local_peering_gateways" "test_local_peering_gateways" {
    #Required
    compartment_id = "${var.compartment_id}"
    vcn_id = "${oci_core_vcn.test_vcn.id}"
}

» Argument Reference

The following arguments are supported:

» Attributes Reference

The following attributes are exported:

» 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. See peerAdvertisedCidrDetails for the individual CIDRs. The value is null if the LPG is not peered. Example: 192.168.0.0/16, or if aggregated with 172.16.0.0/24 then 128.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 is null 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]
  • peering_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 Advanced Scenario: Transit Routing.
  • 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 the LPG belongs to.