octavia_dashboard.api.rest package

Submodules

octavia_dashboard.api.rest.barbican module

API over the barbican service.

class octavia_dashboard.api.rest.barbican.SSLCertificates(**kwargs)[source]

Bases: View

API for working with SSL certificate containers.

get(request)[source]

List certificate containers.

The listing result is an object with property “items”.

url_regex = 'octavia-barbican/certificates/$'
class octavia_dashboard.api.rest.barbican.Secrets(**kwargs)[source]

Bases: View

API for working with secrets.

get(request)[source]

List secrets.

The listing result is an object with property “items”.

url_regex = 'octavia-barbican/secrets/$'

octavia_dashboard.api.rest.lbaasv2 module

API over the neutron LBaaS v2 service.

class octavia_dashboard.api.rest.lbaasv2.AvailabilityZones(**kwargs)[source]

Bases: View

API for load balancer availability zones.

get(request)[source]

List of availability zones for the current project.

The listing result is an object with property “items”.

url_regex = 'lbaas/availabilityzones/$'
class octavia_dashboard.api.rest.lbaasv2.Flavor(**kwargs)[source]

Bases: View

API for retrieving a single flavor.

delete(request, flavor_id)[source]

Delete a specific flavor.

http://localhost/api/lbaas/flavors/3971d368-ca9b-4770-929a-3adca5bf89eb

get(request, flavor_id)[source]

Get a specific flavor.

put(request, flavor_id)[source]

Edit a flavor.

url_regex = 'lbaas/flavors/(?P<flavor_id>[^/]+)/$'
class octavia_dashboard.api.rest.lbaasv2.FlavorProfile(**kwargs)[source]

Bases: View

API for retrieving a single flavor profile.

delete(request, flavor_profile_id)[source]

Delete a specific flavor profile.

http://localhost/api/lbaas/flavorprofiles/e8150eab-aefa-42cc-867e-3fb336da52bd

get(request, flavor_profile_id)[source]

Get a specific flavor profile.

put(request, flavor_profile_id)[source]

Edit a flavor profile.

url_regex = 'lbaas/flavorprofiles/(?P<flavor_profile_id>[^/]+)/$'
class octavia_dashboard.api.rest.lbaasv2.FlavorProfiles(**kwargs)[source]

Bases: View

API for load balancer flavor profiles.

get(request)[source]

List of flavor profiles for the current project.

The listing result is an object with property “items”.

post(request)[source]

Create a new flavor_profile.

url_regex = 'lbaas/flavorprofiles/$'
class octavia_dashboard.api.rest.lbaasv2.Flavors(**kwargs)[source]

Bases: View

API for load balancer flavors.

get(request)[source]

List of flavors for the current project.

The listing result is an object with property “items”.

post(request)[source]

Create a new flavor.

url_regex = 'lbaas/flavors/$'
class octavia_dashboard.api.rest.lbaasv2.HealthMonitor(**kwargs)[source]

Bases: View

API for retrieving a single health monitor.

delete(request, health_monitor_id)[source]

Delete a specific health monitor.

http://localhost/api/lbaas/healthmonitors/cc758c90-3d98-4ea1-af44-aab405c9c915

get(request, health_monitor_id)[source]

Get a specific health monitor.

put(request, health_monitor_id)[source]

Edit a health monitor.

url_regex = 'lbaas/healthmonitors/(?P<health_monitor_id>[^/]+)/$'
class octavia_dashboard.api.rest.lbaasv2.HealthMonitors(**kwargs)[source]

Bases: View

API for load balancer pool health monitors.

get(request)[source]

List of health monitors for the current project.

The listing result is an object with property “items”.

post(request)[source]

Create a new health monitor.

url_regex = 'lbaas/healthmonitors/$'
class octavia_dashboard.api.rest.lbaasv2.L7Policies(**kwargs)[source]

Bases: View

API for load balancer l7 policies.

get(request)[source]

List of l7 policies for the current project.

The listing result is an object with property “items”.

post(request)[source]

Create a new l7 policy.

Creates a new l7 policy as well as other optional resources such as l7 rules.

url_regex = 'lbaas/l7policies/$'
class octavia_dashboard.api.rest.lbaasv2.L7Policy(**kwargs)[source]

Bases: View

API for retrieving a single l7 policy.

delete(request, l7_policy_id)[source]

Delete a specific l7 policy.

http://localhost/api/lbaas/l7policies/cc758c90-3d98-4ea1-af44-aab405c9c915

get(request, l7_policy_id)[source]

Get a specific l7 policy.

If the param ‘includeChildResources’ is passed in as a truthy value, the details of all resources that exist under the l7 policy will be returned along with the l7 policy details.

http://localhost/api/lbaas/l7policies/cc758c90-3d98-4ea1-af44-aab405c9c915

put(request, l7_policy_id)[source]

