» Data Source: oci_core_vcn

This data source provides details about a specific Vcn resource in Oracle Cloud Infrastructure Core service.

Gets the specified VCN's information.

» Example Usage

data "oci_core_vcn" "test_vcn" {
    #Required
    vcn_id = "${oci_core_vcn.test_vcn.id}"
}

» Argument Reference

The following arguments are supported:

» Attributes Reference

The following attributes are exported:

  • cidr_block - The CIDR IP address block of the VCN. Example: 172.16.0.0/16
  • compartment_id - The OCID of the compartment containing the VCN.
  • default_dhcp_options_id - The OCID for the VCN's default set of DHCP options.
  • default_route_table_id - The OCID for the VCN's default route table.
  • default_security_list_id - The OCID for the VCN's default security list.
  • 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.
  • dns_label - A DNS label for the VCN, used in conjunction with the VNIC's hostname and subnet's DNS label to form a fully qualified domain name (FQDN) for each VNIC within this subnet (for example, bminstance-1.subnet123.vcn1.oraclevcn.com). Must be an alphanumeric string that begins with a letter. The value cannot be changed.

    The absence of this parameter means the Internet and VCN Resolver will not work for this VCN.

    For more information, see DNS in Your Virtual Cloud Network.

    Example: vcn1

  • 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 VCN's Oracle ID (OCID).

  • ipv6cidr_block - For an IPv6-enabled VCN, this is the IPv6 CIDR block for the VCN's private IP address space. The VCN size is always /48. If you don't provide a value when creating the VCN, Oracle provides one and uses that same CIDR for the ipv6PublicCidrBlock. If you do provide a value, Oracle provides a different CIDR for the ipv6PublicCidrBlock. Note that IPv6 addressing is currently supported only in the Government Cloud. Example: 2001:0db8:0123::/48

  • ipv6public_cidr_block - For an IPv6-enabled VCN, this is the IPv6 CIDR block for the VCN's public IP address space. The VCN size is always /48. This CIDR is always provided by Oracle. If you don't provide a custom CIDR for the ipv6CidrBlock when creating the VCN, Oracle assigns that value and also uses it for ipv6PublicCidrBlock. Oracle uses addresses from this block for the publicIpAddress attribute of an Ipv6 that has internet access allowed. Example: 2001:0db8:0123::/48

  • state - The VCN's current state.

  • time_created - The date and time the VCN was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

  • vcn_domain_name - The VCN's domain name, which consists of the VCN's DNS label, and the oraclevcn.com domain.

    For more information, see DNS in Your Virtual Cloud Network.

    Example: vcn1.oraclevcn.com