Enthusiast
Enthusiast

Do we have any APIs/ PowerCLI cmdlets exposed to import storage policy created in vCenter into provider VDC?

Do we have any APIs/ PowerCLI cmdlets exposed to import storage policy created in vCenter into provider VDC?

I need to import "TestStoragePolicy" created in vCenter to provider vdc as shown in the screenshot using API/CLI.

storagepolicy.PNG

Any assistance that I can get would be much appreciated.

Thank you

0 Kudos
3 Replies
Leadership
Leadership

The community module vCloud Director Provider and OrgV DC Storage Profile PowerCLI Module might help.


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

0 Kudos
Enthusiast
Enthusiast

LucD​ Thank you for your response.

I was able to Get-ProviderVdcStorageProfile -->get list of storage policies and Set-ProviderVdcStorageProfile --> change existing policies as shown in the screenshot.

But I need to add new policy SpbmStoragePolicy (TestStoragePolicy) created in vCenter to provider vdc. Is it possible to achieve this use-case as shown in 2nd screenshot?

output.PNGop.PNG

0 Kudos
Leadership
Leadership

Not that I know of I'm afraid.


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

0 Kudos