def restartservices(member_order="SEQUENTIALLY",
      restart_option="RESTART_IF_NEEDED",
      sequential_delay=15,
      service_option="DHCP")

      post_body = {
        :member_order =>      member_order,
        :restart_option =>    restart_option,
        :sequential_delay =>  sequential_delay.to_i,
        :service_option =>    service_option
      }
      JSON.parse(connection.post(resource_uri + "?_function=restartservices", post_body).body);
    end
def restartservices(member_order="SEQUENTIALLY",
      restart_option="RESTART_IF_NEEDED",
      sequential_delay=15,
      service_option="DHCP")

      post_body = {
        :member_order =>      member_order,
        :restart_option =>    restart_option,
        :sequential_delay =>  sequential_delay.to_i,
        :service_option =>    service_option
      }
      JSON.parse(connection.post(resource_uri + "?_function=restartservices", post_body).body);
    end
Example of a working post for restartservices
 POST /wapi/v1.4/grid/b25lLmNsdXN0ZXIkMA:DNSone?_function=restartservices
 &member_order=SEQUENTIALLY
 &restart_option=RESTART_IF_NEEDED
 &sequential_delay=15
 &service_option=DHCP