Interface PackageService


@Path("/package") @Consumes({"application/xml","application/json"}) @Produces({"application/xml","application/json"}) public interface PackageService
Manages Deployment Packages.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
    Fetches a package from a URL outside of the XL Deploy Server.
    com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
    com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
    Imports a package that is present in the importablePackages directory on the XL Deploy Server.
    Lists all packages that are present in the importablePackages 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

      @GET @Path("import") List<String> list()
      Lists all packages that are present in the importablePackages 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 the importablePackages 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)
      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 imported
      form - 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