Fetches information of a specific VPN service.
179865
def show_vpnservice(self, vpnservice, **_params):
        """"""
        return self.get(self.vpnservice_path % (vpnservice), params=_params)
1355303
def get_conn_info(self):
        from sockjs.cyclone.conn import ConnectionInfo

        
        return ConnectionInfo(self.request.remote_ip,
                              self.request.cookies,
                              self.request.arguments,
                              self.request.headers,
                              self.request.path)
756019
public static ipsecparameter get(nitro_service service) throws Exception{
		ipsecparameter obj = new ipsecparameter();
		ipsecparameter[] response = (ipsecparameter[])obj.get_resources(service);
		return response[0];
	}
747073
public static vpnvserver_stats get(nitro_service service, String name) throws Exception{
		vpnvserver_stats obj = new vpnvserver_stats();
		obj.set_name(name);
		vpnvserver_stats response = (vpnvserver_stats) obj.stat_resource(service);
		return response;
	}
221777
def _fetch(self):
        """"""
        if 'uri' in self._meta_data:
            error = "There was an attempt to assign a new uri to this "\
                    "resource, the _meta_data['uri'] is %s and it should"\
                    " not be changed." % (self._meta_data['uri'])
            raise URICreationCollision(error)
        # Make convenience variable with short names for this method.
        _create_uri = self._meta_data['container']._meta_data['uri']
        session = self._meta_data['bigip']._meta_data['icr_session']
        # Invoke the REST operation on the device.
        response = session.post(_create_uri, json={})
        # Make new instance of self
        return self._produce_instance(response)
1218803
public static vpnformssoaction[] get(nitro_service service) throws Exception{
		vpnformssoaction obj = new vpnformssoaction();
		vpnformssoaction[] response = (vpnformssoaction[])obj.get_resources(service);
		return response;
	}
269973
def get(self, service_name, **kwargs):
        """"""
        return self._send(requests.get, service_name, **kwargs)
381400
def server_info(self, verbose=False):
        '''
        
        '''
        url = '{}/{}'.format(self.rest_url, 'serverinfo')
        return self.__auth_req_get(url, verbose=verbose)
651869
def handle_getinfo(self, conn, args):
        """"""
        result = None
        if args[0] == b'version':
            result = self.version
        elif args[0] == b's2k_count':
            # Use highest number of S2K iterations.
            # https://www.gnupg.org/documentation/manuals/gnupg/OpenPGP-Options.html
            # https://tools.ietf.org/html/rfc4880#section-3.7.1.3
            result = '{}'.format(64 << 20).encode('ascii')
        else:
            log.warning('Unknown GETINFO command: %s', args)

        if result:
            keyring.sendline(conn, b'D ' + result)
593664
def fetch_platform_informations(self, callback):
        

        self._protocolVersion = -1
        self._callback = callback

        self._request_protocol_version()
523389
def fetch(self):
        """"""
        start = datetime.now()
        r = requests.get(self._url(), auth=(self.key, ""))
        self._delay_for_ratelimits(start)

        if r.status_code not in self.TRUTHY_CODES:
            return self._handle_request_exception(r)

        response = r.json()
        if self.ENVELOPE:
            self.data = response.get(self.ENVELOPE, {})
        else:
            self.data = response

        # Move to separate function so it can be overrridden
        self._process_meta(response)
1010751
def fetchref(self, ref):
        """"""
        log.debug('[%s] Fetching ref: %s', self.name, ref)
        fetch_info = self.repo.remotes.origin.fetch(ref).pop()
        return fetch_info.ref
954041
public static vpnsessionpolicy_vpnvserver_binding[] get(nitro_service service, String name) throws Exception{
		vpnsessionpolicy_vpnvserver_binding obj = new vpnsessionpolicy_vpnvserver_binding();
		obj.set_name(name);
		vpnsessionpolicy_vpnvserver_binding response[] = (vpnsessionpolicy_vpnvserver_binding[]) obj.get_resources(service);
		return response;
	}
70302
public static vpnicaconnection[] get(nitro_service service) throws Exception{
		vpnicaconnection obj = new vpnicaconnection();
		vpnicaconnection[] response = (vpnicaconnection[])obj.get_resources(service);
		return response;
	}
853729
public static vpnvserver get(nitro_service service, String name) throws Exception{
		vpnvserver obj = new vpnvserver();
		obj.set_name(name);
		vpnvserver response = (vpnvserver) obj.get_resource(service);
		return response;
	}
300807
def _fetch(url, ssl_verify = True):
    
    req = Request(url)
    if ssl_verify:
        page = urlopen(req)
    else:
        ctx = ssl.create_default_context()
        ctx.check_hostname = False
        ctx.verify_mode = ssl.CERT_NONE

        page = urlopen(req, context=ctx)
    content = page.read().decode('utf-8')
    page.close()
    return content
978794
def get_stats(self, service_id, stat_type=FastlyStatsType.ALL):
		""""""
		content = self._fetch("/service/%s/stats/%s" % (service_id, stat_type))
		return content