您可以使用api的版本2来做到这一点,但您需要首先收集有关VM的一些信息。
这是将指定UUID的磁盘绑定到指定的虚拟机作为精简scsi。1界面。
在光盘中添加iso的方法与在快照中添加iso的方法相同。
- 您必须拥有VM UUID,您可以从/PrismGateway/services/rest/v2.0中获得它/vm /端点{{VM_UUID}}
- 您必须有来自端点/PrismGateway/ Services /rest/v2.0/images/ endpoint {{vmdisk_uuid}}的镜像服务中的磁盘的vmdisk_uuid
/ PrismGateway /服务/ rest /版本/vm / {uuid} /磁盘/附加
下面是一个rest调用的JSON体示例
代码:
{
uuid: {{VM_UUID}},
“vm_disks”:(
{
" disk_address ": {
:“device_bus SCSI”,
“device_index”:1、
:“vmdisk_uuid {{vmdisk_uuid}}”
},
“is_scsi_pass_through”:没错,
“is_thin_provisioned”:没错,
" vm_disk_clone ": {
" disk_address ": {
:“device_bus SCSI”,
“device_index”:1、
:“vmdisk_uuid {{vmdisk_uuid}}”
}
}
}
]
}
这是将指定UUID的磁盘绑定到指定的虚拟机作为精简scsi。1界面。
在光盘中添加iso的方法与在快照中添加iso的方法相同。
+1
你说“……”是什么意思?快照也是一样的"?
+1
这工作。谢谢!
回复
Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">