Interface PackageService
@Path("/package")
@Consumes({"application/xml","application/json"})
@Produces({"application/xml","application/json"})
public interface PackageService
Manages Deployment Packages.
-
Method Summary
Modifier and TypeMethodDescriptioncom.xebialabs.deployit.plugin.api.udm.ConfigurationItem
fetch
(ImportFromUrlParams params) Fetches a package from a URL outside of the XL Deploy Server.com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
Deprecated.com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
importPackage
(String file) Imports a package that is present in theimportablePackages
directory on the XL Deploy Server.list()
Lists all packages that are present in theimportablePackages
directory on the XL Deploy Server.com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
upload
(String file, FileUpload form) Uploads a package to the XL Deploy Server.
-
Method Details
-
list
Lists all packages that are present in theimportablePackages
directory 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 theimportablePackages
directory on the XL Deploy Server.- Parameters:
file
- The name of the package to import- Returns:
- The
udm.Version
CI 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.Version
CI 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.Version
CI 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 importedform
- The upload form.- Returns:
- The
udm.Version
CI 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)