Article ID: 118470, created on Nov 6, 2013, last review on May 6, 2014

  • Applies to:
  • Operations Automation

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.

Search Words

EZ template

Create Resource Type automatically

VPS

Application Template

Resource Type

Plesk

caea8340e2d186a540518d08602aa065 5356b422f65bdad1c3e9edca5d74a1ae e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF