Virtual Machine Information
Last Updated December 16, 2024

vCloud Director also stores virtual machine configuration information uploaded from an OVF file into a vApp template. If you have not modified a virtual machine configuration since uploading, you can use this information to verify the configuration of the virtual machine before restoring it.
The following methods, applied to an object of type
VM
, retrieve configuration data structures from vCloud Director.

Configuration Data for a Virtual Machine

  • GetVirtualHardwareSection()
    Get hardware requirements of the virtual machine. Returns
    VirtualhardwareSection_Type
    .
  • GetOperatingSystemSection()
    Get information about the guest operating system installed on this virtual machine. Returns
    OperatingSystemSectionType
    .
  • GetNetworkConnectionSection()
    Get information about virtual network devices used by this virtual machine. Returns
    NetworkConnectionSectionType
    .
  • GetRuntimeInfoSection()
    Get version of VMware Tools installed on the virtual machine. Returns
    RuntimeInfoSectionType
    .
The following example shows the REST API calls corresponding to the virtual machine configuration sections available from the SDK for .NET. REST API calls to get virtual machine configuration data:
GET https://vCloud/api/vapp/id/virtualhardwaresection
GET https://vCloud/api/vapp/id/operatingSystemSection 
GET https://vCloud/api/vapp/id/networkConnectionSection 
GET https://vCloud/api/vapp/id/runtimeInfoSection