Currently the Splunk API available offer the function to put a server in maintenance or to exit a maintenance however there is no function to get an active maintenance. Having this method available can improve existing automation projects for Busines Critical Product.
https://globaljira.roche.com/ideahub#/portal/73