Ipv6

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

Bases: object

An IPv6 is a conceptual term that refers to an IPv6 address and related properties. The IPv6 object is the API representation of an IPv6.

You can create and assign an IPv6 to any VNIC that is in an IPv6-enabled subnet in an IPv6-enabled VCN.

Note: IPv6 addressing is currently supported only in the Government Cloud.

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

LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'

A constant which can be used with the lifecycle_state property of a Ipv6. This constant has a value of "AVAILABLE"

LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'

A constant which can be used with the lifecycle_state property of a Ipv6. This constant has a value of "PROVISIONING"

LIFECYCLE_STATE_TERMINATED = 'TERMINATED'

A constant which can be used with the lifecycle_state property of a Ipv6. This constant has a value of "TERMINATED"

LIFECYCLE_STATE_TERMINATING = 'TERMINATING'

A constant which can be used with the lifecycle_state property of a Ipv6. This constant has a value of "TERMINATING"

__init__(**kwargs)

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

Parameters:
  • compartment_id (str) -- The value to assign to the compartment_id property of this Ipv6.
  • defined_tags (dict(str, dict(str, object))) -- The value to assign to the defined_tags property of this Ipv6.
  • display_name (str) -- The value to assign to the display_name property of this Ipv6.
  • freeform_tags (dict(str, str)) -- The value to assign to the freeform_tags property of this Ipv6.
  • id (str) -- The value to assign to the id property of this Ipv6.
  • ip_address (str) -- The value to assign to the ip_address property of this Ipv6.
  • is_internet_access_allowed (bool) -- The value to assign to the is_internet_access_allowed property of this Ipv6.
  • lifecycle_state (str) -- The value to assign to the lifecycle_state property of this Ipv6. Allowed values for this property are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • public_ip_address (str) -- The value to assign to the public_ip_address property of this Ipv6.
  • subnet_id (str) -- The value to assign to the subnet_id property of this Ipv6.
  • time_created (datetime) -- The value to assign to the time_created property of this Ipv6.
  • vnic_id (str) -- The value to assign to the vnic_id property of this Ipv6.
compartment_id

[Required] Gets the compartment_id of this Ipv6. The OCID of the compartment containing the IPv6. This is the same as the VNIC's compartment.

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

Gets the defined_tags of this Ipv6. 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 Ipv6.
Return type:dict(str, dict(str, object))
display_name

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

Returns:The display_name of this Ipv6.
Return type:str
freeform_tags

Gets the freeform_tags of this Ipv6. 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 Ipv6.
Return type:dict(str, str)
id

[Required] Gets the id of this Ipv6. The OCID of the IPv6.

Returns:The id of this Ipv6.
Return type:str
ip_address

[Required] Gets the ip_address of this Ipv6. The IPv6 address of the IPv6 object. The address is within the private IPv6 CIDR block of the VNIC's subnet (see the ipv6CidrBlock attribute for the Subnet object).

Example: 2001:0db8:0123:1111:abcd:ef01:2345:6789

Returns:The ip_address of this Ipv6.
Return type:str
is_internet_access_allowed

Gets the is_internet_access_allowed of this Ipv6. Whether the IPv6 can be used for internet communication. Allowed by default for an IPv6 in a public subnet. Never allowed for an IPv6 in a private subnet. If the value is true, the IPv6 uses its public IP address for internet communication.

Example: true

Returns:The is_internet_access_allowed of this Ipv6.
Return type:bool
lifecycle_state

[Required] Gets the lifecycle_state of this Ipv6. The IPv6's current state.

Allowed values for this property are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The lifecycle_state of this Ipv6.
Return type:str
public_ip_address

Gets the public_ip_address of this Ipv6. The IPv6 address to be used for internet communication. The address is within the public IPv6 CIDR block of the VNIC's subnet (see the ipv6PublicCidrBlock attribute for the Subnet object).

If your organization did NOT assign a custom IPv6 CIDR to the VCN for the private address space, Oracle provides the IPv6 CIDR and uses that same CIDR for the private and public address space. Therefore the publicIpAddress would be the same as the ipAddress.

If your organization assigned a custom IPv6 CIDR to the VCN for the private address space, the right 80 bits of the IPv6 public IP (the subnet and address bits) are the same as for the ipAddress. But the left 48 bits are from the public IPv6 CIDR that Oracle assigned to the VCN.

This is null if the IPv6 is created with isInternetAccessAllowed set to false.

Example: 2001:0db8:0123:1111:abcd:ef01:2345:6789

Returns:The public_ip_address of this Ipv6.
Return type:str
subnet_id

[Required] Gets the subnet_id of this Ipv6. The OCID of the subnet the VNIC is in.

Returns:The subnet_id of this Ipv6.
Return type:str
time_created

[Required] Gets the time_created of this Ipv6. The date and time the IPv6 was created, in the format defined by RFC3339.

Example: 2016-08-25T21:10:29.600Z

Returns:The time_created of this Ipv6.
Return type:datetime
vnic_id

[Required] Gets the vnic_id of this Ipv6. The OCID of the VNIC the IPv6 is assigned to. The VNIC and IPv6 must be in the same subnet.

Returns:The vnic_id of this Ipv6.
Return type:str