Previous page

Next page

Locate page in Contents

Print this page

set_sample_conf

Summary:

Modifies an existing sample configuration or creates a new one.

Request specification:

Name

Min/Max

Type

Description

set_sample_conf

 

 

 

{

 

 

 

force

0..1

none

Force the operation.

sample_conf

1..1

sample_confType

Sample configuration data.

The id parameter specifies the sample configuration to update. If id is omitted, then a new sample configuration is created.

When updating a sample config, always include the force parameter.

}

 

 

 

Returns:

Name

Min/Max

Type

Description

id

0..1

guid_type

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>

Please send us your feedback on this help page