@Path(value="elasticConfiguration") @Consumes(value="application/json") @Produces(value="application/json") public class ElasticConfigResource extends Object
Constructor and Description |
---|
ElasticConfigResource(ElasticImageConfigurationManager elasticImageConfigurationManager,
ElasticAccountBean elasticAccountBean,
AwsAccountBean awsAccountBean,
RestHelperWrapper restHelperWrapper,
AdministrationConfigurationAccessor administrationConfigurationAccessor,
BambooPermissionManager bambooPermissionManager) |
Modifier and Type | Method and Description |
---|---|
RestElasticImageConfig |
createImageConfiguration(RestElasticImageConfig restConfiguration) |
javax.ws.rs.core.Response |
deleteConfiguration(Long configurationId) |
javax.ws.rs.core.Response |
deleteConfigurationByName(String configurationName)
Deprecated.
since 5.8
|
List<RestElasticImageConfig> |
getAll() |
RestElasticImageConfig |
getConfiguration(Long configurationId) |
RestElasticImageConfig |
getConfigurationByName(String configurationName)
Deprecated.
since 5.8
|
String |
getDefaultAvailabilityZone() |
int |
updateAllImageIds(String imageId,
String newImageId) |
RestElasticImageConfig |
updateConfiguration(Long configurationId,
RestElasticImageConfig newElasticImageConfiguration) |
RestElasticImageConfig |
updateConfigurationByName(String configurationName,
RestElasticImageConfig newElasticImageConfiguration)
Deprecated.
since 5.8
|
public ElasticConfigResource(ElasticImageConfigurationManager elasticImageConfigurationManager, ElasticAccountBean elasticAccountBean, AwsAccountBean awsAccountBean, RestHelperWrapper restHelperWrapper, AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooPermissionManager bambooPermissionManager)
@GET public List<RestElasticImageConfig> getAll()
@GET @Path(value="/{configurationId}") public RestElasticImageConfig getConfiguration(@PathParam(value="configurationId") Long configurationId) throws NotFoundException
NotFoundException
@Deprecated @GET @Path(value="/configuration-name/{configurationName}") public RestElasticImageConfig getConfigurationByName(@PathParam(value="configurationName") String configurationName)
@POST public RestElasticImageConfig createImageConfiguration(RestElasticImageConfig restConfiguration) throws com.atlassian.aws.AWSException
com.atlassian.aws.AWSException
@PUT @Path(value="/{configurationId}") public RestElasticImageConfig updateConfiguration(@PathParam(value="configurationId") Long configurationId, RestElasticImageConfig newElasticImageConfiguration) throws com.atlassian.aws.AWSException
com.atlassian.aws.AWSException
@Deprecated @PUT @Path(value="/configuration-name/{configurationName}") public RestElasticImageConfig updateConfigurationByName(@PathParam(value="configurationName") String configurationName, RestElasticImageConfig newElasticImageConfiguration) throws com.atlassian.aws.AWSException
com.atlassian.aws.AWSException
@DELETE @Path(value="/{configurationId}") public javax.ws.rs.core.Response deleteConfiguration(@PathParam(value="configurationId") Long configurationId) throws Exception
Exception
@Deprecated @DELETE @Path(value="/configuration-name/{configurationName}") public javax.ws.rs.core.Response deleteConfigurationByName(@PathParam(value="configurationName") String configurationName) throws Exception
Exception
@PUT @Path(value="/image-id/{imageId}") public int updateAllImageIds(@PathParam(value="imageId") String imageId, @QueryParam(value="newImageId") String newImageId)
public String getDefaultAvailabilityZone()
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.