Deployment spaces
developmenttestproduction
You can use these deployment spaces to support a promotion workflow through different stages of the software development lifecycle.
Decision service archives are first deployed to the development
deployment space by using the Decision Designer.
You can then promote the decision service archives to another deployment space by using a dedicated
endpoint of the decision runtime REST API.
- from
developmenttotestorproduction - from
testtoproduction
Endpoint for promotion:
/deploymentSpaces/{sourceDeploymentSpaceId}/decisions/{decisionId}/promote
Parameters:
- sourceDeploymentSpaceId is the source deployment space for the decision service archive to promote.
- decisionId is the identifier of the decision service archive to be promoted.
Specify the information about the target deployment space ID in the request body.
{
"targetDeploymentSpaceId": "production"
}
For more information about how to use the endpoint, see the OpenAPI description for the decision runtime REST API in Reference.
When you promote a decision service archive, the archive and its metadata are copied to the
target deployment space. A new promotionTime metadata is added to record when the
promotion occurred.