python - softlayer api: How to get the status(finish or processing) when copy os image cross IDC? -
when call softlayer_virtual_guest_block_device_template_group:addlocations copy private image_a cross idc, function returns true immediately. known operation asynchronous.
the question how can know async operation finished, namely image_a finished copy target idc?
i have found api:
softlayer_virtual_guest_block_device_template_group:gettransaction(), 1 returns empty str??what hell ~ ~ ~
you need make following call
https://$user:$apikey@api.softlayer.com/rest/v3.1/softlayer_virtual_guest_block_device_template_group/$templategroupid/getchildren?objectmask=mask[transaction] method: replace: $user, $apikey , $templategroupid
you need verify children (image template groups clones of image template group) have no pending or current transaction. in case there 1 or more transactions, not able add/remove locations until finishes.
Comments
Post a Comment