INTERFACE

HubPolicyQueries

query entrypoint for hub policy provider

link GraphQL Schema definition

  • interface HubPolicyQueries {
  • # Get policy details based on filter criteria
  • #
  • # 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
  • # filter: Optional filters to filter policies that are fetched
  • # first: Return first N records in a paged response, as per
  • # GraphQL Relay spec
  • # sort: Results are sorted as per fields and order specified.
  • # Supported fields are policyName, createdBy and updatedBy
  • queryHubPolicies(
  • after: String,
  • before: String,
  • filter: QueryFilter,
  • first: Int,
  • sort: [QuerySort!]
  • ): HubPolicyConnection
  • # Get policy run details.
  • # All providers may not have run details and in that case 'Not implemented'
  • # exception should be thrown.
  • #
  • # 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
  • # filter: Optional filters to filter policy runs that are
  • # fetched.
  • # first: Return first N records in a paged response, as per
  • # GraphQL Relay spec
  • # sort: Results are sorted as per fields and order specified.
  • # Supported fields are name, status. Default Sort will be on LastUpdateTime
  • queryHubPolicyRuns(
  • after: String,
  • before: String,
  • filter: QueryFilter,
  • first: Int,
  • sort: [QuerySort!]
  • ): HubPolicyRunConnection
  • }