Class DeploymentEnvironmentResource

java.lang.Object
com.atlassian.bamboo.plugins.rest.deployments.environments.DeploymentEnvironmentResource

@Path("deploy/environment") @Consumes("application/json") @Produces("application/json") @Singleton public class DeploymentEnvironmentResource extends Object
  • Constructor Details

  • Method Details

    • getEnvironment

      @GET @Path("{environmentId}") public RestEnvironmentWithConfigCounts getEnvironment(@PathParam("environmentId") long environmentId)
    • getEnvironmentsExecutableByAgent

      @GET @Path("agent/{agentId}") public RestPageModel<RestEnvironmentForExecutablesView> getEnvironmentsExecutableByAgent(@QueryParam("filter") @DefaultValue("") String filter, @PathParam("agentId") long agentId, @BeanParam PageRequest pageRequest, @Context javax.ws.rs.core.UriInfo uriInfo)
    • getEnvironmentsExecutableByElasticConfiguration

      @GET @Path("elasticImageConfiguration/{configurationId}") public RestPageModel<RestEnvironmentForExecutablesView> getEnvironmentsExecutableByElasticConfiguration(@QueryParam("filter") @DefaultValue("") String filter, @PathParam("configurationId") Long configurationId, @BeanParam PageRequest pageRequest, @Context javax.ws.rs.core.UriInfo uriInfo)
    • getEnvironmentsExecutableByEphemeralAgentTemplate

      @GET @Path("ephemeral/{templateId}") public RestPageModel<RestEnvironmentForExecutablesView> getEnvironmentsExecutableByEphemeralAgentTemplate(@QueryParam("filter") @DefaultValue("") String filter, @PathParam("templateId") Long templateId, @BeanParam PageRequest pageRequest, @Context javax.ws.rs.core.UriInfo uriInfo)
    • getDeploymentResultList

      @GET @Path("{environmentId}/results") public RestDeploymentResultList getDeploymentResultList(@PathParam("environmentId") long environmentId, @QueryParam("expand") String expandParam, @Context javax.ws.rs.core.UriInfo uriInfo)
    • findAssignedAgentsByEnvironment

      @GET @Path("{environmentId}/agent-assignment") public List<RestAgentAssignmentExecutorDetails> findAssignedAgentsByEnvironment(@PathParam("environmentId") long environmentId)
    • findPossibleAgentsForEnvironment

      @GET @Path("{environmentId}/possible-agent-assignment") public javax.ws.rs.core.Response findPossibleAgentsForEnvironment(@PathParam("environmentId") long environmentId, @Nullable @QueryParam("searchTerm") @Nullable String searchTerm, @Context javax.ws.rs.core.UriInfo uriInfo)
    • addAgentAssignmentForEnvironment

      @POST @Path("{environmentId}/agent-assignment") public RestAgentAssignmentExecutorDetails addAgentAssignmentForEnvironment(@PathParam("environmentId") long environmentId, Map<String,String> agentAssignmentKey) throws WebValidationException
      Throws:
      WebValidationException
    • removeAgentAssignmentFromEnvironment

      @DELETE @Path("{environmentId}/agent-assignment/{executorKey}") public javax.ws.rs.core.Response removeAgentAssignmentFromEnvironment(@PathParam("environmentId") long environmentId, @PathParam("executorKey") String executorKey) throws WebValidationException
      Throws:
      WebValidationException
    • getDockerPipelinesConfiguration

      @GET @Path("{environmentId}/docker") public RestDockerPipelineConfiguration getDockerPipelinesConfiguration(@PathParam("environmentId") long environmentId)
    • saveDockerPipelinesConfiguration

      @PUT @Path("{environmentId}/docker") public javax.ws.rs.core.Response saveDockerPipelinesConfiguration(@PathParam("environmentId") long environmentId, RestDockerPipelineConfiguration restDockerPipelineConfiguration)
    • moveEnvironment

      @POST @Path("{environmentId}/move/{position}/{relativeEnvironmentId}") public javax.ws.rs.core.Response moveEnvironment(@PathParam("environmentId") Long environmentId, @PathParam("position") @Nullable @Nullable String positionString, @PathParam("relativeEnvironmentId") Long relativeEnvironmentId) throws WebValidationException, NotFoundException
      Throws:
      WebValidationException
      NotFoundException
    • getAllEnvironmentVariables

      @GET @Path("{environmentId}/variables") public javax.ws.rs.core.Response getAllEnvironmentVariables(@PathParam("environmentId") Long environmentId)
    • getEnvironmentVariable

      @GET @Path("{environmentId}/variable/{variableName}") public javax.ws.rs.core.Response getEnvironmentVariable(@PathParam("environmentId") Long environmentId, @PathParam("variableName") String variableName)
    • createEnvironmentVariable

      @POST @Path("{environmentId}/variable") public javax.ws.rs.core.Response createEnvironmentVariable(@PathParam("environmentId") Long environmentId, @Nullable @Nullable RestVariable variable)
    • updateEnvironmentVariable

      @PUT @Path("{environmentId}/variable/{variableName}") public javax.ws.rs.core.Response updateEnvironmentVariable(@PathParam("environmentId") Long environmentId, @PathParam("variableName") String variableName, @Nullable @Nullable RestVariable variable)
    • deleteEnvironmentVariable

      @DELETE @Path("{environmentId}/variable/{variableName}") public javax.ws.rs.core.Response deleteEnvironmentVariable(@PathParam("environmentId") Long environmentId, @PathParam("variableName") String variableName)
    • updateEnvironmentPrerequisites

      @PUT @Path("{environmentId}/prerequisites") public javax.ws.rs.core.Response updateEnvironmentPrerequisites(@PathParam("environmentId") Long environmentId, @NotNull @NotNull RestEnvironmentPrerequisites restEnvironmentPrerequisites)