Class AgentResource

java.lang.Object
com.atlassian.bamboo.plugins.rest.admin.agent.AgentResource

@Path("config/agents") @Produces("application/json") @Consumes("application/json") public class AgentResource extends Object
Manage the REST endpoint for agent management
Since:
5.10
  • Field Details

  • Constructor Details

    • AgentResource

      @Inject public AgentResource(RestAgentService restAgentService)
  • Method Details

    • getAgents

      @GET public RestPageModel<RestAgent> getAgents(@Context javax.ws.rs.core.UriInfo uriInfo)
    • getAgentById

      @GET @Path("{agentId}") public RestAgent getAgentById(@Context javax.ws.rs.core.UriInfo uriInfo, @PathParam("agentId") long agentId)
    • updateRestAgent

      @PUT @Path("{agentId}") public RestAgent updateRestAgent(@Context javax.ws.rs.core.UriInfo uriInfo, @PathParam("agentId") long agentId, RestAgent restAgent) throws WebValidationException
      Throws:
      WebValidationException