Disabling/enabling the on-premise appliance for maintenance purposes through the ASM API

Document ID : KB000125594
Last Modified Date : 31/01/2019
Show Technical Document Details
We are looking for a way to enable/disable the On-Premise stations for maintenance purposes through the ASM API but couldn't find any command to do so:

Is there a way to disable/enable the On-Premise stations through the ASM API?
ASM 10.1
To enable maintenance mode for an OPMS station you can use cp_mod API call. Provide nkey, ID of the station and active (=0):

You can get the ID of the station in the UI, go to On-Premise / Stations and click on the selected station. The ID is in the URL:
Additional Information:
ASM API doc: