from api.dcim_api import DcimApi if __name__ == '__main__': api = DcimApi() api.save_alarm_current()