Exemplo 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)
Exemplo 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}")
Exemplo 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)
Exemplo 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)
Exemplo 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}")
Exemplo n.º 6
0
def list(ctx, **kwargs):
    try:
        rest_mgr = RestMgr(kwargs)
        rest_mgr.get(suburl)
    except Exception as ex:
        logger.error(f"{ex}")
Exemplo 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)
Exemplo 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}")
Exemplo n.º 9
0
def list(**kwargs):
    '''List all the queues'''
    rest_mgr = RestMgr(kwargs)
    res = rest_mgr.get(f'{suburl}', None)
    send_response(res)
Exemplo 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)
Exemplo 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)
Exemplo 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)