Article ID: 118062, created on Oct 20, 2013, last review on Jun 17, 2016

  • Applies to:
  • Virtual Automation

Question

How do I set name, hostname, nameserver, search domain for a container using XML API requests?

Answer

The following XML API request can be used for this task :

    <packet version="4.0.0" log="on" progress="on">
    <target>vzaenvm</target>
    <data>
    <vzaenvm>
    <set>
    <eid>7147dc27-3d25-a34f-a5a3-3d457389d3e7</eid>
    <config>
    <name>ctname</name>
    <hostname>myhost</hostname>
    <search_domain>example.com</search_domain>
    <nameserver>192.168.1.51</nameserver>
    <nameserver>192.168.1.52</nameserver>
    </config>
    </set>
    </vzaenvm>
    </data>
    </packet>

Use this article to find our the EID of the container you need to configure.

Use this article to learn how to send XML API request to PVA.

Search Words

vzaenvm

container name

container hostname

XML API

319940068c5fa20655215d590b7be29b 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF