# Overcommit and XML-RPC API

**URL:** <https://forum.opennebula.io/t/overcommit-and-xml-rpc-api/5549>\
**Category:** Integration Support\
**Created:** [January 13, 2018, 10:07am UTC](https://forum.opennebula.io/t/overcommit-and-xml-rpc-api/5549 "2018-01-13T10:07:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rvalle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/rvalle/32/6267_2.png) [@rvalle](https://forum.opennebula.io/u/rvalle)\
**Post date:** [January 13, 2018, 10:07am UTC](https://forum.opennebula.io/t/overcommit-and-xml-rpc-api/5549/1 "2018-01-13T10:07:53Z")

</div>

Is it possible to configure Host overcommit (CPU / Memory) via XML-RPC API?

I have tried to update a Host, but this information seems to be outside of the template.

Is it possible? How?

---

<div class="post-metadata">

**Author:** ![feldsam](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/feldsam/32/4441_2.png) [@feldsam](https://forum.opennebula.io/u/feldsam)\
**Post date:** [January 13, 2018, 5:41pm UTC](https://forum.opennebula.io/t/overcommit-and-xml-rpc-api/5549/2 "2018-01-13T17:41:34Z")

</div>

Hello, it should work and it is part of template.

**RESERVED\_CPU** and **RESERVED\_MEM** in negative numbers

[DOCS](http://docs.opennebula.org/5.4/integration/system_interfaces/api.html#one-host-update)

```auto
<TEMPLATE>
    <ARCH><![CDATA[x86_64]]></ARCH>
    <CPUSPEED><![CDATA[2941]]></CPUSPEED>
    <HOSTNAME><![CDATA[node1]]></HOSTNAME>
    <HYPERVISOR><![CDATA[kvm]]></HYPERVISOR>
    <IM_MAD><![CDATA[kvm]]></IM_MAD>
    <MODELNAME><![CDATA[Intel(R) Xeon(R) CPU E5-2630 v2 @ 2.60GHz]]></MODELNAME>
    <NETRX><![CDATA[325639025437]]></NETRX>
    <NETTX><![CDATA[2998717896647]]></NETTX>
    <RESERVED_CPU><![CDATA[-2400]]></RESERVED_CPU>
    <RESERVED_MEM><![CDATA[-13104]]></RESERVED_MEM>
    <VERSION><![CDATA[5.4.4]]></VERSION>
    <VM_MAD><![CDATA[kvm]]></VM_MAD>
  </TEMPLATE>

```

---

<div class="post-metadata">

**Author:** ![rvalle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/rvalle/32/6267_2.png) [@rvalle](https://forum.opennebula.io/u/rvalle)\
**Post date:** [January 15, 2018, 8:14pm UTC](https://forum.opennebula.io/t/overcommit-and-xml-rpc-api/5549/3 "2018-01-15T20:14:19Z")

</div>

Is it these two?

> [@feldsam](#):
>
> \<RESERVED\_CPU\>\<![CDATA[-2400]]\>\</RESERVED\_CPU\>  
> \<RESERVED\_MEM\>\<![CDATA[-13104]]\>\</RESERVED\_MEM\>

I was expecting something matching the web interface.

I now saw a post mentioning negative values for reservations as a way to overcommit, is that it?

I guess I will have to review the documentation.

---

<div class="post-metadata">

**Author:** ![feldsam](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/feldsam/32/4441_2.png) [@feldsam](https://forum.opennebula.io/u/feldsam)\
**Post date:** [January 15, 2018, 10:02pm UTC](https://forum.opennebula.io/t/overcommit-and-xml-rpc-api/5549/4 "2018-01-15T22:02:58Z")

</div>

Yes, it is.
