OBJECT

TanzuHubPolicy

Hub policy

link GraphQL Schema definition

  • type TanzuHubPolicy implements HubPolicy, Node, NodeVersion {
  • # CSP user who created hub policy
  • createdBy: User!
  • # Timestamp at which hub policy is created. Expressed in UTC ISO-8601 format
  • creationTime: DateTime!
  • # CSP project id associated with policy
  • cspProjects: [Entity!]
  • # Policy description
  • description: LocalizedString
  • # If the policy is enabled or not
  • # If disabled, schedule based policy evaluation will stop. But user will still be
  • # able to evaluate the policy using API.
  • enabled: Boolean!
  • # Opaque global ID
  • id: ID!
  • # Timestamp at which hub policy is updated. Expressed in UTC ISO-8601 format
  • lastUpdateTime: DateTime
  • # Versioning ID
  • nodeVersion: ID!
  • # Policy id
  • policyId: String!
  • # Policy name
  • policyName: LocalizedString!
  • # Policy Providers like Cost, Spring, Aria/Tanzu
  • policyProvider: String!
  • # Rules for this policy.
  • # A rule is a set Graphql Query + post processing that filters data in the Hub
  • # Graph.
  • # Rule has associated actions.
  • # A rule is considered evaluated to NON_COMPLIANT if there are resources returned
  • # by the graphQL query + post-processing
  • # If a rule evaluates to NON_COMPLIANT, the associated actions are executed.
  • #
  • # Rules for a policy are a executed sequentially and if any rule evaluates to
  • # NON_COMPLIANT further rule execution is stopped.
  • rules: [TanzuHubPolicyRule!]!
  • # Policy execution schedule
  • schedule: TanzuHubPolicySchedule!
  • # CSP user who updated hub policy
  • updatedBy: User
  • }