VMware Cloud Community
CalmCloud
Enthusiast
Enthusiast
Jump to solution

How to add datastore to a datastore cluster

Hi All,

How to add a datastore to a datastore cluster. There is vc:datastore object but  not able to find javascript object for datastore cluster.

Any help appreciated.

Reply
0 Kudos
1 Solution

Accepted Solutions
dvatov
VMware Employee
VMware Employee
Jump to solution

Check the workflows under Library/vCenter/Storage/Storage DRS. They are part of vCenter plug-in.

View solution in original post

Reply
0 Kudos
3 Replies
dvatov
VMware Employee
VMware Employee
Jump to solution

Check the workflows under Library/vCenter/Storage/Storage DRS. They are part of vCenter plug-in.

Reply
0 Kudos
CalmCloud
Enthusiast
Enthusiast
Jump to solution

Thanks. The naming threw me off. It is called StoragePod and I was looking for an object datastoreCluster.

There is a workflow under vcenter\storage to add a datastore to a datastoe cluster. One of the input parameter is vc:StoragePod. How to access this scripting object? THe following code does not find getDatastoreFolder() method.

var datacenter = attrSDK.allDatacenters[0];//.getDatastoreFolder();

var folders = datacenter.getDatastoreFolder();

Reply
0 Kudos
dvatov
VMware Employee
VMware Employee
Jump to solution

There are workflows to create storagePod (a.k.a datastore cluster). Or you create it from vSphere client. Then you select it from the plug-in inventory. I think they were under folder 'Datastores'.

Reply
0 Kudos