softlayer api: How to get the status(finish or processing) when copy os image cross IDC?
<p>When I call <code>SoftLayer_Virtual_Guest_Block_Device_Template_Group:addLocations</code> to copy private image_A cross <code>IDC</code>, this function returns <code>True</code> immediately. So it is known that the operation is asynchronous.</p>

<p>The question is how can I know that this async operation is finished, namely <code>image_A</code> is already finished copy to the target <code>IDC</code>?</p>

<p>I have found the api: </p>

<p><code>SoftLayer_Virtual_Guest_Block_Device_Template_Group:getTransaction()</code>, but this one always returns an empty str??What the hell ~ ~ ~</p>

<p>You need to make the following call</p>

<pre><code>https://$user:$apiKey@api.softlayer.com/rest/v3.1/SoftLayer_Virtual_Guest_Block_Device_Template_Group/$templateGroupId/getChildren?objectMask=mask[transaction]

Method: Get
</code></pre>

<p>Replace: <strong>$user</strong>, <strong>$apiKey</strong> and <strong>$templateGroupId</strong></p>

<p>You need to verify that the children (image template groups that are clones of an image template group) have no any pending or current transaction. In case that there is one or more transactions, you will not able to add/remove locations until this finishes.</p>

python api softlayer