public OvhSmsAlert serviceName_serviceMonitoring_monitoringId_alert_sms_POST ( String serviceName , Long monitoringId , Long fromHour , OvhAlertLanguageEnum language , String phoneNumberTo , String smsAccount , Long toHour ) throws IOException { String qPath = "/dedicated/server/{serviceName}/serviceMonitoring/{monitoringId}/alert/sms" ; StringBuilder sb = path ( qPath , serviceName , monitoringId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "fromHour" , fromHour ) ; addBody ( o , "language" , language ) ; addBody ( o , "phoneNumberTo" , phoneNumberTo ) ; addBody ( o , "smsAccount" , smsAccount ) ; addBody ( o , "toHour" , toHour ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhSmsAlert . class ) ; }
Create a SMS alert