VMware Cloud Community
alex3138
Contributor
Contributor

Get vDC Storage Policy quota

Hello.

I want to retrieve the storage policies quota assigned to an Org vDC using PowerCLI.

I initially tried to retrieve this information using $orgvDC.StorageLimitGB but this gives me the sum of the storage profiles quotas (I want the information per storage profile).

I managed to retrieve the vDC's storage profiles this way:

foreach ($vDCStorageProfile in $orgvDC.ExtensionData.VdcStorageProfiles) {

  }

I assume it is possible as there is a "limit" element in the API documentation but I can't find how to retrieve this limit for each storage profile.

Any idea?

0 Kudos
1 Reply
jfrmilner
Contributor
Contributor

This seems to be the best way to get the breakdown of storage policy consumption at the OrgVDC level:

$OrgVdc = Get-OrgVdc -Name myOrgName

Search-Cloud -QueryType AdminOrgVdcStorageProfile | ? { $_.VdcName -eq $OrgVdc } | Get-CIView

0 Kudos