» Data Source: oci_core_internet_gateways

This data source provides the list of Internet Gateways in Oracle Cloud Infrastructure Core service.

Lists the internet gateways in the specified VCN and the specified compartment.

» Example Usage

data "oci_core_internet_gateways" "test_internet_gateways" {
    #Required
    compartment_id = "${var.compartment_id}"
    vcn_id = "${oci_core_vcn.test_vcn.id}"

    #Optional
    display_name = "${var.internet_gateway_display_name}"
    state = "${var.internet_gateway_state}"
}

» 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.
  • state - (Optional) A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
  • vcn_id - (Required) The OCID of the VCN.

» Attributes Reference

The following attributes are exported:

» InternetGateway Reference

The following attributes are exported:

  • compartment_id - The OCID of the compartment containing the internet gateway.
  • 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.
  • enabled - Whether the gateway is enabled. When the gateway is disabled, traffic is not routed to/from the Internet, regardless of route rules.
  • 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 internet gateway's Oracle ID (OCID).
  • state - The internet gateway's current state.
  • time_created - The date and time the internet gateway was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
  • vcn_id - The OCID of the VCN the internet gateway belongs to.