public interface RestAgentService
| Modifier and Type | Method and Description |
|---|---|
RestAgent |
getAgentById(javax.ws.rs.core.UriInfo uriInfo,
long agentId)
Retrieve an agent definition
|
PageResponse<RestAgent> |
getAgents(javax.ws.rs.core.UriInfo uriInfo)
Retrieve all agents on the bamboo server
|
RestAgent |
updateAgent(javax.ws.rs.core.UriInfo uriInfo,
long agentId,
RestAgent restAgent)
Update an agent
|
@NotNull PageResponse<RestAgent> getAgents(@NotNull javax.ws.rs.core.UriInfo uriInfo)
uriInfo - Object that provides access to information of http requestNotAuthorizedException - if the current user lacks restricted administration permission to get agents@NotNull RestAgent getAgentById(@NotNull javax.ws.rs.core.UriInfo uriInfo, @NotNull long agentId)
uriInfo - Object that provides access to information of http requestagentId - Id of agentNotAuthorizedException - if the current user lacks restricted administration permission to get agentsNotFoundException - if no agent exists with an id equal to agentId@NotNull RestAgent updateAgent(@NotNull javax.ws.rs.core.UriInfo uriInfo, long agentId, @NotNull RestAgent restAgent) throws WebValidationException
uriInfo - Object that provides access to information of http requestagentId - Id of the agent to be updatedrestAgent - The updated agent definitionWebValidationException - If the agent definition is invalidNotFoundException - if no agent exists with an id equal to agentIdCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.