Package org.openstack4j.api.heat
Interface StackService
-
- All Known Implementing Classes:
StackServiceImpl
public interface StackServiceThis interface defines all methods for the manipulation of stacks- Author:
- Matthias Reisser
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AdoptStackDataabandon(String stackName, String stackId)Deletes a stack but leaves its resources intact, and returns data that describes the stack and its resources.Stackadopt(AdoptStackData adoptStackData, Map<String,String> parameters, boolean disableRollback, Long timeOutMins, String template)Creates a stack from existing resources.Stackcreate(String name, String template, Map<String,String> parameters, boolean disableRollback, Long timeOutMins)POST /v1/{tenant_id}/stacks
Creates a newStackCreateObject and returns a newStackas sent from the server.Stackcreate(StackCreate newStack)POST /v1/{tenant_id}/stacksActionResponsedelete(String stackName, String stackId)Deletes the specifiedStackfrom the server.StackgetDetails(String stackName, String stackId)returns details of aStack.StackgetStackByName(String name)returns details of aStack.List<? extends Stack>list()Gets a list of currently existingStacks.List<? extends Stack>list(Map<String,String> filteringParams)Gets a list of currently existingStackobjects, filtered by parameters.ActionResponseupdate(String stackName, String stackId, StackUpdate stackUpdate)Updates an existing Stack
-
-
-
Method Detail
-
create
Stack create(StackCreate newStack)
- Parameters:
newStack-StackCreateobject out of which stack is to be created- Returns:
- new
Stackas returned from the server
-
update
ActionResponse update(String stackName, String stackId, StackUpdate stackUpdate)
Updates an existing Stack- Parameters:
stackName- the stack namestackId- the specific stack identifierstackUpdate- the stack update options- Returns:
- the action response
-
create
Stack create(String name, String template, Map<String,String> parameters, boolean disableRollback, Long timeOutMins)
POST /v1/{tenant_id}/stacks
Creates a newStackCreateObject and returns a newStackas sent from the server.- Parameters:
name- Name of Stacktemplate- Template in Json-Format or YAML formatparameters- Map of parametersdisableRollback- boolean to enable or disable rollbacktimeOutMins- timeout in minutes- Returns:
- new
Stackas returned from the server
-
list
List<? extends Stack> list()
Gets a list of currently existingStacks.- Returns:
- the list of
Stacks
-
list
List<? extends Stack> list(Map<String,String> filteringParams)
Gets a list of currently existingStackobjects, filtered by parameters.- Parameters:
filteringParams- The parameters used to filter the stacks returned.- Returns:
- the list of
Stackobjects.
-
delete
ActionResponse delete(String stackName, String stackId)
Deletes the specifiedStackfrom the server.
-
abandon
AdoptStackData abandon(String stackName, String stackId)
Deletes a stack but leaves its resources intact, and returns data that describes the stack and its resources.- Parameters:
stackName- Name ofStackstackId- Id ofStack- Returns:
adopt_stack_dataelement representing byAdoptStackData
-
adopt
Stack adopt(AdoptStackData adoptStackData, Map<String,String> parameters, boolean disableRollback, Long timeOutMins, String template)
Creates a stack from existing resources.- Parameters:
adoptStackData- StructureAdoptStackData, representing existing resourcesparameters- Map of parametersdisableRollback- Enable or disable rollbacktimeOutMins- Timeout in minutestemplate- Template in Json-Format or YAML format. It is optional, used just in case there will be new resources (not included in adoptStackData)
-
-