Data Source: oci_core_nat_gateways

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

Lists the NAT gateways in the specified compartment. You may optionally specify a VCN OCID to filter the results by VCN.

Example Usage

data "oci_core_nat_gateways" "test_nat_gateways" {
	#Required
	compartment_id = var.compartment_id

	#Optional
	display_name = var.nat_gateway_display_name
	state = var.nat_gateway_state
	vcn_id = oci_core_vcn.test_vcn.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

NatGateway Reference

The following attributes are exported: