Package org.openstack4j.api.heat
Interface TemplateService
-
- All Known Implementing Classes:
TemplateServiceImpl
public interface TemplateServiceThis Interface contains a non-exhaustive list of methods for the manipulation of Heat Templates- Author:
- Matthias Reisser
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Object>getTemplateAsMap(String stackNameOrId)Retrieves the original template as Mapwhen you know only the stack name or stack id Map<String,Object>getTemplateAsMap(String stackName, String stackId)Retrieves the original template as MapStringgetTemplateAsString(String stackName, String stackId)Retrieves the original template in original String form JSON or YAMLTemplateResponsevalidateTemplate(String template)Validates the templateTemplateResponsevalidateTemplate(Template template)Validates the templateTemplateResponsevalidateTemplateByURL(String templateURL)Validates the template
-
-
-
Method Detail
-
validateTemplate
TemplateResponse validateTemplate(Template template)
Validates the template- Parameters:
template- to validate, passed as aTemplate- Returns:
- TemplateResponse indicating valid or the error condition if not valid
-
validateTemplate
TemplateResponse validateTemplate(String template)
Validates the template- Parameters:
template- to validate, passed asStringin JSON Format- Returns:
- TemplateResponse indicating valid or the error condition if not valid
-
validateTemplateByURL
TemplateResponse validateTemplateByURL(String templateURL)
Validates the template- Parameters:
templateURL- the remote template via URL to validate- Returns:
- TemplateResponse indicating valid or the error condition if not valid
-
getTemplateAsString
String getTemplateAsString(String stackName, String stackId)
Retrieves the original template in original String form JSON or YAML- Parameters:
stackName- the stack namestackId- the stack identifier- Returns:
- the template
- Throws:
ResponseException- if an error occurs
-
getTemplateAsMap
Map<String,Object> getTemplateAsMap(String stackName, String stackId)
Retrieves the original template as Map- Parameters:
stackName- the stack namestackId- the stack identifier- Returns:
- the template
- Throws:
ResponseException- if an error occurs
-
-