Summary:
Modifies an existing sample configuration or creates a new one.
Request specification:
Name |
Min/Max |
Type |
Description |
|
|
|
|
|
|
|
|
|
|
|
Force the operation. |
|
|
|
Sample configuration data. The When updating a sample config, always include the |
|
|
|
|
Returns:
Name |
Min/Max |
Type |
Description |
|
|
Sample configuration ID. |
Example:
Modifying a Virtuozzo sample configuration. Changing the OS template to "redhat-as3-minimal", adding the "mysql-rh9" application template, changing the values of some of the QoS parameters.
Input
<packet version="4.0.0" id="555">
<target>env_samplem</target>
<data>
<env_samplem>
<set_sample_conf>
<sample_conf>
<force/>
<id>78f5f3f0-9100-4d0a-9631-9caea7cda424</id>
<env_config>
<os_template>
<name>redhat-as3-minimal</name>
</os_template>
<template>
<name>mysql-rh9</name>
</template>
<qos>
<id>avnumproc</id>
<hard>200</hard>
</qos>
<qos>
<id>cpuunits</id>
<hard>1000</hard>
</qos>
<qos>
<id>dcachesize</id>
<hard>4317408</hard>
<soft>4192327</soft>
</qos>
</env_config>
</sample_conf>
</set_sample_conf>
</env_samplem>
</data>
</packet>
Output
<ns1:packet priority="0" version="4.0.0">
<ns1:origin>env_samplem</ns1:origin>
<ns1:target>vzclient3</ns1:target>
<ns1:data>
<ns2:env_samplem>
<ns2:id>78f5f3f0-9100-4d0a-9631-9caea7cda424</ns2:id>
</ns2:env_samplem>
</ns1:data>
</ns1:packet>