@Path(value="/templates") public interface ITemplate extends IDefaultApi<Template>
| Modifier and Type | Method and Description |
|---|---|
void |
addHost(String name,
String host)
Add/Modify a host to the template
|
void |
addRPM(String name,
PackageVersion rpm)
Add/Modify a package version to the template
|
void |
addSSHKey(String name,
String key)
Add/Modify a ssh key to the template
|
Host[] |
getHosts(String name) |
PackageVersion[] |
getRPMS(String name) |
Service[] |
getServices(String name) |
SSHKey[] |
getSSHKeys(String name) |
void |
removeHost(String name,
String host)
Delete a host from the template
|
void |
removeRPM(String name,
String pkg,
String version)
Delete a package version from the template
|
void |
removeSSHKey(String name,
String key)
Delete a ssh key from the template
|
delete, get, get, save@GET
@Path(value="/{template}/services")
@Produces(value="application/json;charset=UTF-8")
Service[] getServices(@PathParam(value="template")
String name)
name - the template name@GET
@Path(value="/{template}/hosts")
@Produces(value="application/json;charset=UTF-8")
Host[] getHosts(@PathParam(value="template")
String name)
name - the template name@PUT
@Path(value="/{template}/hosts/{host}")
void addHost(@PathParam(value="template")
String name,
@PathParam(value="host")
String host)
name - the template namehost - the host name@DELETE
@Path(value="/{template}/hosts/{host}")
void removeHost(@PathParam(value="template")
String name,
@PathParam(value="host")
String host)
name - the template namehost - the host name@GET
@Path(value="/{template}/sshkeys")
@Produces(value="application/json;charset=UTF-8")
SSHKey[] getSSHKeys(@PathParam(value="template")
String name)
name - the template name@PUT
@Path(value="/{template}/sshkeys/{name}")
void addSSHKey(@PathParam(value="template")
String name,
@PathParam(value="name")
String key)
name - the template namekey - the key name@DELETE
@Path(value="/{template}/sshkeys/{name}")
void removeSSHKey(@PathParam(value="template")
String name,
@PathParam(value="name")
String key)
name - the template namekey - the key@GET
@Path(value="/{template}/package/versions")
@Produces(value="application/json;charset=UTF-8")
PackageVersion[] getRPMS(@PathParam(value="template")
String name)
name - the template name@POST
@Path(value="/{template}/package/versions")
@Consumes(value="application/json;charset=UTF-8")
void addRPM(@PathParam(value="template")
String name,
PackageVersion rpm)
name - the template namerpm - the package version@DELETE
@Path(value="/{template}/package/versions/{pkg}/{version}")
void removeRPM(@PathParam(value="template")
String name,
@PathParam(value="pkg")
String pkg,
@PathParam(value="version")
String version)
name - the template namepkg - the package nameversion - the package versionCopyright © 2014-2017 Cinovo AG. All Rights Reserved.