private static HttpListConfigsRequest createFromNamedListRequestSimpleAppId(HttpRequest req, BindingMatch<?> bm) {
        TenantName tenant = TenantName.from(bm.group(2));
        ApplicationName application = ApplicationName.from(bm.group(3));
        String conf = bm.group(4);
        String cId;
        String cName;
        String cNamespace;
        if (bm.groupCount() >= 6) {
            cId = bm.group(5);
        } else {
            cId = "";
        }
        Tuple2<String, String> nns = HttpConfigRequest.nameAndNamespace(conf);
        cName = nns.first;
        cNamespace = nns.second;
        ConfigKey<?> key = new ConfigKey<>(cName, cId, cNamespace); 
        return new HttpListConfigsRequest(key, new ApplicationId.Builder().tenant(tenant).applicationName(application).build(),
                                          req.getBooleanProperty(HttpConfigRequests.RECURSIVE_QUERY_PROPERTY), false);
    }
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