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
-
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 generationroles- Include roles in generationusers- Include users in generationincludeSecrets- Include secrets in generationincludeDefaults- Include default values in generation- Returns:
- XLDAsCodeResult containing generated YAML content
-