예제 #1
0
def _url(provided_path_parts=()):
    """
    Get rest query url of a specific path.
    """
    ordered_path_parts = ['query']
    ordered_path_parts.extend(provided_path_parts)
    return api_utils.build_url(ordered_path_parts)
예제 #2
0
파일: api.py 프로젝트: rapid7/lecli
def _url(provided_path_parts=()):
    """
    Get rest query url of a specific path.
    """
    ordered_path_parts = ['query']
    ordered_path_parts.extend(provided_path_parts)
    return api_utils.build_url(ordered_path_parts)
예제 #3
0
파일: api.py 프로젝트: qboriskr/lecli
def _url(provided_path_parts=()):
    """
    Get rest query url of logset resource id.
    """
    ordered_path_parts = ['management', 'logsets']
    ordered_path_parts.extend(provided_path_parts)
    return api_utils.build_url(ordered_path_parts)
예제 #4
0
파일: api.py 프로젝트: rapid7/lecli
def _url(provided_path_parts=()):
    """
    Get rest query url of logset resource id.
    """
    ordered_path_parts = ['management', 'logsets']
    ordered_path_parts.extend(provided_path_parts)
    return api_utils.build_url(ordered_path_parts)
예제 #5
0
def _url(provided_path_parts=()):
    """
    Get rest query url of account resource id.
    """
    ordered_path_parts = ['query', 'saved_queries']
    ordered_path_parts.extend(provided_path_parts)
    return api_utils.build_url(ordered_path_parts)
예제 #6
0
파일: api.py 프로젝트: fcr--/lecli
def _url(provided_path_parts=()):
    """
    Get rest query url of account resource id.
    """
    ordered_path_parts = ['management', 'accounts', api_utils.get_account_resource_id()]
    ordered_path_parts.extend(provided_path_parts)
    return api_utils.build_url(ordered_path_parts)
예제 #7
0
파일: api.py 프로젝트: rapid7/lecli
def _url(provided_path_parts=()):
    """
    Get rest query url of account resource id.
    """
    ordered_path_parts = ['management', 'accounts', api_utils.get_account_resource_id()]
    ordered_path_parts.extend(provided_path_parts)
    return api_utils.build_url(ordered_path_parts)
예제 #8
0
def _url(provided_parts=()):
    """
    Get rest query "path" and "url" respectively
    """
    ordered_path_parts = ['management', 'accounts', api_utils.get_account_resource_id(), 'apikeys']
    ordered_path_parts.extend(provided_parts)
    return api_utils.build_url(ordered_path_parts)
예제 #9
0
파일: api.py 프로젝트: rapid7/lecli
def _url(provided_path_parts=()):
    """
    Get rest query url of account resource id.
    """
    ordered_path_parts = ['query', 'saved_queries']
    ordered_path_parts.extend(provided_path_parts)
    return api_utils.build_url(ordered_path_parts)
예제 #10
0
파일: api.py 프로젝트: rapid7/lecli
def _url(provided_parts=()):
    """
    Get rest query "path" and "url" respectively
    """
    ordered_path_parts = ['management', 'accounts', api_utils.get_account_resource_id(), 'apikeys']
    ordered_path_parts.extend(provided_parts)
    return api_utils.build_url(ordered_path_parts)
예제 #11
0
def _url():
    """
    Get rest query url of account resource id.
    """
    ordered_path_parts = [
        'usage', 'accounts',
        api_utils.get_account_resource_id()
    ]
    return api_utils.build_url(ordered_path_parts)
예제 #12
0
파일: api.py 프로젝트: rapid7/lecli
def _url():
    """
    Get rest query url of account resource id.
    """
    ordered_path_parts = ['usage', 'accounts', api_utils.get_account_resource_id()]
    return api_utils.build_url(ordered_path_parts)