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; }
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; } }