VMware Cloud Community
akirpal
Contributor
Contributor

Online status of newly Create Harddisk not in sync with SAN Policy

Context:

We are using provided VMware APIs for creating SCSI & Harddisks for creating Windows Cluster.

The new Disk Policy (previously known as the SAN Policy) is OfflineShared by default for new Node.

The harddisks created using VMware API is online by default which is opposite of the SAN Policy.

The online status of newly created harddisks is observed only while using provided VMware APIs.

We are getting correct status of harddisks while using manual approach of creating harddisks using VMWare Portal directly.

 

 

 

Hard disk Creation VMWare API:

https://eurde-w02vc01.atrame.deloitte.com:443/api/vcenter/vm/vm-3754/hardware/disk

 

Input JSON:

{

    "spec": {

        "new_vmdk": {

            "capacity": 14,

            "name": "eu408m1w004_F_pSQLData"

          

        },  

        "scsi": {

            "bus": 2

        },

        "type": "SCSI"

        

    }

}

 

 

SCSI Creation VMware API:

https://eurde-w02vc01.atrame.deloitte.com:443/api/vcenter/vm/vm-3754/hardware/scsi

 

Input JSON:

{"spec": {"bus": 2,"pci_slot_number": 1,"sharing": "NONE","type": "PVSCSI" }}

 

 

Appreciate if you could guide.

Reply
0 Kudos
0 Replies