卷 - 从卷组中移除
使用此命令从卷组中移除卷。
格式:
<a volume object>.removeFromVolumeGroup()
示例:
>>> clivol.removeFromVolumeGroup()
{
"acl": (nested object),
"auxiliary_name": None,
"cloud": (nested object),
"created_time": "Jun 16, 2014 1:49:35 PM",
"description": "",
"harddiskdrive": None,
"id": "ddfe61d8-2796-45f8-8ef3-80bb15bbb23c",
"id_auxiliary": None,
"id_flashcopy_source": None,
"is_external": "F",
"name": "testvolimport",
"replication_role": "none",
"replication_state": None,
"replication_type": "async",
"size": 1024,
"solidstatedrive": None,
"state": "available",
"type": "block",
"units": "MB",
"updated_time": "Jun 16, 2014 2:19:00 PM",
"url": "/admin/resources/volumes/ddfe61d8-2796-45f8-8ef3-80bb15bbb23c",
"virtualmachines": (nested object),
"volumeconfiguration": (nested object),
"volumegroup": (nested object)
}
>>> clivol.refresh()
{
"acl": (nested object),
"auxiliary_name": None,
"cloud": (nested object),
"created_time": "Jun 16, 2014 1:49:35 PM",
"description": "",
"harddiskdrive": None,
"id": "ddfe61d8-2796-45f8-8ef3-80bb15bbb23c",
"id_auxiliary": None,
"id_flashcopy_source": None,
"is_external": "F",
"name": "testvolimport",
"replication_role": "none",
"replication_state": None,
"replication_type": "async",
"size": 1024,
"solidstatedrive": None,
"state": "available",
"type": "block",
"units": "MB",
"updated_time": "Jun 16, 2014 2:19:00 PM",
"url": "/admin/resources/volumes/ddfe61d8-2796-45f8-8ef3-80bb15bbb23c",
"virtualmachines": (nested object),
"volumeconfiguration": (nested object),
"volumegroup": (nested object)
}