PublicIp

class oci.vn_monitoring.models.PublicIp(**kwargs)

Bases: object

A public IP is a conceptual term that refers to a public IP address and related properties. The publicIp object is the API representation of a public IP.

There are two types of public IPs: 1. Ephemeral 2. Reserved

For more information and comparison of the two types, see Public IP Addresses.

Attributes:

LIFECYCLE_STATE_ASSIGNED

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

LIFECYCLE_STATE_ASSIGNING

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

LIFECYCLE_STATE_AVAILABLE

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

LIFECYCLE_STATE_PROVISIONING

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

LIFECYCLE_STATE_TERMINATED

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

LIFECYCLE_STATE_TERMINATING

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

LIFECYCLE_STATE_UNASSIGNED

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

LIFECYCLE_STATE_UNASSIGNING

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

LIFETIME_EPHEMERAL

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

LIFETIME_RESERVED

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

SCOPE_AVAILABILITY_DOMAIN

A constant which can be used with the scope property of a PublicIp.

SCOPE_REGION

A constant which can be used with the scope property of a PublicIp.

availability_domain

Gets the availability_domain of this PublicIp.

compartment_id

Gets the compartment_id of this PublicIp.

defined_tags

Gets the defined_tags of this PublicIp.

display_name

Gets the display_name of this PublicIp.

freeform_tags

Gets the freeform_tags of this PublicIp.

id

Gets the id of this PublicIp.

ip_address

Gets the ip_address of this PublicIp.

lifecycle_state

Gets the lifecycle_state of this PublicIp.

lifetime

Gets the lifetime of this PublicIp.

private_ip_id

Gets the private_ip_id of this PublicIp.

scope

Gets the scope of this PublicIp.

time_created

Gets the time_created of this PublicIp.

Methods:

__init__(**kwargs)

Initializes a new PublicIp object with values from keyword arguments.

LIFECYCLE_STATE_ASSIGNED = 'ASSIGNED'

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

LIFECYCLE_STATE_ASSIGNING = 'ASSIGNING'

A constant which can be used with the lifecycle_state property of a PublicIp. This constant has a value of “ASSIGNING”

LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'

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

LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'

A constant which can be used with the lifecycle_state property of a PublicIp. This constant has a value of “PROVISIONING”

LIFECYCLE_STATE_TERMINATED = 'TERMINATED'

A constant which can be used with the lifecycle_state property of a PublicIp. This constant has a value of “TERMINATED”

LIFECYCLE_STATE_TERMINATING = 'TERMINATING'

A constant which can be used with the lifecycle_state property of a PublicIp. This constant has a value of “TERMINATING”

LIFECYCLE_STATE_UNASSIGNED = 'UNASSIGNED'

A constant which can be used with the lifecycle_state property of a PublicIp. This constant has a value of “UNASSIGNED”

LIFECYCLE_STATE_UNASSIGNING = 'UNASSIGNING'

A constant which can be used with the lifecycle_state property of a PublicIp. This constant has a value of “UNASSIGNING”

LIFETIME_EPHEMERAL = 'EPHEMERAL'

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

LIFETIME_RESERVED = 'RESERVED'

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

SCOPE_AVAILABILITY_DOMAIN = 'AVAILABILITY_DOMAIN'

A constant which can be used with the scope property of a PublicIp. This constant has a value of “AVAILABILITY_DOMAIN”

SCOPE_REGION = 'REGION'

A constant which can be used with the scope property of a PublicIp. This constant has a value of “REGION”

__init__(**kwargs)

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

