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 supported for all commercial and government regions. For important details about IPv6 addressing in a VCN, see IPv6 Addresses.

Attributes:

IP_STATE_ASSIGNED

A constant which can be used with the ip_state property of a Ipv6.

IP_STATE_AVAILABLE

A constant which can be used with the ip_state property of a Ipv6.

LIFECYCLE_STATE_AVAILABLE

A constant which can be used with the lifecycle_state property of a Ipv6.

LIFECYCLE_STATE_PROVISIONING

A constant which can be used with the lifecycle_state property of a Ipv6.

LIFECYCLE_STATE_TERMINATED

A constant which can be used with the lifecycle_state property of a Ipv6.

LIFECYCLE_STATE_TERMINATING

A constant which can be used with the lifecycle_state property of a Ipv6.

LIFETIME_EPHEMERAL

A constant which can be used with the lifetime property of a Ipv6.

LIFETIME_RESERVED

A constant which can be used with the lifetime property of a Ipv6.

cidr_prefix_length

Gets the cidr_prefix_length of this Ipv6.

compartment_id

[Required] Gets the compartment_id of this Ipv6.

defined_tags

Gets the defined_tags of this Ipv6.

display_name

[Required] Gets the display_name of this Ipv6.

freeform_tags

Gets the freeform_tags of this Ipv6.

hostname

Gets the hostname of this Ipv6.

id

[Required] Gets the id of this Ipv6.

ip_address

[Required] Gets the ip_address of this Ipv6.

ip_state

Gets the ip_state of this Ipv6.

lifecycle_state

[Required] Gets the lifecycle_state of this Ipv6.

lifetime

Gets the lifetime of this Ipv6. Lifetime of the IP address. There are two types of IPs: - Ephemeral - Reserved.

route_table_id

Gets the route_table_id of this Ipv6.

subnet_id

[Required] Gets the subnet_id of this Ipv6.

system_tags

Gets the system_tags of this Ipv6.

time_created

[Required] Gets the time_created of this Ipv6.

vnic_id

Gets the vnic_id of this Ipv6.

Methods:

__init__(**kwargs)

Initializes a new Ipv6 object with values from keyword arguments.

IP_STATE_ASSIGNED = 'ASSIGNED'

A constant which can be used with the ip_state property of a Ipv6. This constant has a value of “ASSIGNED”

IP_STATE_AVAILABLE = 'AVAILABLE'

A constant which can be used with the ip_state property of a Ipv6. This constant has a value of “AVAILABLE”

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”

LIFETIME_EPHEMERAL = 'EPHEMERAL'

A constant which can be used with the lifetime property of a Ipv6. This constant has a value of “EPHEMERAL”

LIFETIME_RESERVED = 'RESERVED'

A constant which can be used with the lifetime property of a Ipv6. This constant has a value of “RESERVED”

__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.

  • cidr_prefix_length (int) – The value to assign to the cidr_prefix_length 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’.

  • subnet_id (str) – The value to assign to the subnet_id property of this Ipv6.

  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags 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.

  • ip_state (str) – The value to assign to the ip_state property of this Ipv6. Allowed values for this property are: “ASSIGNED”, “AVAILABLE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • lifetime (str) – The value to assign to the lifetime property of this Ipv6. Allowed values for this property are: “EPHEMERAL”, “RESERVED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • route_table_id (str) – The value to assign to the route_table_id property of this Ipv6.

  • hostname (str) – The value to assign to the hostname property of this Ipv6.

property cidr_prefix_length

Gets the cidr_prefix_length of this Ipv6. Length of cidr range. Optional field to specify flexible cidr.

Returns

The cidr_prefix_length of this Ipv6.

Return type

int

property 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

property 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))

property 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

property 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)

property hostname

Gets the hostname of this Ipv6. The hostname associated with the IPv6 address. Only the hostname label, not the FQDN.

Returns

The hostname of this Ipv6.

Return type

str

property id

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

Returns

The id of this Ipv6.

Return type

str

property ip_address

[Required] Gets the ip_address of this Ipv6. The IPv6 address of the IPv6 object. The address is within the IPv6 prefix 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

property ip_state

Gets the ip_state of this Ipv6. State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED, otherwise it is AVAILABLE.

Allowed values for this property are: “ASSIGNED”, “AVAILABLE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The ip_state of this Ipv6.

Return type

str

property 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

property lifetime

Gets the lifetime of this Ipv6. Lifetime of the IP address. There are two types of IPs:

  • Ephemeral

  • Reserved

Allowed values for this property are: “EPHEMERAL”, “RESERVED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The lifetime of this Ipv6.

Return type

str

property route_table_id

Gets the route_table_id of this Ipv6. The OCID of the route table the IP address or VNIC will use. For more information, see Per-resource Routing.

Returns

The route_table_id of this Ipv6.

Return type

str

property 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

property system_tags

Gets the system_tags of this Ipv6. Usage of system tag keys. These predefined keys are scoped to namespaces. Example: { “orcl-cloud”: { “free-tier-retained”: “true” } }

Returns

The system_tags of this Ipv6.

Return type

dict(str, dict(str, object))

property 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

property vnic_id

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