IpAddress

class oci.network_load_balancer.models.IpAddress(**kwargs)

Bases: object

A load balancer IP address.

Attributes

IP_VERSION_IPV4 A constant which can be used with the ip_version property of a IpAddress.
IP_VERSION_IPV6 A constant which can be used with the ip_version property of a IpAddress.
ip_address [Required] Gets the ip_address of this IpAddress.
ip_version Gets the ip_version of this IpAddress.
is_public Gets the is_public of this IpAddress.
reserved_ip Gets the reserved_ip of this IpAddress.

Methods

__init__(**kwargs) Initializes a new IpAddress object with values from keyword arguments.
IP_VERSION_IPV4 = 'IPV4'

A constant which can be used with the ip_version property of a IpAddress. This constant has a value of “IPV4”

IP_VERSION_IPV6 = 'IPV6'

A constant which can be used with the ip_version property of a IpAddress. This constant has a value of “IPV6”

__init__(**kwargs)

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

Parameters:
  • ip_address (str) – The value to assign to the ip_address property of this IpAddress.
  • is_public (bool) – The value to assign to the is_public property of this IpAddress.
  • ip_version (str) – The value to assign to the ip_version property of this IpAddress. Allowed values for this property are: “IPV4”, “IPV6”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • reserved_ip (oci.network_load_balancer.models.ReservedIP) – The value to assign to the reserved_ip property of this IpAddress.
ip_address

[Required] Gets the ip_address of this IpAddress. An IP address.

Example: 192.168.0.3

Returns:The ip_address of this IpAddress.
Return type:str
ip_version

Gets the ip_version of this IpAddress. IP version associated with this IP address.

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

Returns:The ip_version of this IpAddress.
Return type:str
is_public

Gets the is_public of this IpAddress. Whether the IP address is public or private.

If “true”, then the IP address is public and accessible from the internet.

If “false”, then the IP address is private and accessible only from within the associated virtual cloud network.

Returns:The is_public of this IpAddress.
Return type:bool
reserved_ip

Gets the reserved_ip of this IpAddress.

Returns:The reserved_ip of this IpAddress.
Return type:oci.network_load_balancer.models.ReservedIP