VMware {code} Community
Sainath_Rao
Contributor
Contributor

Hi I am Sainath Working as a senior software engineer in X-IO India Private Lmited. I have doubt in a new option in create datastore option.

Hi I am Sainath Working as a senior software engineer in X-IO India Private Limited. I have doubt in a new option in create datastore option. How to specify the Datastore capacity while creating a datastore using vsphere .net SDK.

3 Replies
LucD
Leadership
Leadership

Are you using the New-Datastore cmdlet or are you using the API method directly ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
Sainath_Rao
Contributor
Contributor

Hi Lucd,

Thanks for the reply. I am using a direct api method.

ManagedObjectReference ^createDatastore = pVmwSession->getVimService()->CreateVmfsDatastore(imor,(VimApi::VmfsDatastoreCreateSpec^)vmfsDSoptions[0]->spec);

Thanks,

Sainath

Reply
0 Kudos
LucD
Leadership
Leadership

You're obviously not using PowerShell/PowerCLI.

I will move this thread to the VMware DeveloperVMware Developer community.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference