API for DXP environment restart
Currently you can restart an environment only manually from Optimizely paasportal.
We would need an API for restarting environments, which would be a more modern way of doing things and it would allow a better automation for managing environments.
-
Rickard Nilsson
commented
We need this too. Our production site runs on two instances and is deployed from Azure DevOps through the Deployment API with a slot swap. When a release adds new block or page types, an instance often appears to keep a content type ID in memory that has no matching row in tblContentType. Editors then cannot create content of the new type, and saving fails with a SqlException on FK_tblContent_tblContentType. Restarting the instances fixes it.
Today that restart is a manual step in the DXP portal after most releases that add content types. An API operation that restarts the web app one instance at a time, with a status we can poll, would let us run it as the last step of the release pipeline without downtime. A matching cmdlet in EpiCloud would make it easy to use from a pipeline.