@Path(value="/deployment")
@Consumes(value={"application/xml","application/json"})
@Produces(value={"application/xml","application/json"})
public interface DeploymentService
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
createTask(Deployment deployment)
Creates the deployment task.
|
java.util.Map<java.lang.String,java.lang.String> |
effectiveDictionary(java.lang.String environment,
java.lang.String application,
java.lang.String container)
Get the effective dictionary for an environment, optionally filtered by application and container.
|
Deployment |
generateSelectedDeployeds(java.util.List<java.lang.String> deployableIds,
Deployment deployment)
|
Deployment |
generateSelectedDeployeds(SelectedDeployment selectedDeployment)
Generates only the deployeds for the given deployables in the deployment.
|
Deployment |
generateSingleDeployed(java.lang.String deployableId,
java.lang.String containerId,
com.xebialabs.deployit.plugin.api.reflect.Type deployedType,
Deployment deployment)
Generates a deployed for the given deployable to the given container in the deployment.
|
boolean |
isDeployed(java.lang.String applicationId,
java.lang.String environmentId)
Returns whether or not a
udm.Version of the
udm.Application that is passed in is already deployed to the
udm.Environment. |
Deployment |
prepareAutoDeployeds(Deployment deployment)
Prepares all the deployeds for the given deployment.
|
Deployment |
prepareInitial(java.lang.String versionId,
java.lang.String environmentId)
Prepares an initial deployment.
|
Deployment |
prepareUndeploy(java.lang.String deployedApplicationId)
Prepares an undeployment.
|
Deployment |
prepareUpdate(java.lang.String versionId,
java.lang.String deployedApplicationId)
Prepares an update deployment.
|
java.lang.String |
rollback(java.lang.String taskId)
Rollback a
STOPPED or EXECUTED task. |
TaskPreviewBlock |
taskPreviewBlock(Deployment deployment)
Calculate the plan that XL Deploy will execute for the given deployment.
|
StepState |
taskPreviewBlock(Deployment deployment,
java.lang.String blockId,
int stepNr)
Get details on a step in a step block.
|
Deployment |
validate(Deployment deployment)
Validates the generated deployment.
|
@GET
@Path(value="exists")
boolean isDeployed(@QueryParam(value="application")
java.lang.String applicationId,
@QueryParam(value="environment")
java.lang.String environmentId)
udm.Version of the
udm.Application that is passed in is already deployed to the
udm.Environment.applicationId - The ID of the udm.Application.environmentId - The ID of the udm.Environment.true if there exists a deployed version of the application on the environment, false otherwise.@GET @Path(value="prepare/initial") Deployment prepareInitial(@QueryParam(value="version") java.lang.String versionId, @QueryParam(value="environment") java.lang.String environmentId)
versionId - The ID of the udm.Version that is the source of the deployment.environmentId - The ID of the udm.Environment that is the target of the deployment.Deployment object to which you can add deployeds.@GET @Path(value="prepare/update") Deployment prepareUpdate(@QueryParam(value="version") java.lang.String versionId, @QueryParam(value="deployedApplication") java.lang.String deployedApplicationId)
versionId - The ID of the new udm.Version that is the source of the deployment.deployedApplicationId - The ID of the udm.DeployedApplication that is to be updated.Deployment object which contains the updated deployeds.@GET @Path(value="prepare/undeploy") Deployment prepareUndeploy(@QueryParam(value="deployedApplication") java.lang.String deployedApplicationId)
deployedApplicationId - The ID of the udm.DeployedApplication that is to be undeployed.Deployment object which contains no deployeds (ie. all deployeds of the previous deployment will be deleted).@POST @Path(value="prepare/deployeds") Deployment prepareAutoDeployeds(Deployment deployment)
deployment - The prepared Deployment parameter object@POST @Path(value="generate/selected") Deployment generateSelectedDeployeds(@QueryParam(value="deployables") java.util.List<java.lang.String> deployableIds, Deployment deployment)
Containers
in the Environment of the Deployment parameter object.
deployableIds - The list of IDs of deployables to generate the deployeds for.deployment - The prepared Deployment parameter object@POST @Path(value="generate/selected/deployables") Deployment generateSelectedDeployeds(SelectedDeployment selectedDeployment)
Containers
in the Environment of the Deployment parameter object.
This request is same as /deployment/generate/selected but does
not use URL query parameters avoiding it becoming too long.
selectedDeployment - The prepared Deployment parameter object with list of IDs of deployables to generate the deployeds for.@POST @Path(value="generate/single") Deployment generateSingleDeployed(@QueryParam(value="deployable") java.lang.String deployableId, @QueryParam(value="container") java.lang.String containerId, @QueryParam(value="deployedtype") com.xebialabs.deployit.plugin.api.reflect.Type deployedType, Deployment deployment)
deployableId - The ID of the deployable to generate a deployed forcontainerId - The ID of the container to generate a deployed todeployedType - (Optional) The type of the deployed to generatedeployment - The prepared Deployment parameter object@POST @Path(value="validate") Deployment validate(Deployment deployment)
deployment - The deployment to validate.@POST @Path(value="previewblock") TaskPreviewBlock taskPreviewBlock(Deployment deployment)
deployment - The deployment to generate the block for.@POST
@Path(value="previewblock/{blockId}/{stepNr}")
StepState taskPreviewBlock(Deployment deployment,
@PathParam(value="blockId")
java.lang.String blockId,
@PathParam(value="stepNr")
int stepNr)
deployment - The deployment to generate the block for.blockId - The id of the step block to query the steps for.stepNr - The number of the step to retrieve.@POST java.lang.String createTask(Deployment deployment)
deployment - The fully prepared Deployment parameter object.TaskService.@POST
@Path(value="rollback/{taskid}")
java.lang.String rollback(@PathParam(value="taskid")
java.lang.String taskId)
STOPPED or EXECUTED task. Reverting the deployment to the previous state. The task
will be set to CANCELLED when it was STOPPED, and DONE when it was EXECUTED.taskId - the ID of the task@GET
@Path(value="dictionary")
java.util.Map<java.lang.String,java.lang.String> effectiveDictionary(@QueryParam(value="environment")
java.lang.String environment,
@QueryParam(value="application")
java.lang.String application,
@QueryParam(value="container")
java.lang.String container)
environment - The ID of the environmentapplication - The ID of the application (optional, can be null)container - The ID of the container (optional, can be null)