Package org.openstack4j.api.magnum
Interface MagnumService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
MagnumServiceImpl
public interface MagnumService extends RestService
OpenStack Container Infrastructure Management service (Magnum) APIs- Author:
- Sohan Sangwan
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BaycreateBay(Bay bay)Creates a new bayBaymodelcreateBaymodel(Baymodel baymodel)Creates a new baymodelClustercreateCluster(Cluster cluster)Create new cluster based on cluster templateClustertemplatecreateClustertemplate(Clustertemplate template)Create new cluster templateContainercreateContainer(Container container)Creates a new ContainerPodcreatePod(Pod pod)Create a podActionResponsedeleteBay(String id)Deletes a bayActionResponsedeleteBaymodel(String id)Deletes a baymodelActionResponsedeleteCluster(String id)Delete a cluster.ActionResponsedeleteClustertemplate(String id)Delete a cluster templateActionResponsedeleteContainer(String uuid)Deletes a ContainerActionResponsedeletePod(String bayUuid, String id)Delete a podStringexecCmdInContainer(String id, String cmd)Execute command in a ContainerCertificategetCertificate(String uuid)Gets certificateStringgetContainerLogs(String id)Get logs of a ContainerList<? extends Baymodel>listBaymodels()Lists all BaymodelsList<? extends Bay>listBays()Lists all Bays/clustersList<? extends Cluster>listClusters()List all clustersList<? extends Clustertemplate>listClustertemplate()List all cluster templatesList<? extends Container>listContainers()Lists all ContainersList<? extends Mservice>listMservices()Lists all Magnum Services: container infrastructure service status detailsList<? extends Pod>listPods(String bayUuid)List all podsContainerpauseContainer(String id)Pause a ContainerContainerrebootContainer(String id)Reboot a ContainerActionResponserotateCertificate(String uuid)Rotate the CA certificate for a bay/cluster and invalidate all user certificates.BayshowBay(String id)Show a bayBaymodelshowBaymodel(String id)Gets all information of a baymodelClustershowCluster(String id)Get all information of a cluster in MagnumContainershowContainer(String id)Show a ContainerPodshowPod(String bayUuid, String id)Show a podCertificatesignCertificate(Carequest ca)Generates certificateContainerstartContainer(String id)Start a ContainerContainerstopContainer(String id)Stop a ContainerContainerunpauseContainer(String id)Unpause a ContainerBayupdateBay(String id, String operations)Update bayBaymodelupdateBaymodel(String id, String operations)Updates baymodel attributesClusterupdateCluster(String id, String operations)Update information of one cluster attributes using operations including: ``add``, ``replace`` or ``remove``.ClustertemplateupdateClustertemplate(String id, String operations)Update information of one cluster template attributes using operations including: ``add``, ``replace`` or ``remove``.ContainerupdateContainer(String id, String operations)Update a containerPodupdatePod(String bayUuid, String id, String operations)Update a pod
-
-
-
Method Detail
-
listMservices
List<? extends Mservice> listMservices()
Lists all Magnum Services: container infrastructure service status details- Returns:
- list of Magnum Services
-
listBaymodels
List<? extends Baymodel> listBaymodels()
Lists all Baymodels- Returns:
- list of Baymodels
-
deleteBaymodel
ActionResponse deleteBaymodel(String id)
Deletes a baymodel
-
showBaymodel
Baymodel showBaymodel(String id)
Gets all information of a baymodel- Returns:
- baymodel information
-
updateBaymodel
Baymodel updateBaymodel(String id, String operations)
Updates baymodel attributes- Returns:
- updated baymodel
-
deleteBay
ActionResponse deleteBay(String id)
Deletes a bay
-
listContainers
List<? extends Container> listContainers()
Lists all Containers- Returns:
- list of Containers
-
createContainer
Container createContainer(Container container)
Creates a new Container- Returns:
- newly created Container
-
deleteContainer
ActionResponse deleteContainer(String uuid)
Deletes a Container- Returns:
- success/failure response
-
execCmdInContainer
String execCmdInContainer(String id, String cmd)
Execute command in a Container- Returns:
- output of the command
-
unpauseContainer
Container unpauseContainer(String id)
Unpause a Container- Returns:
- paused Container
-
rebootContainer
Container rebootContainer(String id)
Reboot a Container- Returns:
- rebooted Container
-
getCertificate
Certificate getCertificate(String uuid)
Gets certificate- Parameters:
uuid- of a bay or cluster- Returns:
- certificate
-
signCertificate
Certificate signCertificate(Carequest ca)
Generates certificate- Parameters:
ca- request- Returns:
- certificate
-
rotateCertificate
ActionResponse rotateCertificate(String uuid)
Rotate the CA certificate for a bay/cluster and invalidate all user certificates.- Parameters:
uuid- of a bay or cluster- Returns:
- status
-
showCluster
Cluster showCluster(String id)
Get all information of a cluster in Magnum- Parameters:
id- of the cluster- Returns:
- cluster
-
deleteCluster
ActionResponse deleteCluster(String id)
Delete a cluster.- Parameters:
id- of the cluster- Returns:
- success status
-
updateCluster
Cluster updateCluster(String id, String operations)
Update information of one cluster attributes using operations including: ``add``, ``replace`` or ``remove``. The attributes to ``add`` and ``replace`` in the form of ``key=value`` while ``remove`` only needs the keys.- Returns:
- updated cluster
-
createClustertemplate
Clustertemplate createClustertemplate(Clustertemplate template)
Create new cluster template- Returns:
- newly created cluster template
-
listClustertemplate
List<? extends Clustertemplate> listClustertemplate()
List all cluster templates- Returns:
- list of cluster templates
-
deleteClustertemplate
ActionResponse deleteClustertemplate(String id)
Delete a cluster template- Parameters:
id- of the clustertemplate- Returns:
- status
-
updateClustertemplate
Clustertemplate updateClustertemplate(String id, String operations)
Update information of one cluster template attributes using operations including: ``add``, ``replace`` or ``remove``. The attributes to ``add`` and ``replace`` in the form of ``key=value`` while ``remove`` only needs the keys.- Parameters:
cluster- template- Returns:
- updated clustser template
-
deletePod
ActionResponse deletePod(String bayUuid, String id)
Delete a pod- Returns:
- status
-
-