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

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

  • Method Details

    • getAllActiveAndEnabledAgentsId

      @Path("get-all-enabled-and-active-agents-id") @GET public Set<Long> getAllActiveAndEnabledAgentsId()
    • createLocalAgent

      @POST @Path("local") public RestAgent createLocalAgent()
      Creates a local agent with default configuration and a random name.
    • deleteAllLocalAgents

      @DELETE @Path("delete-all-local-agents") public javax.ws.rs.core.Response deleteAllLocalAgents() throws Exception
      Throws:
      Exception
    • enableRemoteAgents

      @Path("enable-remote-agents") @PUT public javax.ws.rs.core.Response enableRemoteAgents(boolean enabled) throws Exception
      Throws:
      Exception
    • approveAllAgents

      @Path("approve-all-agents") @PUT public javax.ws.rs.core.Response approveAllAgents()
    • enableAllAgents

      @Path("enable-all-agents") @PUT public javax.ws.rs.core.Response enableAllAgents()
    • disableAllAgents

      @Path("disable-all-agents") @PUT public javax.ws.rs.core.Response disableAllAgents()
    • undedicateAllAgents

      @Path("undedicate-all-agents") @PUT public javax.ws.rs.core.Response undedicateAllAgents()
    • agentsToken

      @Path("get-agents-token") @GET public javax.ws.rs.core.Response agentsToken()
    • agentsDedicatedToken

      @Path("get-agents-dedicated-token/{reasonKey}") @PUT public javax.ws.rs.core.Response agentsDedicatedToken(@PathParam("reasonKey") String reasonKey)