Exemplo n.º 1
0
 public Dictionary <string, ReferenceType> GetVMWHostRefsByName()
 {
     try
     {
         return(VMWVimServer.GetVMWHostRefsByName(this.VcloudClient, this.Reference.href + "/hostReferences"));
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Exemplo n.º 2
0
 public Dictionary <string, VmObjectRefType> GetVms(int page)
 {
     try
     {
         return(VMWVimServer.GetVms(this.VcloudClient, this.Reference.href + "/vmsList?page=" + (object)page));
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Exemplo n.º 3
0
 public Dictionary <string, VimObjectRefType> GetNetworkVimRefsByMoref()
 {
     try
     {
         return(VMWVimServer.GetNetworkVimRefsByMoref(this.VcloudClient, this.Reference.href + "/networks"));
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Exemplo n.º 4
0
 public Dictionary <string, ResourcePoolType> GetResourcePools()
 {
     try
     {
         return(VMWVimServer.GetResourcePools(this.VcloudClient, this.Reference.href + "/resourcePoolList"));
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Exemplo n.º 5
0
 public static Dictionary <string, VmObjectRefType> GetVms(
     vCloudClient client,
     ReferenceType vimServerRef)
 {
     try
     {
         return(VMWVimServer.GetVms(client, vimServerRef.href + "/vmsList"));
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Exemplo n.º 6
0
 public static Dictionary <string, ReferenceType> GetVMWHostRefsByName(
     vCloudClient client,
     ReferenceType vimServerRef)
 {
     try
     {
         string url = vimServerRef.href + "/hostReferences";
         return(VMWVimServer.GetVMWHostRefsByName(client, url));
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Exemplo n.º 7
0
 public static Dictionary <string, VimObjectRefType> GetNetworkVimRefsByMoref(
     vCloudClient client,
     ReferenceType vimServerRef)
 {
     try
     {
         string url = vimServerRef.href + "/networks";
         return(VMWVimServer.GetNetworkVimRefsByMoref(client, url));
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Exemplo n.º 8
0
 public static Dictionary <string, ResourcePoolType> GetResourcePools(
     vCloudClient client,
     ReferenceType vimServerRef)
 {
     try
     {
         string url = vimServerRef.href + "/resourcePoolList";
         return(VMWVimServer.GetResourcePools(client, url));
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }