def _service_get(s_name, **connection_args):
    nitro = _connect(**connection_args)
    if nitro is None:
        return None
    service = NSService()
    service.set_name(s_name)
    try:
        service = NSService.get(nitro, service)
    except NSNitroError as error:
        log.debug('netscaler module error - NSService.get() failed: {0}'.format(error))
        service = None
    _disconnect(nitro)
    return service
Returns a service ressource or None
dataset/ETHPy150Open saltstack/salt/salt/modules/netscaler.py/_service_get