Class AgentResource
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 Summary
ConstructorDescriptionAgentResource
(AgentManager agentManager, AgentAssignmentService agentAssignmentService, RemoteAgentAuthenticationManager agentAuthenticationManager, RemoteAgentManager remoteAgentManager, AgentSecurityTokenService agentSecurityTokenService, PerAgentTokenService perAgentTokenService) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
agentsDedicatedToken
(String reasonKey) javax.ws.rs.core.Response
javax.ws.rs.core.Response
Creates a local agent with default configuration and a random name.javax.ws.rs.core.Response
javax.ws.rs.core.Response
javax.ws.rs.core.Response
javax.ws.rs.core.Response
enableRemoteAgents
(boolean enabled) javax.ws.rs.core.Response
-
Constructor Details
-
AgentResource
@Inject public AgentResource(AgentManager agentManager, AgentAssignmentService agentAssignmentService, RemoteAgentAuthenticationManager agentAuthenticationManager, RemoteAgentManager remoteAgentManager, AgentSecurityTokenService agentSecurityTokenService, PerAgentTokenService perAgentTokenService)
-
-
Method Details
-
getAllActiveAndEnabledAgentsId
-
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)
-