This POST service will perform the same action found on the Deployment Request Form off the project screen. It will initiate a request to deploy the project selected in the qualifiedProjectName
. The service will return the workflowRequestId
which can be used by the getWorkflowRequestStatus
call to determine when the workflow is complete.
...
Info | ||
---|---|---|
| ||
http://host:port/flexdeploy/rest/workflow/deployProject |
Anchor | ||||
---|---|---|---|---|
|
Full Deployment Sample JSON Request | |
---|---|
{ "authentication": { "userId":"fdadmin", "password": "password1" }, | Opening bracket Authentication section, used on all types of requests. |
Required parameters for full deployment. If deploying with partial deployment, see the Partial deployment example instead. | |
"instanceCodes":["SOA1","SOA2"], "environmentCode":"DEV", "qualifiedProjectName":"/FlexDeploy/folder1/myApp/SimpleProj", | Deploy to the SOA1 and SOA2 instances Deploy to the DEV environment. The full path of the FlexDeploy project to run. |
Optionally, include any of this information. Verify that your json is valid; check for trailing commas if you don't include this section. | |
"projectVersion": "1.2", "exceptionToWindow":true, "startTime":"2015-03-16T21:17:52-06:00", "workflowVersionOverride":"1.8", "forceDeploy": true, "inputs": "flexFields": | Deploy project version 1.2 Equivalent to the "Exception to Window" checkbox in the UI. Defaults to false. Time should the deployment start Version of the workflow to run. Defaults to the currently active version. boolean equivalent to "Force Deploy" checkbox in the UI. Defaults to false. List of workflow inputs Input Codes to set An input named "input1" is being set to "xyz" An input named "inp2" is being set to 123 List of FlexFields FlexField Display Names to set Setting FlexField "Change" to "101012" Setting FlexField "field2" to "123" |
} | Closing bracket |
Anchor | ||||
---|---|---|---|---|
|
Partial Deployment Sample JSON Request | |
---|---|
{ "authentication": { "userId":"fdadmin", "password": "password1" }, | Opening bracket Authentication section, used on all types of requests. |
Required parameters for full partial deployment. If deploying with partial deployment, see the Partial full deployment example insteadabove. | |
"instanceCodes":["SOA1","SOA2"], "environmentCode":"DEV", "qualifiedProjectName":"/FlexDeploy/folder1/myApp/SimpleProj", "packageDetails": [ | Deploy to the SOA1 and SOA2 instances Deploy to the DEV environment. The full path of the FlexDeploy project to run. List of packages to deploy Deploy package 1.0.7, with priority 1. Deploy package 1.0.21, with priority 2. |
Optionally, include any of this information. Verify that your json is valid; check for trailing commas if you don't include this section. | |
"exceptionToWindow":true, "startTime":"2015-03-16T21:17:52-06:00", "workflowVersionOverride":"1.8", "forceDeploy": true, "inputs": "flexFields": | Equivalent to the "Exception to Window" checkbox in the UI. Defaults to false. Time should the deployment start Version of the workflow to run. Defaults to the currently active version. boolean equivalent to "Force Deploy" checkbox in the UI. Defaults to false. List of workflow inputs Input Codes to set An input named "input1" is being set to "xyz" An input named "inp2" is being set to 123 List of FlexFields Display Names to set Setting FlexField "Change" to "101012" Setting FlexField "field2" to 123 |
} | Closing bracket |
Info |
---|
Notice that the |
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
| Y | Object | See Common Parameters below. |
| Y | String | This is the environment code, not the environment name that you see on most screens. |
| Y | String | The list of Instances where the deployment will occur. Instance codes are all capital letters. Make sure to enter the instance code, not the instance name. |
| Y | String | The qualified project name starts with /FlexDeploy and includes any sub folder, then the application and finally the project. |
packageDetails | N* | String | This is required for partial deploy, but not for full deployments. Included to indicate what should be deployed in a partial deploy. Full |
| N | Boolean | Values are true or false. Indicates that the deployment should occur even when the |
| N | Boolean | Values are true or false. Indicates that the deployment is an exception to the deployment window. Defaults to false. |
| N | String | The projectVersion to be deployed. If not specified, the most recently built This parameter is ignored for partial deployments. See |
| N | DateTime | The time when the deployment will be started. |
| N | String | Optionally, the version of the workflow can be overridden. |
| N | List | See Common Parameters below. |
| N | List | See Common Parameters below. |
...