VMware {code} Community
cfor
Expert
Expert

Remove VdcStorageProfile from VDC

I am trying to remove unused VdcStorageProfiles from a VDC.  Does anyone have an example of getting this to work?

I happen to be using the .NET SDK, but can use rest calls to remove if required.

I tried using the SDK method VdcAdmin.UpdateAdminVdcStorageProfiles but it does not seem to work currently (or is not working as expected) [also this method seems very odd for the API, a big change from how delete's are normally done.

Thanks for any assistance.

ChrisF (VCP4, VCP5, VCP-Cloud) - If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
0 Kudos
3 Replies
jrwise
Enthusiast
Enthusiast

Running into the same issue. Did you ever find what was wrong?

0 Kudos
cpatidar
VMware Employee
VMware Employee

cfor​ ,jrwise

I believe using REST API guide you can Create, Retrieve, Update and Delete the objects. Below are few related REST API call which can help you over this:

POST /admin/vdc/{id}/vdcStorageProfiles Add or remove virtual datacenter storage classes.

GET /admin/vdcStorageProfile/{id} Returns the representation of a vDC storage profile

Reference Link:

Using the vCloud API Schema Reference

Let me know if this helps!

Cheers.

0 Kudos
kclo
Contributor
Contributor

Hi,

How to change the storage limit of VDC Storage Quota?

I have tested that above API can only add storageProfile to VDC

Thanks!

0 Kudos