Class BambooDeploymentExportResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.configuration.external.BambooDeploymentExportResource
@Path("/export/deployment")
@Consumes("application/json")
@Produces("application/json")
@Singleton
public class BambooDeploymentExportResource
extends Object
-
Constructor Summary
ConstructorDescriptionBambooDeploymentExportResource
(DeploymentExportService deploymentExportService, DeploymentProjectService deploymentProjectService, BambooPermissionManager bambooPermissionManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.message.I18nResolver i18nResolver, FeatureManager featureManager) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
Export configuration of all deployment projects to YAML format.javax.ws.rs.core.Response
exportDeploymentProject
(long deploymentProjectId) Export configuration of a deployment project to YAML format
-
Constructor Details
-
BambooDeploymentExportResource
@Inject public BambooDeploymentExportResource(DeploymentExportService deploymentExportService, DeploymentProjectService deploymentProjectService, BambooPermissionManager bambooPermissionManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.message.I18nResolver i18nResolver, FeatureManager featureManager)
-
-
Method Details
-
exportAllDeployments
@POST @Path("all") public javax.ws.rs.core.Response exportAllDeployments()Export configuration of all deployment projects to YAML format.- Returns:
- json array of paths to all updated files
-
exportDeploymentProject
@POST @Path("{deploymentProjectId}") public javax.ws.rs.core.Response exportDeploymentProject(@PathParam("deploymentProjectId") long deploymentProjectId) Export configuration of a deployment project to YAML format- Parameters:
deploymentProjectId
- deployment project id- Returns:
- json array of paths to all updated files
-