OBJECT

HubQuery

Tanzu Hub Query Language is derived from Secure State Query Language (SSQL) and allows the user to search and query the graph model.

Until this has specific documentation please see: https://docs.vmware.com/en/CloudHealth-Secure-State/services/chss-usage/GUID-explore-ssql.html

link GraphQL Schema definition

  • type HubQuery {
  • # Provide autocompletion for an Tanzu Hub Graph query string
  • #
  • # **NOTE:** This API/functionality is in Alpha, This functionality can be unstable
  • # and schema elements may change over future iterations.
  • #
  • # Arguments
  • # limitPerCategory: Max responses per category
  • # managementEndpointIds: Optional management endpoint IDs to
  • # limit query scope.
  • # providers: Optional providers to limit query scope
  • # query: Tanzu Hub Graph Query string to autocomplete
  • autocomplete(
  • limitPerCategory: Int,
  • managementEndpointIds: [String!],
  • providers: [String!],
  • query: String!
  • ): HubQueryAutocompleteResponse!
  • # Run a Tanzu Hub query
  • #
  • # **NOTE:** This API/functionality is in Alpha, This functionality can be unstable
  • # and schema elements may change over future iterations.
  • #
  • # Arguments
  • # after: Return records after the given cursor, as per GraphQL
  • # Relay spec
  • # before: Return records before the given cursor, as per GraphQL
  • # Relay spec
  • # first: Return first N records in a paged response, as per
  • # GraphQL Relay spec. Only applied to LIST queries (not graphs)
  • # managementEndpointIds: Optional management endpoint IDs to
  • # limit query scope.
  • # providers: Optional providers to limit query scope
  • # query: Query string
  • # sort: Sort field for LIST results, default is by entityId
  • # traversalScope: Optional traversalScope for performance,
  • # defaults to ANY_PARTITION
  • # tree: For graph queries (with relationship traversals),
  • # generate full GRAPH (default) or set to false to use graph traversals as filters
  • # and only return initial entities
  • query(
  • after: String,
  • before: String,
  • first: Int,
  • managementEndpointIds: [String!],
  • providers: [String!],
  • query: String!,
  • sort: QuerySort,
  • traversalScope: EntityTraversalScope,
  • tree: Boolean
  • ): HubQueryResponse!
  • # Validate and translate a given Tanzu Hub Graph query string to GraphQL
  • #
  • # **NOTE:** This API/functionality is in Alpha, This functionality can be unstable
  • # and schema elements may change over future iterations.
  • #
  • # Arguments
  • # managementEndpointIds: Optional management endpoint IDs to
  • # limit query scope.
  • # providers: Optional providers to limit query scope
  • # query: Input query
  • # traversalScope: Optional traversalScope for performance,
  • # defaults to ANY_PARTITION
  • # tree: For graph queries (with relationship traversals),
  • # generate full GRAPH (default) or set to false to use graph traversals as filters
  • # and only return initial entities
  • translate(
  • managementEndpointIds: [String!],
  • providers: [String!],
  • query: String!,
  • traversalScope: EntityTraversalScope,
  • tree: Boolean
  • ): HubQueryTranslation!
  • }