Package com.veertu.ankaMgmtSdk
Class AnkaAPI
java.lang.Object
com.veertu.ankaMgmtSdk.AnkaAPI
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheInstances
(List<AnkaVmInstance> instances) int
List
<org.json.JSONObject> getSaveImageStatus
(String reqId) listTemplateTags
(String masterVmId) listVms()
void
revertLatestTag
(String templateID) saveImage
(String instanceId, String targetVMId, String tagToPush, String description, Boolean suspend, String shutdownScript, boolean deleteLatest, String latestTag, boolean doSuspendTest) void
setConnectionKeepAliveSeconds
(int seconds) void
setMaxConnections
(int maxConnections) showInstance
(String vmId) startVM
(String templateId, String tag, String startUpScript, String groupId, int priority, String name, String externalId, int vcpu, int vram) startVM
(String templateId, String tag, String nameTemplate, String startUpScript, String groupId, int priority, String name, String externalId, int vcpu, int vram) boolean
terminateInstance
(String vmId) void
updateInstance
(String vmId, String name, String jenkinsNodeLink, String jobIdentifier)
-
Constructor Details
-
AnkaAPI
-
AnkaAPI
-
AnkaAPI
-
AnkaAPI
-
-
Method Details
-
setMaxConnections
public void setMaxConnections(int maxConnections) -
setConnectionKeepAliveSeconds
public void setConnectionKeepAliveSeconds(int seconds) -
listTemplates
- Throws:
AnkaMgmtException
-
listTemplateTags
- Throws:
AnkaMgmtException
-
getNodeGroups
- Throws:
AnkaMgmtException
-
revertLatestTag
- Throws:
AnkaMgmtException
-
getImageRequests
- Throws:
AnkaMgmtException
-
getSaveImageStatus
- Throws:
AnkaMgmtException
-
getStatus
- Throws:
AnkaMgmtException
-
startVM
public String startVM(String templateId, String tag, String nameTemplate, String startUpScript, String groupId, int priority, String name, String externalId, int vcpu, int vram) throws AnkaMgmtException - Throws:
AnkaMgmtException
-
startVM
public String startVM(String templateId, String tag, String startUpScript, String groupId, int priority, String name, String externalId, int vcpu, int vram) throws AnkaMgmtException - Throws:
AnkaMgmtException
-
terminateInstance
- Throws:
AnkaMgmtException
-
showInstance
- Throws:
AnkaMgmtException
-
listVms
- Throws:
AnkaMgmtException
-
cacheInstances
-
getCloudCapacity
- Throws:
AnkaMgmtException
-
updateInstance
public void updateInstance(String vmId, String name, String jenkinsNodeLink, String jobIdentifier) throws AnkaMgmtException - Throws:
AnkaMgmtException
-
saveImage
public String saveImage(String instanceId, String targetVMId, String tagToPush, String description, Boolean suspend, String shutdownScript, boolean deleteLatest, String latestTag, boolean doSuspendTest) throws AnkaMgmtException - Throws:
AnkaMgmtException
-