@Path(value="/template")
@Produces(value="application/json;charset=UTF-8")
@Consumes(value="application/json;charset=UTF-8")
public interface ITemplate
| Modifier and Type | Method and Description |
|---|---|
void |
delete(java.lang.String templateName) |
Template |
deletePackage(java.lang.String templateName,
java.lang.String packageName) |
Template[] |
get() |
Template |
get(java.lang.String templateName) |
AgentOption |
getAgentOption(java.lang.String templateName) |
PackageVersion[] |
getPackageVersionsForTemplate(java.lang.String templateName) |
Repo[] |
getReposForTemplate(java.lang.String templateName) |
ServiceDefaultState |
getServiceDefaultState(java.lang.String templateName,
java.lang.String serviceName) |
ServiceDefaultState[] |
getServiceDefaultStates(java.lang.String templateName) |
Service[] |
getServicesForTemplate(java.lang.String templateName) |
SimplePackageVersion[] |
getSimplePackageVersionsForTemplate(java.lang.String templateName) |
SimpleTemplate[] |
getSimpleTemplates() |
SSHKey[] |
getSSHKeysForTemplate(java.lang.String templateName) |
PackageDiff[] |
packageDiff(java.lang.String templateA,
java.lang.String templateB) |
Template |
replacePackageVersionsForTemplate(java.lang.String templateName,
java.util.List<SimplePackageVersion> packageVersions) |
void |
save(Template template) |
AgentOption |
saveAgentOption(java.lang.String templateName,
AgentOption option) |
ServiceDefaultState |
saveServiceDefaultState(java.lang.String templateName,
java.lang.String serviceName,
ServiceDefaultState newDefaultState) |
Template |
updatePackage(java.lang.String templateName,
java.lang.String packageName) |
@GET
@RolesAllowed(value={"VIEW_TEMPLATE","EDIT_TEMPLATE"})
Template[] get()
@GET @Path(value="/simple") SimpleTemplate[] getSimpleTemplates()
@PUT @RolesAllowed(value="EDIT_TEMPLATE") void save(Template template)
template - the template to save@DELETE
@Path(value="/{template}")
@RolesAllowed(value="EDIT_TEMPLATE")
void delete(@PathParam(value="template")
java.lang.String templateName)
templateName - the template name@GET
@Path(value="/{template}")
@RolesAllowed(value={"VIEW_TEMPLATE","EDIT_TEMPLATE"})
Template get(@PathParam(value="template")
java.lang.String templateName)
templateName - the template name@PUT
@Path(value="/{template}/package/{pkg}")
@RolesAllowed(value="EDIT_TEMPLATE")
Template updatePackage(@PathParam(value="template")
java.lang.String templateName,
@PathParam(value="pkg")
java.lang.String packageName)
templateName - the template namepackageName - the package to update@DELETE
@Path(value="/{template}/package/{pkg}")
@RolesAllowed(value="EDIT_TEMPLATE")
Template deletePackage(@PathParam(value="template")
java.lang.String templateName,
@PathParam(value="pkg")
java.lang.String packageName)
templateName - the template namepackageName - the package to remove@GET
@Path(value="/{template}/agentoption")
@RolesAllowed(value={"VIEW_TEMPLATE","EDIT_TEMPLATE"})
AgentOption getAgentOption(@PathParam(value="template")
java.lang.String templateName)
templateName - the name of the template@PUT
@Path(value="/{template}/agentoption")
@RolesAllowed(value="EDIT_TEMPLATE")
AgentOption saveAgentOption(@PathParam(value="template")
java.lang.String templateName,
AgentOption option)
templateName - the name of the templateoption - the agent option to set@GET
@Path(value="/{template}/sshkeys")
@RolesAllowed(value={"VIEW_TEMPLATE","EDIT_TEMPLATE"})
SSHKey[] getSSHKeysForTemplate(@PathParam(value="template")
java.lang.String templateName)
templateName - the name of the template@GET
@Path(value="/{template}/services")
@RolesAllowed(value={"VIEW_TEMPLATE","EDIT_TEMPLATE"})
Service[] getServicesForTemplate(@PathParam(value="template")
java.lang.String templateName)
templateName - the name of the template@GET
@Path(value="/{template}/servicedefaultstate")
@RolesAllowed(value={"VIEW_TEMPLATE","EDIT_TEMPLATE"})
ServiceDefaultState[] getServiceDefaultStates(@PathParam(value="template")
java.lang.String templateName)
templateName - the name of the template@GET
@Path(value="/{template}/servicedefaultstate/{service}")
@RolesAllowed(value={"VIEW_TEMPLATE","EDIT_TEMPLATE"})
ServiceDefaultState getServiceDefaultState(@PathParam(value="template")
java.lang.String templateName,
@PathParam(value="service")
java.lang.String serviceName)
templateName - the name of the templateserviceName - the name of the service@PUT
@Path(value="/{template}/servicedefaultstate/{service}")
@RolesAllowed(value="EDIT_TEMPLATE")
ServiceDefaultState saveServiceDefaultState(@PathParam(value="template")
java.lang.String templateName,
@PathParam(value="service")
java.lang.String serviceName,
ServiceDefaultState newDefaultState)
templateName - the name of the templateserviceName - the name of the servicenewDefaultState - the new default state for the given service and template@GET
@Path(value="/{template}/repo")
@RolesAllowed(value={"VIEW_TEMPLATE","EDIT_TEMPLATE"})
Repo[] getReposForTemplate(@PathParam(value="template")
java.lang.String templateName)
templateName - the name of the template@GET
@Path(value="/{template}/package/versions")
@RolesAllowed(value={"VIEW_TEMPLATE","EDIT_TEMPLATE"})
PackageVersion[] getPackageVersionsForTemplate(@PathParam(value="template")
java.lang.String templateName)
templateName - the name of the template@PUT
@Path(value="/{template}/package/versions")
@RolesAllowed(value="EDIT_TEMPLATE")
Template replacePackageVersionsForTemplate(@PathParam(value="template")
java.lang.String templateName,
java.util.List<SimplePackageVersion> packageVersions)
templateName - name of the template to overridepackageVersions - new package versions for given template@GET
@Path(value="/{template}/package/versions/simple")
@RolesAllowed(value={"VIEW_TEMPLATE","EDIT_TEMPLATE"})
SimplePackageVersion[] getSimplePackageVersionsForTemplate(@PathParam(value="template")
java.lang.String templateName)
templateName - the name of the template@GET
@Path(value="/packagediff/{templateA}/{templateB}")
@RolesAllowed(value={"VIEW_TEMPLATE","EDIT_TEMPLATE"})
PackageDiff[] packageDiff(@PathParam(value="templateA")
java.lang.String templateA,
@PathParam(value="templateB")
java.lang.String templateB)
templateA - the name of the first template of the difftemplateB - the name of the second template of the diffCopyright © 2017-2020 Cinovo AG. All Rights Reserved.