magnum_ui.api.rest package¶
Submodules¶
magnum_ui.api.rest.magnum module¶
-
class
magnum_ui.api.rest.magnum.Addons(**kwargs)[source]¶ Bases:
django.views.generic.base.View-
url_regex= 'container_infra/available_addons/'¶
-
-
class
magnum_ui.api.rest.magnum.Certificate(**kwargs)[source]¶ Bases:
django.views.generic.base.ViewAPI for retrieving a single certificate
-
delete(request, cluster_id)[source]¶ Rotate a certificate from a clsuter.
Returns HTTP 204 (no content) on successful deletion.
-
get(request, cluster_id)[source]¶ Get a certificate from a cluster.
Returns the CA.pem string on success
-
url_regex= 'container_infra/certificates/(?P<cluster_id>[^/]+)$'¶
-
-
class
magnum_ui.api.rest.magnum.Certificates(**kwargs)[source]¶ Bases:
django.views.generic.base.ViewAPI for Magnum Certificates
-
post(request)[source]¶ Create a new Certificate.
Returns the new Cert.pem string from csr for a cluster on success.
-
url_regex= 'container_infra/certificates/$'¶
-
-
class
magnum_ui.api.rest.magnum.Cluster(**kwargs)[source]¶ Bases:
django.views.generic.base.ViewAPI for retrieving a single cluster
-
url_regex= 'container_infra/clusters/(?P<cluster_id>[^/]+)$'¶
-
-
class
magnum_ui.api.rest.magnum.ClusterConfig(**kwargs)[source]¶ Bases:
django.views.generic.base.ViewAPI for retrieving config for a single cluster
-
url_regex= 'container_infra/clusters/(?P<cluster_id>[^/]+)/config$'¶
-
-
class
magnum_ui.api.rest.magnum.ClusterResize(**kwargs)[source]¶ Bases:
django.views.generic.base.View-
url_regex= 'container_infra/clusters/(?P<cluster_id>[^/]+)/resize$'¶
-
-
class
magnum_ui.api.rest.magnum.ClusterTemplate(**kwargs)[source]¶ Bases:
django.views.generic.base.ViewAPI for retrieving a single cluster template
-
patch(request, template_id)[source]¶ Update a Cluster Template.
Returns the Cluster Template object on success.
-
url_regex= 'container_infra/cluster_templates/(?P<template_id>[^/]+)$'¶
-
-
class
magnum_ui.api.rest.magnum.ClusterTemplates(**kwargs)[source]¶ Bases:
django.views.generic.base.ViewAPI for Magnum Cluster Templates
-
delete(request)[source]¶ Delete one or more Cluster Templates by id.
Returns HTTP 204 (no content) on successful deletion.
-
get(request)[source]¶ Get a list of the Cluster Templates for a project.
The returned result is an object with property ‘items’ and each item under this is a Cluster Template.
If a GET query param for ‘related_to’ is specified, and the setting for template filtering is set, then Horizon will only return template groups which the given template falls into, or all if none match.
-
post(request)[source]¶ Create a new Cluster Template.
Returns the new ClusterTemplate object on success.
-
url_regex= 'container_infra/cluster_templates/$'¶
-
-
class
magnum_ui.api.rest.magnum.ClusterUpgrade(**kwargs)[source]¶ Bases:
django.views.generic.base.View-
url_regex= 'container_infra/clusters/(?P<cluster_id>[^/]+)/upgrade$'¶
-
-
class
magnum_ui.api.rest.magnum.Clusters(**kwargs)[source]¶ Bases:
django.views.generic.base.ViewAPI for Magnum Clusters
-
delete(request)[source]¶ Delete one or more Clusters by id.
Returns HTTP 204 (no content) on successful deletion.
-
get(request)[source]¶ Get a list of the Clusters for a project.
The returned result is an object with property ‘items’ and each item under this is a Cluster.
-
url_regex= 'container_infra/clusters/$'¶
-
-
class
magnum_ui.api.rest.magnum.IngressControllers(**kwargs)[source]¶ Bases:
django.views.generic.base.View-
url_regex= 'container_infra/ingress_controllers/'¶
-
-
class
magnum_ui.api.rest.magnum.Networks(**kwargs)[source]¶ Bases:
django.views.generic.base.ViewAPI for Neutron networks for Cluster Templates creation
-
get(request)[source]¶ Get a list of the Networks for a project.
Networks includes external and private. Also, each network has subnets. The returned result is an object with property ‘items’ and each item under this is a Network.
-
url_regex= 'container_infra/networks/$'¶
-
-
class
magnum_ui.api.rest.magnum.Quota(**kwargs)[source]¶ Bases:
django.views.generic.base.ViewAPI for retrieving a single Quota
-
delete(request, project_id, resource)[source]¶ Delete one Quota by id and resource.
Returns HTTP 204 (no content) on successful deletion.
-
url_regex= 'container_infra/quotas/(?P<project_id>[^/]+)/(?P<resource>[^/]+)$'¶
-
-
class
magnum_ui.api.rest.magnum.Quotas(**kwargs)[source]¶ Bases:
django.views.generic.base.ViewAPI for Magnum Quotas
-
get(request)[source]¶ Get a list of the Quotas for a project.
The returned result is an object with property ‘items’ and each item under this is a Quota.
-
url_regex= 'container_infra/quotas/$'¶
-