0 Replies Latest reply on Apr 10, 2015 1:23 AM by Ebright1

    How do I update VDC Storage Policy using vCloud .NET SDK

    Ebright1 Lurker

      Hi Guys,


      Can someone please point me in the right direction. I'm trying to update the storage limit of an existing VDC storage policy. I've tried the code below but it doesn't work and there isn't any good documentation anywhere.


                          List<ReferenceType> providerVdcStorageProfileRef = adminVdc.GetAdminVdcStorageProfileRefs();
                          AdminVdcStorageProfile avsp = AdminVdcStorageProfile.GetAdminVdcStorageProfileByReference(_client, providerVdcStorageProfileRef[0]);
                          AdminVdcStorageProfileType storage = new AdminVdcStorageProfileType();
                          storage.Limit = 1024;
                          storage.Default = true;
                          storage.Units = "MB";
                          storage.Enabled = true;
                          storage.EnabledSpecified = true;
                          storage.name = "NFS02";