Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 188195

Re: PowerCLI/API for update storage profile in vDC

$
0
0

Hi Tomas,

 

The properties of a storage profile are located here: http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/types/AdminVdcStorageProfileType.html

 

You should be able to get this object by using:

 

$myProfile = Search-Cloud -querytype AdminOrgVdcStorageProfile -Name "MyProfileName" | Get-CIView -viewlevel Admin

 

Once you have the admin level object, you should have an updateServerData() method.

 

So, disabling the storage profile would look something like this:

 

$myProfile.enabled = $false
$myProfile.updateServerData()

 

*disclaimer* I don't have a 5.1 environment handy right now to tell you that this is exactly what you need to do, so be sure to update this thread with any changes to my code above.

 

Cheers,

 

Jake


Viewing all articles
Browse latest Browse all 188195

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>