VMware {code} Community
alpatio
Contributor
Contributor

How to set Independent-Persistent disks using vCenter REST API ?

I've been trying to attach some SCSI disks to an existing VM using the REST API 

Hardware Disk | vSphere vCenter REST APIs (vmware.com)

Create Hardware Disk | VM | vSphere vCenter REST APIs (vmware.com)

These rest Api calls allows me set the SCSI Adapter number and also the UnitNumber, that facilitates my job because I need to assign to an specific position.

But I also need to set these disks as 'Independend_persistent'

My problem is that it seems that none of the specifications parameters allows to assign this type during creation or change it later. I'm using the Initialize-VmHardwareDiskBackingSpec, But seems that doesn't have this setting available to be assigned.

Then how can I set this setting in the case of continuing using the vCenter REST API ?

Thanks in advance

0 Kudos
0 Replies