Interface XLDAsCodeService


@Path("/xld-as-code/v1") @Consumes({"application/xml","application/json"}) @Produces({"application/xml","application/json"}) public interface XLDAsCodeService
XLDAsCode service interface matching XLDAsCodeResource functionality. Provides REST endpoints for DevOps-as-Code operations. Similar to TaskBlockService, this interface can be accessed by: - In-process workers: ServiceHolder.getXLDAsCodeService() - External workers: via HTTP proxy from Proxies.getXLDAsCodeService()
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(String yamlContent)
    Applies DevOps-as-Code YAML definition to create/update CIs.
    generate(String path, boolean globalPermissions, boolean roles, boolean users, boolean includeSecrets, boolean includeDefaults)
    Generates YAML definitions from existing XL Deploy repository structure.
  • Method Details

    • apply

      @POST @Path("/apply") @Consumes("text/plain") @Produces("application/xml") XLDAsCodeResult apply(String yamlContent)
      Applies DevOps-as-Code YAML definition to create/update CIs. Equivalent to XLDAsCodeResource.interpret()
      Parameters:
      yamlContent - The YAML definition content
      Returns:
      XLDAsCodeResult indicating success/failure and details
    • generate

      @GET @Path("/generate") @Produces("application/xml") XLDAsCodeResult generate(@QueryParam("path") String path, @DefaultValue("false") @QueryParam("globalPermissions") boolean globalPermissions, @DefaultValue("false") @QueryParam("roles") boolean roles, @DefaultValue("false") @QueryParam("users") boolean users, @DefaultValue("false") @QueryParam("secrets") boolean includeSecrets, @DefaultValue("false") @QueryParam("defaults") boolean includeDefaults)
      Generates YAML definitions from existing XL Deploy repository structure. Equivalent to XLDAsCodeResource.generate()
      Parameters:
      path - Repository path to generate from (optional)
      globalPermissions - Include global permissions in generation
      roles - Include roles in generation
      users - Include users in generation
      includeSecrets - Include secrets in generation
      includeDefaults - Include default values in generation
      Returns:
      XLDAsCodeResult containing generated YAML content