public class StackServiceImpl extends BaseHeatServices implements StackService
HeatStack objects. The
non-exhaustive list of methods is oriented along
http://developer.openstack.org/api-ref-orchestration-v1.html#stacksBaseOpenStackService.Invocation<R>| Constructor and Description |
|---|
StackServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Stack |
create(StackCreate newStack)
|
Stack |
create(String name,
String template,
Map<String,String> parameters,
boolean disableRollback,
Long timeoutMins)
POST /v1/{tenant_id}/stacks Creates a new StackCreate Object and returns a new Stack as sent from the
server. |
ActionResponse |
delete(String stackName,
String stackId)
Deletes the specified
Stack from the server. |
Stack |
getDetails(String stackName,
String stackId)
returns details of a
Stack. |
Stack |
getStackByName(String stackName)
returns details of a
Stack. |
List<? extends Stack> |
list()
Gets a list of currently existing
Stacks. |
List<? extends Stack> |
list(Map<String,String> filteringParams)
Gets a list of currently existing
Stack objects, filtered by parameters. |
ActionResponse |
update(String stackName,
String stackId,
StackUpdate stackUpdate)
Updates an existing Stack
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uripublic Stack create(StackCreate newStack)
StackServicecreate in interface StackServicenewStack - StackCreate object out of which stack is to be createdStack as returned from the serverpublic Stack create(String name, String template, Map<String,String> parameters, boolean disableRollback, Long timeoutMins)
StackService POST /v1/{tenant_id}/stacks StackCreate Object and returns a new Stack as sent from the
server.create in interface StackServicename - Name of Stacktemplate - Template in Json-Format or YAML formatparameters - Map of parametersdisableRollback - boolean to enable or disable rollbacktimeoutMins - timeout in minutesStack as returned from the serverpublic List<? extends Stack> list()
StackServiceStacks.list in interface StackServiceStackspublic List<? extends Stack> list(Map<String,String> filteringParams)
StackServiceStack objects, filtered by parameters.list in interface StackServicefilteringParams - The parameters used to filter the stacks returned.Stack objects.public ActionResponse delete(String stackName, String stackId)
StackServiceStack from the server.delete in interface StackServicestackName - Name of StackstackId - Id of Stackpublic Stack getDetails(String stackName, String stackId)
StackServiceStack.getDetails in interface StackServicestackName - Name of StackstackId - Id of Stackpublic ActionResponse update(String stackName, String stackId, StackUpdate stackUpdate)
StackServiceupdate in interface StackServicestackName - the stack namestackId - the specific stack identifierstackUpdate - the stack update optionspublic Stack getStackByName(String stackName)
StackServiceStack.getStackByName in interface StackServiceStackCopyright © 2017. All rights reserved.