# Java API Scheduled Actions

**URL:** <https://forum.opennebula.io/t/java-api-scheduled-actions/2888>\
**Category:** Integration Support\
**Created:** [September 7, 2016, 10:26am UTC](https://forum.opennebula.io/t/java-api-scheduled-actions/2888 "2016-09-07T10:26:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amenendez](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@amenendez](https://forum.opennebula.io/u/amenendez)\
**Post date:** [September 7, 2016, 10:26am UTC](https://forum.opennebula.io/t/java-api-scheduled-actions/2888/1 "2016-09-07T10:26:50Z")

</div>

Hi,

I’m playing with the OpenNebula Java API and I can’t find the way to schedule an action. I’ve searched it through the OCA and I can’t find anything about it. Is there any way to perform this action from de Java API?

Thanks.

---

<div class="post-metadata">

**Author:** ![cmartin](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/cmartin/32/4278_2.png) [@cmartin](https://forum.opennebula.io/u/cmartin)\
**Post date:** [September 8, 2016, 8:31am UTC](https://forum.opennebula.io/t/java-api-scheduled-actions/2888/2 "2016-09-08T08:31:58Z")

</div>

Hi,

You need to use the VirtualMachine.update method to add a SCHED\_ACTION section, with the format described in this guide:  
[http://docs.opennebula.org/5.0/operation/vm\_management/vm\_instances.html#scheduling-actions](http://docs.opennebula.org/5.0/operation/vm_management/vm_instances.html#scheduling-actions)

---

<div class="post-metadata">

**Author:** ![amenendez](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@amenendez](https://forum.opennebula.io/u/amenendez)\
**Post date:** [September 12, 2016, 8:00am UTC](https://forum.opennebula.io/t/java-api-scheduled-actions/2888/3 "2016-09-12T08:00:05Z")

</div>

Hi,

Thanks for your reply, I’ll try it right now.
