public interface MagnumService extends RestService
Modifier and Type | Method and Description |
---|---|
Bay |
createBay(Bay bay)
Creates a new bay
|
Baymodel |
createBaymodel(Baymodel baymodel)
Creates a new baymodel
|
Cluster |
createCluster(Cluster cluster)
Create new cluster based on cluster template
|
Clustertemplate |
createClustertemplate(Clustertemplate template)
Create new cluster template
|
Container |
createContainer(Container container)
Creates a new Container
|
Pod |
createPod(Pod pod)
Create a pod
|
ActionResponse |
deleteBay(String id)
Deletes a bay
|
ActionResponse |
deleteBaymodel(String id)
Deletes a baymodel
|
ActionResponse |
deleteCluster(String id)
Delete a cluster.
|
ActionResponse |
deleteClustertemplate(String id)
Delete a cluster template
|
ActionResponse |
deleteContainer(String uuid)
Deletes a Container
|
ActionResponse |
deletePod(String bayUuid,
String id)
Delete a pod
|
String |
execCmdInContainer(String id,
String cmd)
Execute command in a Container
|
Certificate |
getCertificate(String uuid)
Gets certificate
|
String |
getContainerLogs(String id)
Get logs of a Container
|
List<? extends Baymodel> |
listBaymodels()
Lists all Baymodels
|
List<? extends Bay> |
listBays()
Lists all Bays/clusters
|
List<? extends Cluster> |
listClusters()
List all clusters
|
List<? extends Clustertemplate> |
listClustertemplate()
List all cluster templates
|
List<? extends Container> |
listContainers()
Lists all Containers
|
List<? extends Mservice> |
listMservices()
Lists all Magnum Services: container infrastructure service status
details
|
List<? extends Pod> |
listPods(String bayUuid)
List all pods
|
Container |
pauseContainer(String id)
Pause a Container
|
Container |
rebootContainer(String id)
Reboot a Container
|
ActionResponse |
rotateCertificate(String uuid)
Rotate the CA certificate for a bay/cluster and
invalidate all user certificates.
|
Bay |
showBay(String id)
Show a bay
|
Baymodel |
showBaymodel(String id)
Gets all information of a baymodel
|
Cluster |
showCluster(String id)
Get all information of a cluster in Magnum
|
Container |
showContainer(String id)
Show a Container
|
Pod |
showPod(String bayUuid,
String id)
Show a pod
|
Certificate |
signCertificate(Carequest ca)
Generates certificate
|
Container |
startContainer(String id)
Start a Container
|
Container |
stopContainer(String id)
Stop a Container
|
Container |
unpauseContainer(String id)
Unpause a Container
|
Bay |
updateBay(String id,
String operations)
Update bay
|
Baymodel |
updateBaymodel(String id,
String operations)
Updates baymodel attributes
|
Cluster |
updateCluster(String id,
String operations)
Update information of one cluster attributes using operations
including: ``add``, ``replace`` or ``remove``.
|
Clustertemplate |
updateClustertemplate(String id,
String operations)
Update information of one cluster template attributes using operations
including: ``add``, ``replace`` or ``remove``.
|
Container |
updateContainer(String id,
String operations)
Update a container
|
Pod |
updatePod(String bayUuid,
String id,
String operations)
Update a pod
|
List<? extends Mservice> listMservices()
List<? extends Baymodel> listBaymodels()
Baymodel createBaymodel(Baymodel baymodel)
baymodel
- ActionResponse deleteBaymodel(String id)
id
- Baymodel showBaymodel(String id)
id
- Baymodel updateBaymodel(String id, String operations)
id
- operations
- ActionResponse deleteBay(String id)
id
- Bay updateBay(String id, String operations)
id
- operations
- List<? extends Container> listContainers()
Container createContainer(Container container)
baymodel
- ActionResponse deleteContainer(String uuid)
id
- String execCmdInContainer(String id, String cmd)
id
- cmd
- String getContainerLogs(String id)
id
- Container pauseContainer(String id)
id
- Container unpauseContainer(String id)
id
- Container rebootContainer(String id)
id
- Container startContainer(String id)
id
- Container stopContainer(String id)
id
- Container showContainer(String id)
id
- Container updateContainer(String id, String operations)
id
- operations
- Certificate getCertificate(String uuid)
uuid
- of a bay or clusterCertificate signCertificate(Carequest ca)
ca
- requestActionResponse rotateCertificate(String uuid)
uuid
- of a bay or clusterCluster createCluster(Cluster cluster)
cluster
- Cluster showCluster(String id)
id
- of the clusterActionResponse deleteCluster(String id)
id
- of the clusterCluster updateCluster(String id, String operations)
id
- operations
- Clustertemplate createClustertemplate(Clustertemplate template)
template
- List<? extends Clustertemplate> listClustertemplate()
ActionResponse deleteClustertemplate(String id)
id
- of the clustertemplateClustertemplate updateClustertemplate(String id, String operations)
cluster
- templateActionResponse deletePod(String bayUuid, String id)
bayUuid
- id
- Copyright © 2017. All rights reserved.