# Lifecycle

The lifecycle of a BMS contains all states from its creation to deletion.

Figure 1 BMS states

Table 1 BMS states
State | Attribute | Description | API Status
--- | --- | --- | ---
Creating | Intermediate state | A BMS is in this state after you request for the BMS and before it enters the running state. If a BMS remains in this state for a long time, exceptions will occur. Contact the administrator to handle the exceptions. | BUILD/BUILDING
Starting | Intermediate state | It is an intermediate state between Stopped and Running. If a BMS remains in this state for a long time, exceptions will occur. Contact the administrator to handle the exceptions. | SHUTOFF
Running | Stable state | A BMS is in this state when it is running properly. A BMS in this state can be used normally. | ACTIVE
Stopping | Intermediate state | It is an intermediate state between Running and Stopped. If a BMS remains in this state for a long time, exceptions will occur. Contact the administrator to handle the exceptions. | ACTIVE
Stopped | Stable state | A BMS is in this state after it is stopped successfully. A BMS in this state cannot be used. | SHUTOFF
Restarting | Intermediate state | A BMS is in this state when it is being restarted. If a BMS remains in this state for a long time, exceptions will occur. Contact the administrator to handle the exceptions. | REBOOT
Forcibly restarting | Intermediate state | A BMS is in this state when it is being forcibly restarted. | HARD_REBOOT
Deleting | Intermediate state | A BMS is in this state when it is being deleted. If a BMS remains in this state for a long time, exceptions will occur. Contact the administrator to handle the exceptions. | ACTIVE/SHUTOFF/REBOOT/HARD_REBOOT/ERROR
Deleted | Intermediate state | A BMS is in this state after it is deleted successfully. A BMS in this state cannot be used and will be removed from the system in a short time. | DELETED
Faulty | Stable state | A BMS is in this state when an exception occurs on it. A BMS in this state cannot be used. Contact the administrator to rectify the fault. | ERROR
Rebuilding | Intermediate state | A BMS is in this state when it is being rebuilt. | SHUTOFF

Parent topic: Instance