public static HttpListConfigsRequest createFromNamedListRequest(HttpRequest req) {
        // http://*/config/v2/tenant/*/application/*/*/
        // http://*/config/v2/tenant/*/application/*/*/*/
        // http://*/config/v2/tenant/*/application/*/environment/*/region/*/instance/*/*/
        // http://*/config/v2/tenant/*/application/*/environment/*/region/*/instance/*/*/*/
        BindingMatch<?> bm = HttpConfigRequests.getBindingMatch(req, 
                "http://*/config/v2/tenant/*/application/*/environment/*/region/*/instance/*/*/*/", 
                "http://*/config/v2/tenant/*/application/*/*/*/");
        if (bm.groupCount()>6) return createFromNamedListRequestFullAppId(req, bm);
        return createFromNamedListRequestSimpleAppId(req, bm);
    }
A request to list config, bound to tenant and app id. Optionally bound to a config key, for request for named config.

@author vegardh
configserver/src/main/java/com/yahoo/vespa/config/server/http/v2/request/HttpListConfigsRequest.java