From 38d2faedae48ec68f25fe55a88d0f80b923fbe89 Mon Sep 17 00:00:00 2001 From: Jon Marius Venstad Date: Sat, 28 Sep 2019 20:04:38 +0200 Subject: Expose application id through an interface --- .../controller/api/integration/ApplicationIdSource.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/ApplicationIdSource.java (limited to 'controller-api/src') diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/ApplicationIdSource.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/ApplicationIdSource.java new file mode 100644 index 00000000000..0562ec91fb1 --- /dev/null +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/ApplicationIdSource.java @@ -0,0 +1,16 @@ +package com.yahoo.vespa.hosted.controller.api.integration; + +import com.yahoo.config.provision.ApplicationId; +import com.yahoo.config.provision.TenantName; + +import java.util.List; + +public interface ApplicationIdSource { + + /** Returns a list of all known application instance IDs. */ + List listApplications(); + + /** Returns a list of all known application instance IDs for the given tenant. */ + List listApplications(TenantName tenant); + +} -- cgit v1.2.3