def get_data_url(deployment_name,
                 endpoint_type='juttle',
                 token_manager=None,
                 app_url=defaults.APP_URL):
    deployment_details = deployments.get_deployment_details(deployment_name,
                                                            token_manager=token_manager,
                                                            app_url=app_url)

    # use a random juttle endpoint
    endpoints = []
    for endpoint in deployment_details['endpoints']:
        if endpoint_type in endpoint['type']:
            endpoints.append(endpoint)

    if len(endpoints) == 0:
        raise JutException('No data engine currently configured for '
                           'deployment "%s"' % deployment_name)

    return random.choice(endpoints)['uri']
.. versionadded:: 0.9.5
dataset/ETHPy150Open jut-io/jut-python-tools/jut/api/data_engine.py/get_data_url--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/file.py/append