CreateVcnDetails

class oci.core.models.CreateVcnDetails(**kwargs)

Bases: object

CreateVcnDetails model.

__init__(**kwargs)

Initializes a new CreateVcnDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • cidr_block (str) -- The value to assign to the cidr_block property of this CreateVcnDetails.
  • compartment_id (str) -- The value to assign to the compartment_id property of this CreateVcnDetails.
  • ipv6_cidr_block (str) -- The value to assign to the ipv6_cidr_block property of this CreateVcnDetails.
  • defined_tags (dict(str, dict(str, object))) -- The value to assign to the defined_tags property of this CreateVcnDetails.
  • display_name (str) -- The value to assign to the display_name property of this CreateVcnDetails.
  • dns_label (str) -- The value to assign to the dns_label property of this CreateVcnDetails.
  • freeform_tags (dict(str, str)) -- The value to assign to the freeform_tags property of this CreateVcnDetails.
  • is_ipv6_enabled (bool) -- The value to assign to the is_ipv6_enabled property of this CreateVcnDetails.
cidr_block

[Required] Gets the cidr_block of this CreateVcnDetails. The CIDR IP address block of the VCN.

Example: 172.16.0.0/16

Returns:The cidr_block of this CreateVcnDetails.
Return type:str
compartment_id

[Required] Gets the compartment_id of this CreateVcnDetails. The OCID of the compartment to contain the VCN.

Returns:The compartment_id of this CreateVcnDetails.
Return type:str
defined_tags

Gets the defined_tags of this CreateVcnDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Example: {"Operations": {"CostCenter": "42"}}

Returns:The defined_tags of this CreateVcnDetails.
Return type:dict(str, dict(str, object))
display_name

Gets the display_name of this CreateVcnDetails. A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

Returns:The display_name of this CreateVcnDetails.
Return type:str
dns_label

Gets the dns_label of this CreateVcnDetails. 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). Not required to be unique, but it's a best practice to set unique DNS labels for VCNs in your tenancy. Must be an alphanumeric string that begins with a letter. The value cannot be changed.

You must set this value if you want instances to be able to use hostnames to resolve other instances in the VCN. Otherwise the Internet and VCN Resolver will not work.

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

Example: vcn1

Returns:The dns_label of this CreateVcnDetails.
Return type:str
freeform_tags

Gets the freeform_tags of this CreateVcnDetails. 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"}

Returns:The freeform_tags of this CreateVcnDetails.
Return type:dict(str, str)
ipv6_cidr_block

Gets the ipv6_cidr_block of this CreateVcnDetails. If you enable IPv6 for the VCN (see isIpv6Enabled), you may optionally provide an IPv6 /48 CIDR block from the supported ranges (see IPv6 Addresses. The addresses in this block will be considered private and cannot be accessed from the internet. The documentation refers to this as a custom CIDR for the VCN.

If you don't provide a custom CIDR for the VCN, Oracle assigns the VCN's IPv6 /48 CIDR block.

Regardless of whether you or Oracle assigns the ipv6CidrBlock, Oracle also assigns the VCN an IPv6 CIDR block for the VCN's public IP address space (see the ipv6PublicCidrBlock of the Vcn object). If you do not assign a custom CIDR, Oracle uses the same Oracle-assigned CIDR for both the private IP address space (ipv6CidrBlock in the Vcn object) and the public IP addreses space (ipv6PublicCidrBlock in the Vcn object). This means that a given VNIC might use the same IPv6 IP address for both private and public (internet) communication. You control whether an IPv6 address can be used for internet communication by using the isInternetAccessAllowed attribute in the Ipv6 object.

For important details about IPv6 addressing in a VCN, see IPv6 Addresses.

Example: 2001:0db8:0123::/48

Returns:The ipv6_cidr_block of this CreateVcnDetails.
Return type:str
is_ipv6_enabled

Gets the is_ipv6_enabled of this CreateVcnDetails. Whether IPv6 is enabled for the VCN. Default is false. You cannot change this later. For important details about IPv6 addressing in a VCN, see IPv6 Addresses.

Example: true

Returns:The is_ipv6_enabled of this CreateVcnDetails.
Return type:bool