post https://api.ol-hub.com/backend/api/v1/projects//deploy
The deploy project API sends a POST request to run a project with at least one method in the OpenLegacy runtime cluster.
Prerequisites: The caller must supply the project id.
Input parameters:
Field name | Description | Format |
---|---|---|
id | Project id | UUID |
version | Project version | Integer |
IncludeAllAsset | Indicator whether to include all assets | Boolean |
environmentType | Environment to deploy the nocode project to the OpenLegacy Cloud cluster ("TEST" or "PROD") | String |
activeProfiles | (from body object) - json array that includes the set of strings of the active connection profiles | String |
Output parameters:
Field name | Description | Format |
---|---|---|
id | Project id | UUID |
status | Deployment status - the possible values are: COMPLETED - the project deployed successfully. PENDING - the project deployment to the runtime cluster is currently in progress. FAILED - the project failed to deploy. | String |
Example:
{
"project": {
"id": "b8d28b7e-edfb-4c18-8fb7-e5b3d09db83f",
"name": "item-1",
"createdAt": "2021-07-18T14:23:52.060612Z",
"modifiedAt": "2021-07-18T14:23:52.060608Z",
"modifiedBy": "local dev",
"description": "very crazy",
"bookmarked": false,
"additionalInfo": {
"numOfModules": 1,
"numOfAssets": 1,
"numOfMethods": 1
}
}
}