GlideSystemRunLevel - Global
-
- UpdatedJan 30, 2025
- 1 minute read
- Yokohama
- API reference
The GlideSystemRunLevel API provides methods to get and set the current system run level.
Setting the system run level allows applications to change or limit their features based on operational toggles. For more information about using operational toggles, see Operational toggles.
The system run level can be set to one of the defined system run levels.
- Fully Operational
- Slightly Degraded
- Moderately Degraded
- Severely Degraded
The admin role is required to use this API.
GlideSystemRunLevel – getCurrentLevel()
Retrieves the current system run level.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | The current system run level. Possible values:
|
Example
Gets the current system run level.
Output:
GlideSystemRunLevel – switchLevel(String newLevel)
Switches the system run level.
Name | Type | Description |
---|---|---|
newLevel | String | The ID value of the new system run level. This value is from the ID field in the System Run Level [sys_run_level] table. |
Type | Description |
---|---|
String | ID of the previous system run level. Possible values:
|
Example
Sets the system run level to Slightly Degraded.
Output: