config#
The following methods allow for interaction with the ZCON Config API endpoints.
Methods are accessible via zcon.config
- class ZCONConfigAPI#
- activate(force=False)#
Activate the configuration.
- Parameters:
force (bool) – If set to True, forces the activation. Default is False.
- Returns:
The status code of the operation.
- Return type:
Box
Examples
Activate the configuration without forcing:
zcon.config.activate()
Forcefully activate the configuration:
zcon.config.activate(force=True)
- get_status()#
Get the status of the configuration.
- Returns:
The status of the configuration.
- Return type:
Box
Examples
Get the status of the configuration:
print(zcon.config.get_status())