The following figure shows the transitions between API-based instance states.