Symptoms

Provider imported a new Virtuozzo application template in POA.

The option 'Create Resource Type automatically' was not checked during the template adding, so the corresponding Resource Type was not created.

As Provider I need to create Resource Type for the already imported Virtuozzo application template.

Resolution

Follow the steps below to create Resource Type for an already imported Virtuozzo application template:

  1. Log into the POA Provider Control Panel

  2. Go to Service Director > Provisioning Manager > Resource Types and click 'Add New Resource Type'

  3. Choose Resource Class "Virtuozzo Application Template"

  4. Proceed with the wizard and choose the needed application template you imported

Alternatively, the pem.addResourceType POA OpenAPI method can be used, the example is provided below:

<?xml version="1.0"?>
<methodCall>
  <methodName>pem.addResourceType</methodName>
  <params>
    <param>
      <value>
        <struct>
          <member>
            <name>resclass_name</name>
            <value><string>rc.application.template</string></value>
          </member>
          <member>
            <name>name</name>
            <value><string>Plesk 11 for CentOS 5 x64</string></value>
          </member>
          <member>
            <name>act_params</name>
            <value>
             <array>
              <data>
                <value>
                  <struct>
                <member>
                  <name>var_name</name>
                  <value><string>ap.application.template.set</string></value>
                </member>
                <member>
                  <name>var_value</name>
                  <value><string>.pp11.centos-5-x86_64</string></value>
                </member>
              </struct>
              </value>
              </data>
            </array>
          </value>
          </member>
        </struct>
        </value>
        </param>
</params>
</methodCall>

The API request above will create Resource Type with the name 'Plesk 11 for CentOS 5 x64' for the Virtuozzo application template .pp11.centos-5-x86_64.

Internal content