Sample Exchange

 View Only

vCloud Director Provider and OrgV DC Storage Profile PowerCLI Module 

Nov 09, 2017 10:08 AM

PowerShell cmdlets to expose and add support for updating Organisation VDC and Provider Storage Profiles/Policies in vCloud Director 8.20/9.0

 

The rationale for creating these cmdlets was twofold;

  1. There is currently no way to set the Storage I/O control parameters in vCloud Director outside of the API
  2. The Org VDC/Provider Storage Profiles are not readily exposed in PowerCLI which makes them a bit difficult to work with (need to combine API calls and vCloud Views)

 

Cmdlets:

  • Get-OrgVdcStorageProfile : Returns the Storage Policies/Profiles which are defined on the target Organisation Virtual Datacenter object.
  • Set-OrgVdcStorageProfile : Sets the properties of a provided Org VDC Storage Policies/Profiles.
  • Get-ProviderVdcStorageProfile : Returns the Provider VDC Storage Profile objects for the target organisation.
  • Set-ProviderVdcStorageProfile: Allows the settings to be adjusted on a Provider VDC Storage Profile

Use get-help cmlet -full for usage/examples. For further information please see: http://www.pigeonnuggets.com/2017/11/sioc-and-providerorganization-vdc-storage-profile-management-in-vcloud-director-with-powershell/ or contact me on twitter/Slack @AdrianBegg


#vCloudAPI
#MIT
#vCloudDirectorPowerCLI
#vCloud
#PowerShell
#vSphere

Statistics
0 Favorited
0 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
gz file
Module-vCloud-SIOC.psm1   8 KB   1 version
Uploaded - Apr 09, 2024

Tags and Keywords

Comments

Jul 29, 2022 12:51 PM

Unfortunately, these don't seem to work in vCloud v10.
PS C:\Windows\system32> Get-OrgVdcStorageProfile -OrgName "*"
An error occured attempting to query the Storage Profile with the URI https://domain.com/api/vdcStorageProfile/c2a86f6f-3ad6-4567-93cf-7acce071aaff
At line:451 char:6
+ ... throw "An error occured attempting to query the Storage P ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (An error occure...cf-7acce071aaff:String) [], RuntimeException
+ FullyQualifiedErrorId : An error occured attempting to query the Storage Profile with the URI https://domain.com/api/vdcStorageProfile/c2a86f6f-3ad6-4567-93cf-7acce071aaff

Related Entries and Links

No Related Resource entered.