Volumes - export
Use this command to export the volume to an external server.
Format:
<a volume object>.export({<propertyName>:<value>,...})
Example:
>>> testvol
{
"acl": (nested object),
"auxiliary_name": None,
"cloud": (nested object),
"created_time": "Aug 11, 2014 6:13:49 PM",
"description": "",
"harddiskdrive": None,
"id": "b5f4ea6a-146d-4590-afc6-8b5fc68da67e",
"id_auxiliary": None,
"id_flashcopy_source": None,
"is_external": "F",
"name": "TestVol",
"replication_role": "none",
"replication_state": None,
"replication_type": "async",
"size": 2048,
"solidstatedrive": None,
"state": "available",
"type": "block",
"units": "MB",
"updated_time": "Aug 12, 2014 10:14:11 AM",
"url": "/admin/resources/volumes/b5f4ea6a-146d-4590-afc6-8b5fc68da67e",
"virtualmachines": (nested object),
"volumeconfiguration": (nested object),
"volumegroup": (nested object)
}
>>> exportedvol=testvol.export({'host':'172.20.255.126','username':'root','password':'passw0rd','path':'/tmp/test/vol'})
>>> exportedvol
{u'message': None, u'volume_configuration': None, u'description': u'', u'jobs': [u'2a5ca1a9-435a-46bd-9e71-796e05b5c04a'], u'is_detachable': u'true', u'created_time': 1407795229357
L, u'idr_timestamp': None, u'updated_time_raw': 1407853208670L, u'admin_name': u'78N20CH:p_b5f4ea6a-146d-4590-afc6-8b5fc68da67e', u'target_vdc': None, u'dr_storage_progress': None,
u'storage_volume_statistics': [], u'state': u'pending', u'units': u'MB', u'dr_storage_state': None, u'volume_placement_diskmapping': None, u'dr_infos': None, u'storage_pools': u'd
049df52-a906-439b-b83e-313b358d56dd', u'label_text': u'Volume', u'repl_type': u'async', u'storage_volumes': u'4d662b62-4748-4d97-80b9-9e68ea60408d', u'aux': None, u'updated_time':
1407853208670L, u'name': u'TestVol', u'is_external': u'F', u'management': u'F', u'options': {}, u'size_target_result': u'done', u'label_key': u'pure1907', u'tier_hdd': None, u'type
': u'block', u'fc_state': None, u'dr_repl_role': u'none', u'fc_id': None, u'volume_placement': None, u'volume_groups': u'da4f2c88-0be9-4853-a141-6db37bd89aa5', u'created_time_raw':
1407795229357L, u'vdc': u'9895f32b-e6ae-48ce-9b70-fd92f03d0188', u'id': u'b5f4ea6a-146d-4590-afc6-8b5fc68da67e', u'lun_id': None, u'formats': None, u'fc_source': None, u'dr_storag
e_last_state_change_time': None, u'size_target': u'pending', u'storage_controller_volume_id': u'86', u'aux_name': None, u'storage_controller_volume_uid': u'60050768028A861DD8000000
000003A9', u'size': 2048L, u'tier_ssd': None}
>>>
Note: You can extract the job ID (identifier) from the returned dictionary
object and use the job ID to track progress.