def get_url(access_token, endpoint=ams_rest_endpoint, flag=True):
return do_ams_get_url(endpoint, access_token, flag)<EOL>
Get Media Services Final Endpoint URL.
    Args:
        access_token (str): A valid Azure authentication token.
        endpoint (str): Azure Media Services Initial Endpoint.
        flag (bol): flag.

    Returns:
        HTTP response. JSON body.