» Data Source: oci_core_nat_gateway
This data source provides details about a specific Nat Gateway resource in Oracle Cloud Infrastructure Core service.
Gets the specified NAT gateway's information.
» Example Usage
data "oci_core_nat_gateway" "test_nat_gateway" {
#Required
nat_gateway_id = "${oci_core_nat_gateway.test_nat_gateway.id}"
}
» Argument Reference
The following arguments are supported:
-
nat_gateway_id
- (Required) The NAT gateway's OCID.
» Attributes Reference
The following attributes are exported:
-
block_traffic
- Whether the NAT gateway blocks traffic through it. The default isfalse
. Example:true
-
compartment_id
- The OCID of the compartment that contains the NAT 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. -
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 OCID of the NAT gateway. -
nat_ip
- The IP address associated with the NAT gateway. -
state
- The NAT gateway's current state. -
time_created
- The date and time the NAT gateway was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
-
vcn_id
- The OCID of the VCN the NAT gateway belongs to.