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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAgentById
(javax.ws.rs.core.UriInfo uriInfo, long agentId) getAgents
(javax.ws.rs.core.UriInfo uriInfo) updateRestAgent
(javax.ws.rs.core.UriInfo uriInfo, long agentId, RestAgent restAgent)
-
Field Details
-
REST_PATH
- See Also:
-
-
Constructor Details
-
AgentResource
-
-
Method Details
-
getAgents
-
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
-