The load_balancer high-level interface is available through the
load_balancer
member of a Connection
object.
The load_balancer
member will only be added if the service is detected.
Create a new load balancer from attributes
attrs (dict) – Keyword arguments which will be used to create
a LoadBalancer
,
comprised of the properties on the
LoadBalancer class.
The results of load balancer creation
Get a load balancer
load_balancer – The value can be the ID of a load balancer
or LoadBalancer
instance.
One
LoadBalancer
Get the load balancer statistics
load_balancer – The value can be the ID of a load balancer
or LoadBalancer
instance.
Retrieve a generator of load balancers
A generator of load balancer instances
Delete a load balancer
load_balancer – The load_balancer can be either the ID or a
LoadBalancer
instance
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised when
the load balancer does not exist.
When set to True
, no exception will be set when attempting to
delete a nonexistent load balancer.
cascade (bool) – If true will delete all child objects of the load balancer.
None
Find a single load balancer
name_or_id – The name or ID of a load balancer
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised
when the load balancer does not exist.
When set to True
, no exception will be set when attempting
to delete a nonexistent load balancer.
None
Update a load balancer
load_balancer – The load_balancer can be either the ID or a
LoadBalancer
instance
attrs (dict) – The attributes to update on the load balancer
represented by load_balancer
.
The updated load_balancer
Failover a load balancer
load_balancer – The value can be the ID of a load balancer
or LoadBalancer
instance.
None
Create a new listener from attributes
Delete a listener
listener – The value can be either the ID of a listener or a
Listener
instance.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the listner does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent listener.
None
Find a single listener
name_or_id – The name or ID of a listener.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the resource does not exist.
When set to True
, None will be returned when
attempting to find a nonexistent resource.
One Listener
or None
Get a single listener
Get the listener statistics
listener – The value can be the ID of a listener or a
Listener
instance.
One
ListenerStats
ResourceNotFound
when no
resource can be found.
Return a generator of listeners
query (dict) – Optional query parameters to be sent to limit the resources being returned. Valid parameters are:
A generator of listener objects
Create a new pool from attributes
Get a pool
Retrieve a generator of pools
A generator of Pool instances
Delete a pool
pool – The pool is either a pool ID or a
Pool
instance
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised when
the pool does not exist.
When set to True
, no exception will be set when attempting to
delete a nonexistent pool.
None
Find a single pool
name_or_id – The name or ID of a pool
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised
when the pool does not exist.
When set to True
, no exception will be set when attempting
to delete a nonexistent pool.
None
Create a new member from attributes
Delete a member
member – The member can be either the ID of a member or a
Member
instance.
pool – The pool can be either the ID of a pool or a
Pool
instance
that the member belongs to.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the member does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent member.
None
Find a single member
name_or_id (str) – The name or ID of a member.
pool – The pool can be either the ID of a pool or a
Pool
instance
that the member belongs to.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the resource does not exist.
When set to True
, None will be returned when
attempting to find a nonexistent resource.
One Member
or None
Get a single member
Return a generator of members
Update a member
Find a single health monitor
name_or_id – The name or ID of a health monitor
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised
when the health monitor does not exist.
When set to True
, no exception will be set when attempting
to find a nonexistent health monitor.
The
openstack.load_balancer.v2.healthmonitor.HealthMonitor
object matching the given name or id or None if nothing matches.
openstack.exceptions.DuplicateResource
if more
than one resource is found for this request.
openstack.exceptions.ResourceNotFound
if nothing
is found and ignore_missing is False
.
Create a new health monitor from attributes
attrs (dict) – Keyword arguments which will be used to create
a HealthMonitor
,
comprised of the properties on the HealthMonitor class.
The results of HealthMonitor creation
HealthMonitor
Get a health monitor
healthmonitor – The value can be the ID of a health monitor or
HealthMonitor
instance.
One health monitor
HealthMonitor
Retrieve a generator of health monitors
query (dict) – Optional query parameters to be sent to limit the resources being returned. Valid parameters are: ‘name’, ‘created_at’, ‘updated_at’, ‘delay’, ‘expected_codes’, ‘http_method’, ‘max_retries’, ‘max_retries_down’, ‘pool_id’, ‘provisioning_status’, ‘operating_status’, ‘timeout’, ‘project_id’, ‘type’, ‘url_path’, ‘is_admin_state_up’.
A generator of health monitor instances
Delete a health monitor
healthmonitor – The healthmonitor can be either the ID of the
health monitor or a
HealthMonitor
instance
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised when
the healthmonitor does not exist.
When set to True
, no exception will be set when attempting to
delete a nonexistent healthmonitor.
None
Update a health monitor
healthmonitor – The healthmonitor can be either the ID of the
health monitor or a
HealthMonitor
instance
attrs (dict) – The attributes to update on the health monitor
represented by healthmonitor
.
The updated health monitor
HealthMonitor
Create a new l7policy from attributes
Delete a l7policy
l7_policy – The value can be either the ID of a l7policy or a
L7Policy
instance.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the l7policy does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent l7policy.
None
Find a single l7policy
name_or_id – The name or ID of a l7policy.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the resource does not exist.
When set to True
, None will be returned when
attempting to find a nonexistent resource.
One L7Policy
or None
Get a single l7policy
Return a generator of l7policies
query (dict) – Optional query parameters to be sent to limit the resources being returned. Valid parameters are:
A generator of l7policy objects
Create a new l7rule from attributes
The results of l7rule creation
Delete a l7rule
l7rule – The l7rule can be either the ID of a l7rule or a
L7Rule
instance.
l7_policy – The l7_policy can be either the ID of a l7policy or
L7Policy
instance that the l7rule belongs to.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the l7rule does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent l7rule.
None
Find a single l7rule
name_or_id (str) – The name or ID of a l7rule.
l7_policy – The l7_policy can be either the ID of a l7policy or
L7Policy
instance that the l7rule belongs to.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the resource does not exist.
When set to True
, None will be returned when
attempting to find a nonexistent resource.
One L7Rule
or None
Get a single l7rule
Return a generator of l7rules
Update a l7rule
The updated l7rule
Retrieve a generator of providers
A generator of providers instances
Retrieve a generator of provider flavor capabilities
A generator of provider flavor capabilities instances
Create a new flavor profile from attributes
attrs (dict) – Keyword arguments which will be used to create a
FlavorProfile
,
comprised of the properties on the FlavorProfile class.
The results of profile creation creation
Get a flavor profile
flavor_profile – The value can be the name of a flavor profile or
FlavorProfile
instance.
One
FlavorProfile
Retrieve a generator of flavor profiles
A generator of flavor profiles instances
Delete a flavor profile
flavor_profile – The flavor_profile can be either the ID or a
FlavorProfile
instance
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised when
the flavor profile does not exist.
When set to True
, no exception will be set when attempting to
delete a nonexistent flavor profile.
None
Find a single flavor profile
name_or_id – The name or ID of a flavor profile
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised
when the flavor profile does not exist.
When set to True
, no exception will be set when attempting
to delete a nonexistent flavor profile.
None
Update a flavor profile
flavor_profile – The flavor_profile can be either the ID or a
FlavorProfile
instance
attrs (dict) – The attributes to update on the flavor profile
represented by flavor_profile
.
The updated flavor profile
Create a new flavor from attributes
Get a flavor
Retrieve a generator of flavors
A generator of flavor instances
Delete a flavor
flavor – The flavorcan be either the ID or a
Flavor
instance
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised when
the flavor does not exist.
When set to True
, no exception will be set when attempting to
delete a nonexistent flavor.
None
Find a single flavor
name_or_id – The name or ID of a flavor
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised
when the flavor does not exist.
When set to True
, no exception will be set when attempting
to delete a nonexistent flavor.
None
Return a generator of quotas
query (dict) – Optional query parameters to be sent to limit the resources being returned. Currently no query parameter is supported.
A generator of quota objects
Get a quota
Update a quota
Get a default quota
One QuotaDefault
Delete a quota (i.e. reset to the default quota)
quota – The value can be either the ID of a quota or a
Quota
instance. The ID of a quota is the same as the
project ID for the quota.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when quota does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent quota.
None
Retrieve a generator of amphorae
A generator of amphora instances
Get a amphora
Find a single amphora
amphora_id – The ID of a amphora
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised
when the amphora does not exist.
When set to True
, no exception will be set when attempting
to find a nonexistent amphora.
None
Update the configuration of an amphora agent
amphora_id – The ID of an amphora
None
Failover an amphora
amphora_id – The ID of an amphora
None
Create a new availability zone profile from attributes
attrs (dict) – Keyword arguments which will be used to create a
AvailabilityZoneProfile
comprised of the properties on the AvailabilityZoneProfile
class.
The results of profile creation
Get an availability zone profile
availability_zone_profile – The value can be the ID of an
availability_zone profile or
AvailabilityZoneProfile
instance.
Retrieve a generator of availability zone profiles
A generator of availability zone profiles instances
Delete an availability zone profile
availability_zone_profile – The availability_zone_profile can be
either the ID or a
AvailabilityZoneProfile
instance
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised when
the availability zone profile does not exist.
When set to True
, no exception will be set when attempting to
delete a nonexistent availability zone profile.
None
Find a single availability zone profile
name_or_id – The name or ID of a availability zone profile
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised
when the availability zone profile does not exist.
When set to True
, no exception will be set when attempting
to delete a nonexistent availability zone profile.
None
Update an availability zone profile
availability_zone_profile – The availability_zone_profile can be
either the ID or a
AvailabilityZoneProfile
instance
attrs (dict) – The attributes to update on the availability_zone
profile represented by availability_zone_profile
.
The updated availability zone profile
Create a new availability zone from attributes
attrs (dict) – Keyword arguments which will be used to create a
AvailabilityZone
comprised of the properties on the AvailabilityZoneclass.
The results of availability_zone creation creation
Get an availability zone
availability_zone – The value can be the ID of a
availability_zone or
AvailabilityZone
instance.
One
AvailabilityZone
Retrieve a generator of availability zones
A generator of availability zone instances
Delete an availability_zone
availability_zone – The availability_zone can be either the ID
or a
AvailabilityZone
instance
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised when
the availability zone does not exist.
When set to True
, no exception will be set when attempting to
delete a nonexistent availability zone.
None
Find a single availability zone
name_or_id – The name or ID of a availability zone
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised
when the availability zone does not exist.
When set to True
, no exception will be set when attempting
to delete a nonexistent availability zone.
None
Update an availability zone
availability_zone – The availability_zone can be either the ID
or a
AvailabilityZone
instance
attrs (dict) – The attributes to update on the availability_zone
represented by availability_zone
.
The updated availability_zone
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.