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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAgentResource
(RestAgentService restAgentService, RestPermissionCheck restPermissionCheck, AdministrationConfigurationService administrationConfigurationService, com.atlassian.sal.api.message.I18nResolver i18nResolver) -
Method Summary
Modifier and TypeMethodDescriptiongetAgentById
(javax.ws.rs.core.UriInfo uriInfo, long agentId) getAgents
(javax.ws.rs.core.UriInfo uriInfo) setAgentAutomaticManagementConfiguration
(@Nullable RestOfflineAgentRemovalConfig config) updateRestAgent
(javax.ws.rs.core.UriInfo uriInfo, long agentId, RestAgent restAgent)
-
Field Details
-
REST_PATH
- See Also:
-
-
Constructor Details
-
AgentResource
@Inject public AgentResource(RestAgentService restAgentService, RestPermissionCheck restPermissionCheck, AdministrationConfigurationService administrationConfigurationService, com.atlassian.sal.api.message.I18nResolver i18nResolver)
-
-
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
-
getAgentAutomaticManagementConfiguration
@GET @Path("offlineAgentRemoval") public RestOfflineAgentRemovalConfig getAgentAutomaticManagementConfiguration() throws UnauthorisedException- Throws:
UnauthorisedException
-
setAgentAutomaticManagementConfiguration
@PUT @Path("offlineAgentRemoval") public RestOfflineAgentRemovalConfig setAgentAutomaticManagementConfiguration(@Nullable @Nullable RestOfflineAgentRemovalConfig config) throws Exception - Throws:
Exception
-