The magnum_ui.api.rest.magnum
Module¶
-
class
magnum_ui.api.rest.magnum.
Certificate
(**kwargs)[source] Bases:
django.views.generic.base.View
API for retrieving a single certificate
-
get
(request, *args, **kw)[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.View
API for Magnum Certificates
-
post
(request, *args, **kw)[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.View
API for retrieving a single cluster
-
get
(request, *args, **kw)[source] Get a specific cluster
-
patch
(request, *args, **kw)[source] Update a Cluster.
Returns the Cluster object on success.
-
url_regex
= ‘container_infra/clusters/(?P<cluster_id>[^/]+)$’
-
-
class
magnum_ui.api.rest.magnum.
ClusterTemplate
(**kwargs)[source] Bases:
django.views.generic.base.View
API for retrieving a single cluster template
-
get
(request, *args, **kw)[source] Get a specific cluster template
-
patch
(request, *args, **kw)[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.View
API for Magnum Cluster Templates
-
delete
(request, *args, **kw)[source] Delete one or more Cluster Templates by id.
Returns HTTP 204 (no content) on successful deletion.
-
get
(request, *args, **kw)[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.
-
post
(request, *args, **kw)[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.
Clusters
(**kwargs)[source] Bases:
django.views.generic.base.View
API for Magnum Clusters
-
delete
(request, *args, **kw)[source] Delete one or more Clusters by id.
Returns HTTP 204 (no content) on successful deletion.
-
get
(request, *args, **kw)[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.
-
post
(request, *args, **kw)[source] Create a new Cluster.
Returns the new Cluster object on success.
-
url_regex
= ‘container_infra/clusters/$’
-
-
class
magnum_ui.api.rest.magnum.
Networks
(**kwargs)[source] Bases:
django.views.generic.base.View
API for Neutron networks for Cluster Templates creation
-
get
(request, *args, **kw)[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/$’
-
-
magnum_ui.api.rest.magnum.
change_to_id
(obj)[source] Change key named ‘uuid’ to ‘id’
Magnum returns objects with a field called ‘uuid’ many of Horizons directives however expect objects to have a field called ‘id’.