This KB provides a query that can be used to identify all applications running on a foundation attached to Tanzu Hub and correlates the associated Spring Boot version with each app identified.
Tanzu Hub 10.3+
Use How to access Tanzu Hub GraphQL API via Altair to access the builtin Altair client in Tanzu Hub.
query GetSpringVersionsResolved { entityQuery { queryEntities( entityType: ["Tanzu.Spring.Instance", "Tanzu.Spring.AppReplica", "Tanzu.Spring.Application"], first: 100 ) { entities { entityId entityName entityType typedEntity { # 1. Check the Instance (returns String) ... on Entity_Tanzu_Spring_Instance_Type { instanceProps: properties { bootVersion: info_spring_boot_version } } # 2. Check the AppReplica (returns [String]) ... on Entity_Tanzu_Spring_AppReplica_Type { replicaProps: properties { bootVersions: info_spring_boot_version } } # 3. Check the Logical Application (returns [String]) ... on Entity_Tanzu_Spring_Application_Type { appProps: properties { bootVersions: info_spring_boot_version } } } } } }}