Edit a l7 policy as well as any resources below it.

url_regex = 'lbaas/l7policies/(?P<l7_policy_id>[^/]+)/$'
class octavia_dashboard.api.rest.lbaasv2.L7Rule(**kwargs)[source]

Bases: View

API for retrieving a single l7 rule.

delete(request, l7_rule_id, l7_policy_id)[source]

Delete a specific l7 rule.

get(request, l7_rule_id, l7_policy_id)[source]

Get a specific l7 rule.

put(request, l7_rule_id, l7_policy_id)[source]

Edit a specific l7 rule.

url_regex = 'lbaas/l7policies/(?P<l7_policy_id>[^/]+)/l7rules/(?P<l7_rule_id>[^/]+)/$'
class octavia_dashboard.api.rest.lbaasv2.L7Rules(**kwargs)[source]

Bases: View

API for load balancer l7 rules.

get(request, l7_policy_id)[source]

List of l7 rules for the current project.

The listing result is an object with property “items”.

post(request, l7_policy_id)[source]

Create a new l7 rule.

Creates a new l7 rule as well as other optional resources such as l7 rules.

url_regex = 'lbaas/l7policies/(?P<l7_policy_id>[^/]+)/l7rules/$'
class octavia_dashboard.api.rest.lbaasv2.Listener(**kwargs)[source]

Bases: View

API for retrieving, updating, and deleting a single listener.

delete(request, listener_id)[source]

Delete a specific listener.

http://localhost/api/lbaas/listeners/cc758c90-3d98-4ea1-af44-aab405c9c915

get(request, listener_id)[source]

Get a specific listener.

If the param ‘includeChildResources’ is passed in as a truthy value, the details of all resources that exist under the listener will be returned along with the listener details.

http://localhost/api/lbaas/listeners/cc758c90-3d98-4ea1-af44-aab405c9c915

put(request, listener_id)[source]

Edit a listener as well as any resources below it.

url_regex = 'lbaas/listeners/(?P<listener_id>[^/]+)/$'
class octavia_dashboard.api.rest.lbaasv2.Listeners(**kwargs)[source]

Bases: View

API for load balancer listeners.

get(request)[source]

List of listeners for the current project.

The listing result is an object with property “items”.

post(request)[source]

Create a new listener.

Creates a new listener as well as other optional resources such as a pool, members, and health monitor.

url_regex = 'lbaas/listeners/$'
class octavia_dashboard.api.rest.lbaasv2.LoadBalancer(**kwargs)[source]

Bases: View

API for retrieving, updating, and deleting a single load balancer.

delete(request, loadbalancer_id)[source]

Delete a specific load balancer.

http://localhost/api/lbaas/loadbalancers/cc758c90-3d98-4ea1-af44-aab405c9c915

get(request, loadbalancer_id)[source]

Get a specific load balancer.

http://localhost/api/lbaas/loadbalancers/cc758c90-3d98-4ea1-af44-aab405c9c915

put(request, loadbalancer_id)[source]

Edit a load balancer.

url_regex = 'lbaas/loadbalancers/(?P<loadbalancer_id>[^/]+)/$'
class octavia_dashboard.api.rest.lbaasv2.LoadBalancers(**kwargs)[source]

Bases: View

API for load balancers.

get(request)[source]

List load balancers for current project.

The listing result is an object with property “items”.

post(request)[source]

Create a new load balancer.

Creates a new load balancer as well as other optional resources such as a listener, pool, monitor, etc.

url_regex = 'lbaas/loadbalancers/$'
class octavia_dashboard.api.rest.lbaasv2.Member(**kwargs)[source]

Bases: View

API for retrieving a single member.

delete(request, member_id, pool_id)[source]

Delete a specific member belonging to a specific pool.

get(request, member_id, pool_id)[source]

Get a specific member belonging to a specific pool.

put(request, member_id, pool_id)[source]

Edit a pool member.

url_regex = 'lbaas/pools/(?P<pool_id>[^/]+)/members/(?P<member_id>[^/]+)/$'
class octavia_dashboard.api.rest.lbaasv2.Members(**kwargs)[source]

Bases: View

API for load balancer members.

get(request, pool_id)[source]

List of members for the current project.

The listing result is an object with property “items”.

put(request, pool_id)[source]

Update the list of members for the current project.

url_regex = 'lbaas/pools/(?P<pool_id>[^/]+)/members/$'
class octavia_dashboard.api.rest.lbaasv2.Pool(**kwargs)[source]

Bases: View

API for retrieving a single pool.

delete(request, pool_id)[source]

Delete a specific pool.

http://localhost/api/lbaas/pools/cc758c90-3d98-4ea1-af44-aab405c9c915

get(request, pool_id)[source]

Get a specific pool.

If the param ‘includeChildResources’ is passed in as a truthy value, the details of all resources that exist under the pool will be returned along with the pool details.

