pem.activateSubscription Sample

The following XML snippet shows the structure of sample request for XML-RPC call for this method:

<?xml version="1.0"?>
<methodCall>
   <methodName>pem.activateSubscription</methodName>
   <params>
      <param>
         <value>
            <struct>
               <member>
                  <name>subscription_id</name>
                  <value>
                     <int>${theSubscriptionID}</int>
                  </value>
               </member>
               <member>
                  <name>service_template_id</name>
                  <value>
                     <int>${theServiceTemplateID}</int>
                  </value>
               </member>
               <member>
                  <name>account_id</name>
                  <value>
                     <int>${theAccountID}</int>
                  </value>
               </member>
               <member>
                  <name>resource_limits</name>
                  <value>
                     <array>
                        <data>
                           <value>
                              <struct>
                                 <member>
                                    <name>resource_id</name>
                                    <value>
                                       <int>${rt_id1}</int>
                                    </value>
                                 </member>
                                 <member>
                                    <name>resource_limit</name>
                                    <value>
                                       <int>${Limit_1}</int>
                                    </value>
                                 </member>
                              </struct>
                           </value>
                           ...
                           <value>
                              <struct>
                                 <member>
                                    <name>resource_id</name>
                                    <value>
                                       <int>${rt_idN}</int>
                                    </value>
                                 </member>
                                 <member>
                                    <name>resource_limit</name>
                                    <value>
                                       <int>${Limit_N}</int>
                                    </value>
                                 </member>
                              </struct>
                           </value>
                        </data>
                     </array>
                  </value>
               </member>
               <member>
                  <name>parameters</name>
                  <value>
                     <array>
                        <data>
                           <value>
                              <struct>
                                 <member>
                                    <name>var_name</name>
                                    <value>
                                       <string>${Name_1}</string>
                                    </value>
                                 </member>
                                 <member>
                                    <name>var_value</name>
                                    <value>
                                       <string>${Value_1}</string>
                                    </value>
                                 </member>
                              </struct>
                           </value>
                           ...
                           <value>
                              <struct>
                                 <member>
                                    <name>var_name</name>
                                    <value>
                                       <string>${Name_N}</string>
                                    </value>
                                 </member>
                                 <member>
                                    <name>var_value</name>
                                    <value>
                                       <string>${Value_N}</string>
                                    </value>
                                 </member>
                              </struct>
                           </value>
                        </data>
                     </array>
                  </value>
               </member>
            </struct>
         </value>
      </param>
   </params>
</methodCall>