Article ID: 117328, created on Sep 17, 2013, last review on Jul 22, 2015

  • Applies to:
  • Operations Automation 6.0
  • Operations Automation 5.5
  • Operations Automation 5.4
  • Business Automation 5.5
  • Business Automation 5.4
  • Business Automation 6.0

Symptoms

When Parallels Operations Automation (POA) is integrated with Parallels Business Automation (PBA), the possibility to manage subscriptions is disabled in the POA Provider Control Panel - there is no way to create or remove subscriptions. The reason is simple - all subscription management must be completed through PBA.

Still, there may be cases when a Provider needs to create or remove subscriptions in POA. For example, subscriptions may be created in POA before it was integrated with PBA.

This article described how to create or remove subscriptions in POA without using the Provider Control Panel.

Resolution

Use the POA OpenAPI methods pem.activateSubscription and pem.removeSubscription.

Important notes:

  1. Create subscriptions in POA with ID < 1000000 in order to avoid accidentally using a subscription ID which PBA may use for its subscriptions.

  2. Do not remove subscriptions which exist in PBA. Instead, terminate the subscription and remove services in PBA Control Panel.

Create subscription

  1. Create the pem.activateSubscription.xml file on the POA Management Node with the following content:

    <?xml version='1.0'?>
    <methodCall>
      <methodName>pem.activateSubscription</methodName>
      <params>
        <param>
          <value>
            <struct>
              <member>
                <name>subscription_id</name>
                <value><i4>SUB_ID</i4></value>
              </member>
              <member>
                <name>account_id</name>
                <value><i4>ACCOUNT_ID</i4></value>
              </member>
              <member>
                <name>service_template_id</name>
                <value><i4>ST_ID</i4></value>
              </member>
            </struct>
          </value>
        </param>
      </params>
    </methodCall>
    

    Replace the <SUB_ID>, <ACCOUNT_ID> and <ST_ID> in the content above with the subscription ID, customer account ID and Service Template ID respectively.

  2. Send an XML API request to POA using the curl utility:

    curl -d@pem.activateSubscription.xml http://localhost:8440
    

Remove subscription

  1. Create a pem.removeSubscription.xml file on the POA Management Node with the following content:

    <?xml version='1.0'?>
    <methodCall>
      <methodName>pem.removeSubscription</methodName>
      <params>
        <param>
          <value>
            <struct>
              <member>
                <name>subscription_id</name>
                <value><int>SUB_ID</int></value>
              </member>
            </struct>
          </value>
        </param>
      </params>
    </methodCall>
    

    Replace the <SUB_ID> in the content above with the ID of the existing subscription you are going to remove.

  2. Send an XML API request to POA using the curl utility:

    curl -d@pem.removeSubscription.xml http://localhost:8440
    

For additional details, please refer to the POA 5.4 OpenAPI guide or POA 5.5 OpenAPI guide

Search Words

Subscription doesn't exist in PBA but active in cp

Destroy hosting subscription using Public API

pem.removeSubscription

-

destroy subs

Cant destroy subscriptionm

remove

pem.activateSubscription

unable to remove subscription

subscripton not deleted

subscriptions

Terminate Subscription API

pba and poa out of synch

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 198398b282069eaf2d94a6af87dcb3ff 210d017ddc3a076d22f0f865b1cf0730 92711db0799e8aefe8e51f12dace0496 801221f8cd76fba7300d1e6817c8e08b ac82ce33439a9c1feec4ff4f2f638899 2554725ed606193dd9bbce21365bed4e e12cea1d47a3125d335d68e6d4e15e07 5b048d9bddf8048a00aba7e0bdadef37 3627d36199b8ff577605df76e2fa222b bb7e9177fb03488961a3ea554120f328 956c448bddc7e1f3585373687602379f 6f1456866eed87488c0f02b298a741c0

Email subscription for changes to this article
Save as PDF