Ipv6¶
-
class
oci.vn_monitoring.models.Ipv6(**kwargs)¶ Bases:
objectAn 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
LIFECYCLE_STATE_AVAILABLEA constant which can be used with the lifecycle_state property of a Ipv6. LIFECYCLE_STATE_PROVISIONINGA constant which can be used with the lifecycle_state property of a Ipv6. LIFECYCLE_STATE_TERMINATEDA constant which can be used with the lifecycle_state property of a Ipv6. LIFECYCLE_STATE_TERMINATINGA constant which can be used with the lifecycle_state property of a Ipv6. compartment_id[Required] Gets the compartment_id of this Ipv6. defined_tagsGets the defined_tags of this Ipv6. display_name[Required] Gets the display_name of this Ipv6. freeform_tagsGets the freeform_tags of this Ipv6. id[Required] Gets the id of this Ipv6. ip_address[Required] Gets the ip_address of this Ipv6. is_internet_access_allowedGets the is_internet_access_allowed of this Ipv6. lifecycle_state[Required] Gets the lifecycle_state of this Ipv6. public_ip_addressGets the public_ip_address of this Ipv6. subnet_id[Required] Gets the subnet_id of this Ipv6. time_created[Required] Gets the time_created of this Ipv6. vnic_id[Required] Gets the vnic_id of this Ipv6. Methods
__init__(**kwargs)Initializes a new Ipv6 object with values from keyword arguments. -
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”
- 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
Gets the defined_tags of this Ipv6. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
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
Gets the freeform_tags of this Ipv6. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}
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 IPv6 prefix of the VNIC’s subnet (see the ipv6CidrBlock attribute for the
Subnetobject.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”
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 IPv6 prefix of the VNIC’s subnet (see the ipv6PublicCidrBlock attribute for the
Subnetobject).If your organization did NOT assign a custom IPv6 prefix to the VCN for the private address space, Oracle provides the IPv6 prefix and uses that same prefix for the private and public address space. Therefore the publicIpAddress would be the same as the ipAddress.
If your organization assigned a custom IPv6 prefix to the VCN for the address space, the right 80 bits of the IPv6 IP (the subnet and address bits) are the same as for the ipAddress. But the left 48 bits are from the IPv6 prefix 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
-