Class AgentResource

java.lang.Object
com.atlassian.bamboo.plugins.rest.resource.AgentResource

@Path("agent") @Produces("application/json") @Consumes("application/json") @Singleton public class AgentResource extends Object
  • Constructor Details

  • Method Details

    • getAgents

      @GET public List<RestBuildAgent> getAgents(@QueryParam("online") Boolean online)
    • getAgentInformation

      @GET @Path("{agentId}") public RestAgentInformation getAgentInformation(@QueryParam("expand") String expandParam, @QueryParam("includeShared") boolean includeShared, @PathParam("agentId") long agentId, @Context javax.ws.rs.core.UriInfo uriInfo)
    • getRemoteAgents

      @GET @Path("remote") public List<RestBuildAgent> getRemoteAgents(@QueryParam("online") Boolean online)
    • getAgentStatus

      @GET @Path("{agentId}/status") public javax.ws.rs.core.Response getAgentStatus(@PathParam("agentId") long agentId) throws org.acegisecurity.AccessDeniedException
      Throws:
      org.acegisecurity.AccessDeniedException
    • enableAgent

      @PUT @Path("{agentId}/enable") public javax.ws.rs.core.Response enableAgent(@PathParam("agentId") long agentId) throws org.acegisecurity.AccessDeniedException, NotFoundException
      Throws:
      org.acegisecurity.AccessDeniedException
      NotFoundException
    • disableAgent

      @PUT @Path("{agentId}/disable") public javax.ws.rs.core.Response disableAgent(@PathParam("agentId") long agentId) throws org.acegisecurity.AccessDeniedException, NotFoundException
      Throws:
      org.acegisecurity.AccessDeniedException
      NotFoundException
    • deleteAgent

      @DELETE @Path("{agentId}") public javax.ws.rs.core.Response deleteAgent(@PathParam("agentId") long agentId) throws org.acegisecurity.AccessDeniedException, WebValidationException
      Throws:
      org.acegisecurity.AccessDeniedException
      WebValidationException
    • getAgentCapabilities

      @GET @Path("{agentId}/capability") public List<RestCapability> getAgentCapabilities(@PathParam("agentId") long agentId, @QueryParam("includeShared") boolean includeShared)
    • createAgentCapability

      @POST @Path("{agentId}/capability") public javax.ws.rs.core.Response createAgentCapability(@PathParam("agentId") long agentId, RestCapability createCapabilityRequest) throws WebValidationException
      Throws:
      WebValidationException
    • updateAgentCapability

      @PUT @Path("{agentId}/capability/{capabilityKey : (.+)?}") public javax.ws.rs.core.Response updateAgentCapability(@PathParam("agentId") long agentId, @PathParam("capabilityKey") String capabilityKey, RestRemoteAgentCapability updateCapabilityRequest) throws WebValidationException
      Throws:
      WebValidationException
    • deleteAgentCapability

      @DELETE @Path("{agentId}/capability/{capabilityKey : (.+)?}") public javax.ws.rs.core.Response deleteAgentCapability(@PathParam("agentId") long agentId, @NotNull @PathParam("capabilityKey") @NotNull String capabilityKey) throws NotFoundException
      Throws:
      NotFoundException
    • deleteAllAgentCapabilities

      @DELETE @Path("{agentId}/capability") public javax.ws.rs.core.Response deleteAllAgentCapabilities(@PathParam("agentId") long agentId) throws NotFoundException
      Throws:
      NotFoundException