Tanzu Hub provides a built-in GraphQL client (Altair) that allows developers and platform engineers to explore the schema, test queries, and execute mutations directly within the platform.
Tanzu Hub is built on an "API-first" architecture where all assets and operations are accessible through a public GraphQL API. To facilitate rapid development and troubleshooting, Tanzu Hub includes a local instance of the Altair GraphQL Client.
Tanzu Hub
https://<YOUR-TANZU-HUB-FQDN>/hub/altair<YOUR-TANZU-HUB-FQDN> with the hostname configured during your Tanzu Hub installation (e.g., hub.example.com).Because Tanzu Hub is secure by default, you must provide your authentication token in the request header:
https://<YOUR-TANZU-HUB-FQDN>/hub/graphql
To test your connection, paste the following query into the editor window to list the spaces attached to your Hub:
GraphQL:
query getSpaces( $filter: QueryFilter, $first: Int = 10, $after: String, $sort: [QuerySort!], $spaceEntityId: [EntityId!],) { entityQuery { queryEntities( entityTypeConst: Tanzu_TAS_Space, entityId: $spaceEntityId, first: $first, after: $after, filter: $filter, sort: $sort, ) { totalCount pageInfo { hasNextPage endCursor } entities { name: entityName id: entityId entityType creationTime lastUpdateTime properties { name value type } organization: entitiesOut(entityType: "Tanzu.TAS.Organization") { entities { name: entityName id: entityId entityType foundation: entitiesOut(entityType: "Tanzu.TAS.Foundation") { entities { name: entityName id: entityId entityType } } } } } } }}