The API has no Disk Capacity or Disk Used status unfortunately. So you would have to do something like the previous poster suggested and use PowerShell to query the Disk capacity. To disable t...
See more...
The API has no Disk Capacity or Disk Used status unfortunately. So you would have to do something like the previous poster suggested and use PowerShell to query the Disk capacity. To disable the server using the API, this is my code snippet in C#. //retrieve the needed extension data to do stuff: vs = (Services)i.ExtensionData; RDSServerId rId = MyRDSServerId.id MapEntry[] mapEntry = new MapEntry[1]; MapEntry disableServer = new MapEntry { Key = "settings.enabled", Value = false }; try { mapEntry.SetValue(disableServer, 0); vs.RDSServer.RDSServer_Update(rId, mapEntry); } catch(Exception ex) { //do something }