openstack.network.v2.floating_ip¶
The FloatingIP Class¶
The FloatingIP
class inherits from Resource
.
-
class
openstack.network.v2.floating_ip.
FloatingIP
(attrs=None, loaded=False)¶ Construct a Resource to interact with a service’s REST API.
The Resource class offers two class methods to construct resource objects, which are preferrable to entering through this initializer. See
Resource.new()
andResource.existing()
.Parameters: - attrs (dict) – The attributes to set when constructing this Resource.
- loaded (bool) –
True
if this Resource exists on the server,False
if it does not.
-
description
= None¶ The floating IP description.
-
fixed_ip_address
= None¶ The fixed IP address associated with the floating IP. If you intend to associate the floating IP with a fixed IP at creation time, then you must indicate the identifier of the internal port. If an internal port has multiple associated IP addresses, the service chooses the first IP unless you explicitly specify the parameter fixed_ip_address to select a specific IP.
-
floating_ip_address
= None¶ The floating IP address.
-
floating_network_id
= None¶ The ID of the network associated with the floating IP.
-
port_id
= None¶ The port ID.
-
project_id
= None¶ The ID of the project this floating IP is associated with.
-
router_id
= None¶ The ID of an associated router.
-
status
= None¶ The floating IP status. Value is
ACTIVE
orDOWN
.