Register a deployment environment, limit branches and the protection list, and read deployment history.