The openstack_dashboard.api.rest.neutron
ModuleΒΆ
API over the neutron service.
-
class
openstack_dashboard.api.rest.neutron.
DefaultQuotaSets
(**kwargs)[source] Bases:
django.views.generic.base.View
API for getting default quotas for neutron
-
get
(request, *args, **kw)[source]
-
url_regex
= 'neutron/quota-sets/defaults/$'
-
-
class
openstack_dashboard.api.rest.neutron.
Extensions
(**kwargs)[source] Bases:
django.views.generic.base.View
API for neutron extensions.
-
get
(request, *args, **kw)[source] Get a list of extensions.
The listing result is an object with property “items”. Each item is an extension.
-
url_regex
= 'neutron/extensions/$'
-
-
class
openstack_dashboard.api.rest.neutron.
Networks
(**kwargs)[source] Bases:
django.views.generic.base.View
API for Neutron Networks
http://developer.openstack.org/api-ref-networking-v2.html
-
get
(request, *args, **kw)[source] Get a list of networks for a project
The listing result is an object with property “items”. Each item is a network.
-
post
(request, *args, **kw)[source] Create a network
Parameters: - (optional) (tenant_id) – The administrative state of the network, which is up (true) or down (false).
- (optional) – The network name. A request body is optional: If you include it, it can specify this optional attribute.
- (optional) – network profile id
- (optional) – Indicates whether this network is shared across all tenants. By default, only administrative users can change this value.
- (optional) –
- Admin-only. The UUID of the tenant that
- will own the network. This tenant can be different from the tenant that makes the create network request. However, only administrative users can specify a tenant ID other than their own. You cannot change this value through authorization policies.
return: JSON representation of a Network
-
url_regex
= 'neutron/networks/$'
-
-
class
openstack_dashboard.api.rest.neutron.
Ports
(**kwargs)[source] Bases:
django.views.generic.base.View
API for Neutron Ports http://developer.openstack.org/api-ref-networking-v2.html#ports
-
get
(request, *args, **kw)[source] Get a list of ports for a network
The listing result is an object with property “items”. Each item is a subnet.
-
url_regex
= 'neutron/ports/$'
-
-
class
openstack_dashboard.api.rest.neutron.
QuotasSets
(**kwargs)[source] Bases:
django.views.generic.base.View
API for setting quotas of a given project.
-
patch
(request, *args, **kw)[source] Update a single project quota data.
The PATCH data should be an application/json object with the attributes to set to new quota values.
This method returns HTTP 204 (no content) on success.
-
url_regex
= 'neutron/quotas-sets/(?P<project_id>[0-9a-f]+)$'
-
-
class
openstack_dashboard.api.rest.neutron.
Services
(**kwargs)[source] Bases:
django.views.generic.base.View
API for Neutron agents
-
get
(request, *args, **kw)[source] Get a list of agents
-
url_regex
= 'neutron/agents/$'
-
-
class
openstack_dashboard.api.rest.neutron.
Subnets
(**kwargs)[source] Bases:
django.views.generic.base.View
API for Neutron SubNets http://developer.openstack.org/api-ref-networking-v2.html#subnets
-
get
(request, *args, **kw)[source] Get a list of subnets for a project
The listing result is an object with property “items”. Each item is a subnet.
-
post
(request, *args, **kw)[source] Create a Subnet for a given Network
Parameters: - (optional) (enable_dhcp) – The subnet name.
- network_id – The ID of the attached network.
- (optional) – The ID of the tenant who owns the network. Only administrative users can specify a tenant ID other than their own.
- (optional) – The start and end addresses for the allocation pools.
- (optional) – The gateway IP address.
- ip_version – The IP version, which is 4 or 6.
- cidr – The CIDR.
- (optional) – The ID of the subnet.
- (optional) – Set to true if DHCP is enabled and false if DHCP is disabled.
Returns: JSON representation of a Subnet
-
url_regex
= 'neutron/subnets/$'
-