Class GlobalVariableResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.admin.globalvariable.GlobalVariableResource
@Path("globalVariables")
@Produces("application/json")
@Consumes("application/json")
public class GlobalVariableResource
extends Object
REST endpoint to manage bamboo global variables
- Since:
- 5.9
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
createGlobalVariable
(javax.ws.rs.core.UriInfo uriInfo, RestGlobalVariable restGlobalVariable) javax.ws.rs.core.Response
deleteGlobalVariable
(javax.ws.rs.core.UriInfo uriInfo, long variableId) getGlobalVariable
(javax.ws.rs.core.UriInfo uriInfo, long variableId) getGlobalVariables
(javax.ws.rs.core.UriInfo uriInfo) updateGlobalVariable
(javax.ws.rs.core.UriInfo uriInfo, long variableId, RestGlobalVariable restGlobalVariable) javax.ws.rs.core.Response
-
Constructor Details
-
GlobalVariableResource
-
-
Method Details
-
getGlobalVariables
-
getGlobalVariable
@GET @Path("{variableId}") public RestGlobalVariable getGlobalVariable(@Context javax.ws.rs.core.UriInfo uriInfo, @PathParam("variableId") long variableId) -
createGlobalVariable
@POST public javax.ws.rs.core.Response createGlobalVariable(@Context javax.ws.rs.core.UriInfo uriInfo, RestGlobalVariable restGlobalVariable) throws WebValidationException - Throws:
WebValidationException
-
deleteGlobalVariable
@Path("{variableId}") @DELETE public javax.ws.rs.core.Response deleteGlobalVariable(@Context javax.ws.rs.core.UriInfo uriInfo, @PathParam("variableId") long variableId) -
updateGlobalVariable
@Path("{variableId}") @PUT public RestGlobalVariable updateGlobalVariable(@Context javax.ws.rs.core.UriInfo uriInfo, @PathParam("variableId") long variableId, RestGlobalVariable restGlobalVariable) throws WebValidationException - Throws:
WebValidationException
-
verifyGlobalVariableValue
@Path("verify") @PUT public javax.ws.rs.core.Response verifyGlobalVariableValue(RestVerificationRequest request)
-