Esempio n. 1
0
 public static APIEntity GetIp4Network(ProteusAPI wsdProxy, string Name, long EntityId)
 {
     APIEntity Entity = null;
     try
     {
         APIEntity Parent = wsdProxy.getParent(EntityId);
         Entity = wsdProxy.getEntityByName(Parent.id, Name, ObjectTypes.IP4Network);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return Entity;
 }
Esempio n. 2
0
 public static APIEntity GetDnsView(ProteusAPI Proxy, string View, string Parent)
 {
     try
     {
         APIEntity[] Views = GetObjects(Proxy, View, ObjectTypes.View, 0, 100);
         foreach (APIEntity dnsView in Views)
         {
             APIEntity ParentView = Proxy.getParent(dnsView.id);
             if (ParentView.name == Parent)
             {
                 return dnsView;
             }
         }
         return null;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }