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
Introduction:
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:
https://api.asm.ca.com/1.6/

 
Question:
Is there a way to disable/enable the On-Premise stations through the ASM API?
Environment:
ASM 10.1
Answer:
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:
https://api.asm.ca.com/1.6/