The openstack_dashboard.api.rest.network ModuleΒΆ

API for the network abstraction APIs.

class openstack_dashboard.api.rest.network.FloatingIP(**kwargs)[source]

Bases: django.views.generic.base.View

API for a single floating IP address.

patch(request, *args, **kw)[source]

Associate or disassociate a floating IP address.

Parameters:
  • address_id – The ID of the floating IP address to associate or disassociate.
  • port_id – The ID of the port to associate.
post(request, *args, **kw)[source]

Allocate a new floating IP address.

Parameters:pool_id – The ID of the floating IP address pool in which to allocate the new address.
Returns:JSON representation of the new floating IP address
url_regex = 'network/floatingip/$'
class openstack_dashboard.api.rest.network.FloatingIPPools(**kwargs)[source]

Bases: django.views.generic.base.View

API for floating IP pools.

get(request, *args, **kw)[source]

Get a list of floating IP pools.

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

Example: http://localhost/api/network/floatingippools

url_regex = 'network/floatingippools/$'
class openstack_dashboard.api.rest.network.FloatingIPs(**kwargs)[source]

Bases: django.views.generic.base.View

API for floating IP addresses.

get(request, *args, **kw)[source]

Get a list of floating IP addresses.

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

Example: http://localhost/api/network/floatingips

url_regex = 'network/floatingips/$'
class openstack_dashboard.api.rest.network.SecurityGroups(**kwargs)[source]

Bases: django.views.generic.base.View

API for Network Abstraction

Handles differences between Nova and Neutron.

get(request, *args, **kw)[source]

Get a list of security groups.

The listing result is an object with property “items”. Each item is a security group.

Example GET: http://localhost/api/network/securitygroups

url_regex = 'network/securitygroups/$'

Previous topic

The openstack_dashboard.api.rest.json_encoder Module

Next topic

The openstack_dashboard.api.rest.urls Module

Project Source

This Page