Use this API to fetch gslbsite resource of given name .
337619
public static gslbsite get(nitro_service service, String sitename) throws Exception{
		gslbsite obj = new gslbsite();
		obj.set_sitename(sitename);
		gslbsite response = (gslbsite) obj.get_resource(service);
		return response;
	}
590991
@Nullable
  public URL getResource (final String name)
  {
    URL ret = null;

    if (m_aBestCandidate != null)
    {
      ret = m_aBestCandidate.getResource (name);
      if (ret != null)
        return ret;
      m_aBestCandidate = null;
    }

    IClassLoadHelper aLoadHelper = null;

    final Iterator <IClassLoadHelper> iter = m_aLoadHelpers.iterator ();
    while (iter.hasNext ())
    {
      aLoadHelper = iter.next ();
      ret = aLoadHelper.getResource (name);
      if (ret != null)
        break;
    }

    m_aBestCandidate = aLoadHelper;
    return ret;
  }
1209740
public static appfwhtmlerrorpage get(nitro_service service, String name) throws Exception{
		appfwhtmlerrorpage obj = new appfwhtmlerrorpage();
		obj.set_name(name);
		appfwhtmlerrorpage response = (appfwhtmlerrorpage) obj.get_resource(service);
		return response;
	}
632707
def get_resource(resource_name):
    

    resource_path = None
    if hasattr(sys, "frozen"):
        resource_path = os.path.normpath(os.path.join(os.path.dirname(sys.executable), resource_name))
    elif not hasattr(sys, "frozen") and pkg_resources.resource_exists("gns3server", resource_name):
        resource_path = pkg_resources.resource_filename("gns3server", resource_name)
        resource_path = os.path.normpath(resource_path)
    return resource_path
566217
public static gslbsite_stats get(nitro_service service, String sitename) throws Exception{
		gslbsite_stats obj = new gslbsite_stats();
		obj.set_sitename(sitename);
		gslbsite_stats response = (gslbsite_stats) obj.stat_resource(service);
		return response;
	}
908295
public static gslbvserver_spilloverpolicy_binding[] get(nitro_service service, String name) throws Exception{
		gslbvserver_spilloverpolicy_binding obj = new gslbvserver_spilloverpolicy_binding();
		obj.set_name(name);
		gslbvserver_spilloverpolicy_binding response[] = (gslbvserver_spilloverpolicy_binding[]) obj.get_resources(service);
		return response;
	}
138108
public static netprofile get(nitro_service service, String name) throws Exception{
		netprofile obj = new netprofile();
		obj.set_name(name);
		netprofile response = (netprofile) obj.get_resource(service);
		return response;
	}
648071
public static base_response update(nitro_service client, gslbparameter resource) throws Exception {
		gslbparameter updateresource = new gslbparameter();
		updateresource.ldnsentrytimeout = resource.ldnsentrytimeout;
		updateresource.rtttolerance = resource.rtttolerance;
		updateresource.ldnsmask = resource.ldnsmask;
		updateresource.v6ldnsmasklen = resource.v6ldnsmasklen;
		updateresource.ldnsprobeorder = resource.ldnsprobeorder;
		updateresource.dropldnsreq = resource.dropldnsreq;
		return updateresource.update_resource(client);
	}
877303
def get_service(self, name, search_filter):
        """"""
        if self.version == 1:
            service_filter = "service.{name}".format(name=name)
            return jmespath.search(service_filter, self.get(search_filter))
        else:
            service_filter = "services[?name=='{}']".format(name)
            return one(jmespath.search(service_filter, self.get(search_filter)))
1325348
public static dnsview_gslbservice_binding[] get(nitro_service service, String viewname) throws Exception{
		dnsview_gslbservice_binding obj = new dnsview_gslbservice_binding();
		obj.set_viewname(viewname);
		dnsview_gslbservice_binding response[] = (dnsview_gslbservice_binding[]) obj.get_resources(service);
		return response;
	}
385301
public static crvserver_lbvserver_binding[] get(nitro_service service, String name) throws Exception{
		crvserver_lbvserver_binding obj = new crvserver_lbvserver_binding();
		obj.set_name(name);
		crvserver_lbvserver_binding response[] = (crvserver_lbvserver_binding[]) obj.get_resources(service);
		return response;
	}
922386
public static gslbvserver_domain_binding[] get(nitro_service service, String name) throws Exception{
		gslbvserver_domain_binding obj = new gslbvserver_domain_binding();
		obj.set_name(name);
		gslbvserver_domain_binding response[] = (gslbvserver_domain_binding[]) obj.get_resources(service);
		return response;
	}
345696
def resource(self, name):
        
        for resource in self.resources():
            if resource.name.lower() == name.lower():
                return resource
        raise NotFound('Unable to find resource %s' % name)
447676
public static gslbvserver[] get_filtered(nitro_service service, String filter) throws Exception{
		gslbvserver obj = new gslbvserver();
		options option = new options();
		option.set_filter(filter);
		gslbvserver[] response = (gslbvserver[]) obj.getfiltered(service, option);
		return response;
	}
855599
public URL getResource(final String name) {
		final String normalizedName = Path.normalizeResourcePath(rootPath
				+ (name.startsWith("/") ? "" : "/") + name).trim();

		log.debug("Searching bundle " + bundle
						+ " for resource [{}], normalized to [{}]", name,
				normalizedName);

		URL url = resourceCache.get(normalizedName);

		if (url == null && !normalizedName.isEmpty()) {
			url = bundle.getEntry(normalizedName);
			if (url == null) {
				log.debug("getEntry failed, trying with /META-INF/resources/ in bundle class space");
				// Search attached bundles for web-fragments
				Set<Bundle> bundlesInClassSpace = ClassPathUtil.getBundlesInClassSpace(bundle, new HashSet<>());
				for (Bundle bundleInClassSpace : bundlesInClassSpace) {
					url = bundleInClassSpace.getEntry("/META-INF/resources/" + normalizedName);
					if (url != null) {
						break;
					}
				}
			}
			// obviously still not found might be available from a attached bundle resource
			if (url == null) {
				log.debug("getEntry failed, fallback to getResource");
				url = bundle.getResource(normalizedName);
			}
			if (url == null) {
				url = NO_URL;
			}
			resourceCache.putIfAbsent(normalizedName, url);
		}

		if (url != null && url != NO_URL) {
			log.debug("Resource found as url [{}]", url);
		} else {
			log.debug("Resource not found");
			url = null;
		}
		return url;
	}
513144
public static lbgroup_lbvserver_binding[] get(nitro_service service, String name) throws Exception{
		lbgroup_lbvserver_binding obj = new lbgroup_lbvserver_binding();
		obj.set_name(name);
		lbgroup_lbvserver_binding response[] = (lbgroup_lbvserver_binding[]) obj.get_resources(service);
		return response;
	}
1367877
public static lbgroup get(nitro_service service, String name) throws Exception{
		lbgroup obj = new lbgroup();
		obj.set_name(name);
		lbgroup response = (lbgroup) obj.get_resource(service);
		return response;
	}