http://localhost/api/lbaas/pools/cc758c90-3d98-4ea1-af44-aab405c9c915

put(request, pool_id)[source]

Edit a listener as well as any resources below it.

url_regex = 'lbaas/pools/(?P<pool_id>[^/]+)/$'
class octavia_dashboard.api.rest.lbaasv2.Pools(**kwargs)[source]

Bases: View

API for load balancer pools.

get(request)[source]

List of pools for the current project.

The listing result is an object with property “items”.

post(request)[source]

Create a new pool.

Creates a new pool as well as other optional resources such as members and health monitor.

url_regex = 'lbaas/pools/$'
octavia_dashboard.api.rest.lbaasv2.add_floating_ip_info(request, loadbalancers)[source]

Add floating IP address info to each load balancer.

octavia_dashboard.api.rest.lbaasv2.add_member(request, **kwargs)[source]

Add a member to a pool.

octavia_dashboard.api.rest.lbaasv2.create_flavor(request, **kwargs)[source]

Create a new flavor.

octavia_dashboard.api.rest.lbaasv2.create_flavor_profile(request, **kwargs)[source]

Create a new flavor profile.

octavia_dashboard.api.rest.lbaasv2.create_health_monitor(request, **kwargs)[source]

Create a new health monitor for a pool.

octavia_dashboard.api.rest.lbaasv2.create_l7_policy(request, **kwargs)[source]

Create a new l7 policy.

octavia_dashboard.api.rest.lbaasv2.create_l7_rule(request, **kwargs)[source]

Create a new l7 rule.

octavia_dashboard.api.rest.lbaasv2.create_listener(request, **kwargs)[source]

Create a new listener.

octavia_dashboard.api.rest.lbaasv2.create_loadbalancer(request)[source]
octavia_dashboard.api.rest.lbaasv2.create_pool(request, **kwargs)[source]

Create a new pool.

octavia_dashboard.api.rest.lbaasv2.get_members_to_add_remove(request_member_data, existing_members)[source]
octavia_dashboard.api.rest.lbaasv2.health_monitor_get_load_balancer_id(conn, health_monitor_id)[source]
octavia_dashboard.api.rest.lbaasv2.l7_policy_get_load_balancer_id(conn, l7_policy_id)[source]
octavia_dashboard.api.rest.lbaasv2.listener_get_load_balancer_id(conn, listener_id)[source]
octavia_dashboard.api.rest.lbaasv2.poll_loadbalancer_status(request, loadbalancer_id, callback, from_state='PENDING_UPDATE', to_state='ACTIVE', callback_kwargs=None)[source]

Poll for the status of the load balancer.

Polls for the status of the load balancer and calls a function when the status changes to a specified state.

Parameters:
  • request – django request object

  • loadbalancer_id – id of the load balancer to poll

  • callback – function to call when polling is complete

  • from_state – initial expected state of the load balancer

  • to_state – state to check for

  • callback_kwargs – kwargs to pass into the callback function

octavia_dashboard.api.rest.lbaasv2.pool_get_load_balancer_id(conn, pool_id)[source]
octavia_dashboard.api.rest.lbaasv2.remove_member(request, **kwargs)[source]

Remove a member from the pool.

octavia_dashboard.api.rest.lbaasv2.retry_on_conflict(conn, func, *args, retry_timeout=120, **kwargs)[source]
octavia_dashboard.api.rest.lbaasv2.update_flavor(request, **kwargs)[source]

Update a flavor.

octavia_dashboard.api.rest.lbaasv2.update_flavor_profile(request, **kwargs)[source]

Update a flavor profile.

octavia_dashboard.api.rest.lbaasv2.update_l7_policy(request, **kwargs)[source]

Update a l7 policy.

octavia_dashboard.api.rest.lbaasv2.update_l7_rule(request, **kwargs)[source]

Update a l7 rule.

octavia_dashboard.api.rest.lbaasv2.update_listener(request, **kwargs)[source]

Update a listener.

octavia_dashboard.api.rest.lbaasv2.update_loadbalancer(request, **kwargs)[source]

Update a load balancer.

octavia_dashboard.api.rest.lbaasv2.update_member_list(request, **kwargs)[source]

Update the list of members by adding or removing the necessary members.

octavia_dashboard.api.rest.lbaasv2.update_monitor(request, **kwargs)[source]

Update a health monitor.

octavia_dashboard.api.rest.lbaasv2.update_pool(request, **kwargs)[source]

Update a pool.

Module contents

This package holds the REST API that supports the Octavia dashboard Javascript code.

It is not intended to be used outside of Horizon, and makes no promises of stability or fitness for purpose outside of that scope.

It does not promise to adhere to the general OpenStack API Guidelines set out in https://wiki.openstack.org/wiki/APIChangeGuidelines.