public interface TemplateService
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getTemplateAsMap(String stackNameOrId)
Retrieves the original template as Map
|
Map<String,Object> |
getTemplateAsMap(String stackName,
String stackId)
Retrieves the original template as Map
|
String |
getTemplateAsString(String stackName,
String stackId)
Retrieves the original template in original String form JSON or YAML
|
TemplateResponse |
validateTemplate(String template)
Validates the template
|
TemplateResponse |
validateTemplate(Template template)
Validates the template
|
TemplateResponse |
validateTemplateByURL(String templateURL)
Validates the template
|
TemplateResponse validateTemplate(Template template)
template
- to validate, passed as a Template
TemplateResponse validateTemplate(String template)
template
- to validate, passed as String
in JSON FormatTemplateResponse validateTemplateByURL(String templateURL)
templateURL
- the remote template via URL to validateString getTemplateAsString(String stackName, String stackId)
stackName
- the stack namestackId
- the stack identifierResponseException
- if an error occursMap<String,Object> getTemplateAsMap(String stackName, String stackId)
stackName
- the stack namestackId
- the stack identifierResponseException
- if an error occursCopyright © 2017. All rights reserved.