Esempio n. 1
0
def list(**kwargs):
    '''List all the ACL Profiles in the Message VPN'''
    rest_mgr = RestMgr(kwargs)
    res = rest_mgr.get(suburl)
    send_response(res)
Esempio n. 2
0
def show(name, rdp, **kwargs):
    try:
        rest_mgr = RestMgr(kwargs)
        rest_mgr.get(f'{suburl1}/{rdp}/{suburl}', name)
    except Exception as ex:
        logger.error(f"{ex}")
Esempio n. 3
0
def show(name, **kwargs):
    '''Show the details of an existing ACL Profile'''
    rest_mgr = RestMgr(kwargs)
    res = rest_mgr.get(suburl, name)
    send_response(res)
Esempio n. 4
0
def list(**kwargs):
    '''List all client usernames in the Message VPN'''
    rest_mgr = RestMgr(kwargs)
    res = rest_mgr.get(suburl)
    send_response(res)
Esempio n. 5
0
def list(rdp, **kwargs):
    try:
        rest_mgr = RestMgr(kwargs)
        rest_mgr.get(f'{suburl1}/{rdp}/{suburl}')
    except Exception as ex:
        logger.error(f"{ex}")
Esempio n. 6
0
def list(ctx, **kwargs):
    try:
        rest_mgr = RestMgr(kwargs)
        rest_mgr.get(suburl)
    except Exception as ex:
        logger.error(f"{ex}")
Esempio n. 7
0
def show(name, **kwargs):
    '''Show details of an existing client username'''
    rest_mgr = RestMgr(kwargs)
    res = rest_mgr.get(suburl, name)
    send_response(res)
Esempio n. 8
0
def show(name, **kwargs):
    try:
        rest_mgr = RestMgr(kwargs)
        rest_mgr.get(suburl, name)
    except Exception as ex:
        logger.error(f"{ex}")
Esempio n. 9
0
def list(**kwargs):
    '''List all the queues'''
    rest_mgr = RestMgr(kwargs)
    res = rest_mgr.get(f'{suburl}', None)
    send_response(res)
Esempio n. 10
0
def show(qname, **kwargs):
    '''Dump the properties of an existing queue'''
    rest_mgr = RestMgr(kwargs)
    res = rest_mgr.get(suburl, qname)
    send_response(res)
Esempio n. 11
0
def show(name, **kwargs):
    '''Show the properties of a client profile'''
    rest_mgr = RestMgr(kwargs)
    res = rest_mgr.get(suburl, name)
    send_response(res)
Esempio n. 12
0
def cf_show(ctx, name, **kwargs):
    # try:
    logging.debug(ctx.obj)
    rest_mgr = RestMgr(kwargs)
    res = rest_mgr.get('jndiConnectionFactories', name)
    logger.debug(res)