Parameters
  • availability_domain (str) – The value to assign to the availability_domain property of this PublicIp.

  • compartment_id (str) – The value to assign to the compartment_id property of this PublicIp.

  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this PublicIp.

  • display_name (str) – The value to assign to the display_name property of this PublicIp.

  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this PublicIp.

  • id (str) – The value to assign to the id property of this PublicIp.

  • ip_address (str) – The value to assign to the ip_address property of this PublicIp.

  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this PublicIp. Allowed values for this property are: “PROVISIONING”, “AVAILABLE”, “ASSIGNING”, “ASSIGNED”, “UNASSIGNING”, “UNASSIGNED”, “TERMINATING”, “TERMINATED”

  • lifetime (str) – The value to assign to the lifetime property of this PublicIp. Allowed values for this property are: “EPHEMERAL”, “RESERVED”

  • private_ip_id (str) – The value to assign to the private_ip_id property of this PublicIp.

  • scope (str) – The value to assign to the scope property of this PublicIp. Allowed values for this property are: “REGION”, “AVAILABILITY_DOMAIN”

  • time_created (datetime) – The value to assign to the time_created property of this PublicIp.

property availability_domain

Gets the availability_domain of this PublicIp. The public IP’s availability domain. This property is set only for ephemeral public IPs (that is, when the scope of the public IP is set to AVAILABILITY_DOMAIN). The value is the availability domain of the assigned private IP.

Example: Uocm:PHX-AD-1

Returns

The availability_domain of this PublicIp.

Return type

str

property compartment_id

Gets the compartment_id of this PublicIp. The OCID of the compartment containing the public IP. For an ephemeral public IP, this is the same compartment as the private IP’s. For a reserved public IP that is currently assigned, this can be a different compartment than the assigned private IP’s.

Returns

The compartment_id of this PublicIp.

Return type

str

property defined_tags

Gets the defined_tags of this PublicIp. 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 PublicIp.

Return type

dict(str, dict(str, object))

property display_name

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

Returns

The display_name of this PublicIp.

Return type

str

property freeform_tags

Gets the freeform_tags of this PublicIp. 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 PublicIp.

Return type

dict(str, str)

property id

Gets the id of this PublicIp. The public IP’s Oracle ID (OCID).

Returns

The id of this PublicIp.

Return type

str

property ip_address

Gets the ip_address of this PublicIp. The public IP address of the publicIp object.

Example: 203.0.113.2

Returns

The ip_address of this PublicIp.

Return type

str

property lifecycle_state

Gets the lifecycle_state of this PublicIp. The public IP’s current state.

Allowed values for this property are: “PROVISIONING”, “AVAILABLE”, “ASSIGNING”, “ASSIGNED”, “UNASSIGNING”, “UNASSIGNED”, “TERMINATING”, “TERMINATED”

Returns

The lifecycle_state of this PublicIp.

Return type

str

property lifetime

Gets the lifetime of this PublicIp. Defines when the public IP is deleted and released back to Oracle’s public IP pool.

  • EPHEMERAL: The lifetime is tied to the lifetime of its assigned private IP. The

ephemeral public IP is automatically deleted when its private IP is deleted, when the VNIC is terminated, or when the instance is terminated. An ephemeral public IP must always be assigned to a private IP.

  • RESERVED: You control the public IP’s lifetime. You can delete a reserved public IP

whenever you like. It does not need to be assigned to a private IP at all times.

For more information and comparison of the two types, see Public IP Addresses.

Allowed values for this property are: “EPHEMERAL”, “RESERVED”

Returns

The lifetime of this PublicIp.

Return type

str

property private_ip_id

Gets the private_ip_id of this PublicIp. The OCID of the private IP that the public IP is currently assigned to, or in the process of being assigned to.

Returns

The private_ip_id of this PublicIp.

Return type

str

property scope

Gets the scope of this PublicIp. Whether the public IP is regional or specific to a particular availability domain.

  • REGION: The public IP exists within a region and can be assigned to a private IP

in any availability domain in the region. Reserved public IPs have scope = REGION.

  • AVAILABILITY_DOMAIN: The public IP exists within the availability domain of the private IP

it’s assigned to, which is specified by the availabilityDomain property of the public IP object. Ephemeral public IPs have scope = AVAILABILITY_DOMAIN.

Allowed values for this property are: “REGION”, “AVAILABILITY_DOMAIN”

Returns

The scope of this PublicIp.

Return type

str

property time_created

Gets the time_created of this PublicIp. The date and time the public IP was created, in the format defined by RFC3339.

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

Returns

The time_created of this PublicIp.

Return type

datetime