Interface PackageService
@Path("/package")
@Consumes({"application/xml","application/json"})
@Produces({"application/xml","application/json"})
public interface PackageService
Manages Deployment Packages.
- 
Method SummaryModifier and TypeMethodDescriptioncom.xebialabs.deployit.plugin.api.udm.ConfigurationItemfetch(ImportFromUrlParams params) Fetches a package from a URL outside of the XL Deploy Server.com.xebialabs.deployit.plugin.api.udm.ConfigurationItemDeprecated.com.xebialabs.deployit.plugin.api.udm.ConfigurationItemimportPackage(String file) Imports a package that is present in theimportablePackagesdirectory on the XL Deploy Server.list()Lists all packages that are present in theimportablePackagesdirectory on the XL Deploy Server.com.xebialabs.deployit.plugin.api.udm.ConfigurationItemupload(String file, FileUpload form) Uploads a package to the XL Deploy Server.
- 
Method Details- 
listLists all packages that are present in theimportablePackagesdirectory on the XL Deploy Server.- Returns:
- List of names of packages that can be imported.
 
- 
importPackage@POST @Path("import/{file:.+}") com.xebialabs.deployit.plugin.api.udm.ConfigurationItem importPackage(@PathParam("file") String file) Imports a package that is present in theimportablePackagesdirectory on the XL Deploy Server.- Parameters:
- file- The name of the package to import
- Returns:
- The udm.VersionCI that is created after importing.
- Permission:
- import#initial for importing the first version of a package, import#upgrade if another version of the package already exists
 
- 
fetch@Deprecated @POST @Path("fetch") com.xebialabs.deployit.plugin.api.udm.ConfigurationItem fetch(String url) Deprecated.Fetches a package from a URL outside of the XL Deploy Server.- Parameters:
- url- The URL to import from
- Returns:
- The udm.VersionCI that is created after importing.
- Permission:
- import#initial for importing the first version of a package, import#upgrade if another version of the package already exists
 
- 
fetch@POST @Path("fetch2") com.xebialabs.deployit.plugin.api.udm.ConfigurationItem fetch(ImportFromUrlParams params) Fetches a package from a URL outside of the XL Deploy Server. Supports authentication- Parameters:
- params- The import URL parameters
- Returns:
- The udm.VersionCI that is created after importing.
- Permission:
- import#initial for importing the first version of a package, import#upgrade if another version of the package already exists
 
- 
upload@POST @Path("upload/{file:.+}") @Consumes("multipart/form-data") com.xebialabs.deployit.plugin.api.udm.ConfigurationItem upload(@PathParam("file") String file, FileUpload form) Uploads a package to the XL Deploy Server.- Parameters:
- file- The name of the package to be imported
- form- The upload form.
- Returns:
- The udm.VersionCI that is created after importing.
- Permission:
- import#initial for importing the first version of a package, import#upgrade if another version of the package already exists
 
 
- 
fetch(ImportFromUrlParams)