{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-chaosguardrules-list-rule-response-schema.json", "title": "chaosguardrules.ListRuleResponse", "x-generated": "2026-10-04", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/harness-chaosguard-rules-api-openapi.yml#/components/schemas/chaosguardrules.ListRuleResponse", "type": "object", "properties": { "correlationID": { "type": "string" }, "pagination": { "$ref": "#/$defs/github_com_harness_hce-saas_graphql_server_api.Pagination" }, "rules": { "type": "array", "items": { "$ref": "#/$defs/chaosguardrules.RuleResponse" } } }, "$defs": { "chaosguardrules.RuleResponse": { "type": "object", "required": [ "conditionIds", "name", "ruleId", "timeWindows", "userGroupIds" ], "properties": { "conditionIds": { "type": "array", "items": { "type": "string" } }, "conditions": { "type": "array", "items": { "$ref": "#/$defs/security_governance.Condition" } }, "correlationID": { "type": "string" }, "createdAt": { "type": "integer" }, "createdBy": { "$ref": "#/$defs/hcesdk.UserDetails" }, "description": { "type": "string" }, "isEnabled": { "type": "boolean" }, "name": { "type": "string" }, "ruleId": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "timeWindows": { "type": "array", "items": { "$ref": "#/$defs/security_governance.TimeWindow" } }, "updatedAt": { "type": "integer" }, "updatedBy": { "$ref": "#/$defs/hcesdk.UserDetails" }, "userGroupIds": { "type": "array", "items": { "type": "string" } } } }, "github_com_harness_hce-saas_graphql_server_api.Pagination": { "type": "object", "properties": { "index": { "type": "integer" }, "limit": { "type": "integer" }, "totalItems": { "type": "integer" }, "totalPages": { "type": "integer" } } }, "hcesdk.UserDetails": { "type": "object", "properties": { "email": { "type": "string" }, "userID": { "type": "string" }, "username": { "type": "string" } } }, "security_governance.AccessControl": { "type": "string", "enum": [ "ALLOWED", "BLOCKED" ], "x-enum-varnames": [ "ALLOWED", "BLOCKED" ] }, "security_governance.ApplicationSpec": { "type": "object", "properties": { "operator": { "$ref": "#/$defs/security_governance.Operator" }, "workloads": { "type": "array", "items": { "$ref": "#/$defs/security_governance.Workload" } } } }, "security_governance.ChaosServiceAccountSpec": { "type": "object", "properties": { "operator": { "$ref": "#/$defs/security_governance.Operator" }, "serviceAccounts": { "type": "array", "items": { "type": "string" } } } }, "security_governance.Condition": { "type": "object", "required": [ "conditionId", "faultSpec", "infraType", "name" ], "properties": { "conditionId": { "type": "string" }, "description": { "type": "string" }, "faultSpec": { "$ref": "#/$defs/security_governance.FaultSpec" }, "infraType": { "$ref": "#/$defs/security_governance.InfraType" }, "k8sSpec": { "$ref": "#/$defs/security_governance.K8sSpec" }, "machineSpec": { "$ref": "#/$defs/security_governance.MachineSpec" }, "name": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } } } }, "security_governance.Env": { "type": "object", "properties": { "name": { "type": "string" }, "value": { "type": "string" } } }, "security_governance.Fault": { "type": "object", "properties": { "faultType": { "$ref": "#/$defs/security_governance.FaultType" }, "name": { "type": "string" } } }, "security_governance.FaultSpec": { "type": "object", "properties": { "faults": { "type": "array", "items": { "$ref": "#/$defs/security_governance.Fault" } }, "operator": { "$ref": "#/$defs/security_governance.Operator" } } }, "security_governance.FaultType": { "type": "string", "enum": [ "FAULT_GROUP", "FAULT_NAME" ], "x-enum-varnames": [ "FAULT_GROUP", "FAULT_NAME" ] }, "security_governance.InfraSpec": { "type": "object", "properties": { "infraIds": { "type": "array", "items": { "type": "string" } }, "operator": { "$ref": "#/$defs/security_governance.Operator" } } }, "security_governance.InfraType": { "type": "string", "enum": [ "Kubernetes", "KubernetesV2", "Linux", "Windows" ], "x-enum-varnames": [ "KUBERNETES", "KUBERNETESV2", "Linux", "Windows" ] }, "security_governance.K8sSpec": { "type": "object", "properties": { "applicationSpec": { "$ref": "#/$defs/security_governance.ApplicationSpec" }, "chaosServiceAccountSpec": { "$ref": "#/$defs/security_governance.ChaosServiceAccountSpec" }, "infraSpec": { "$ref": "#/$defs/security_governance.InfraSpec" }, "unverifiedProbe": { "$ref": "#/$defs/security_governance.AccessControl" } } }, "security_governance.MachineSpec": { "type": "object", "properties": { "infraSpec": { "$ref": "#/$defs/security_governance.InfraSpec" }, "unverifiedProbe": { "$ref": "#/$defs/security_governance.AccessControl" } } }, "security_governance.Operator": { "type": "string", "enum": [ "EQUAL_TO", "NOT_EQUAL_TO" ], "x-enum-varnames": [ "EQUAL_TO", "NOT_EQUAL_TO" ] }, "security_governance.Recurrence": { "type": "object", "required": [ "type" ], "properties": { "spec": { "$ref": "#/$defs/security_governance.RecurrenceSpec" }, "type": { "type": "string", "enum": [ "Yearly", "Monthly", "Daily", "Weekly", "None" ] } } }, "security_governance.RecurrenceSpec": { "type": "object", "properties": { "until": { "type": "integer" }, "value": { "description": "set if recurrenceType is Monthly", "type": "integer" } } }, "security_governance.TimeWindow": { "type": "object", "required": [ "startTime", "timeZone" ], "properties": { "duration": { "type": "string" }, "endTime": { "type": "integer" }, "recurrence": { "$ref": "#/$defs/security_governance.Recurrence" }, "startTime": { "type": "integer" }, "timeZone": { "type": "string" } } }, "security_governance.Workload": { "type": "object", "properties": { "applicationMapId": { "type": "string" }, "env": { "type": "array", "items": { "$ref": "#/$defs/security_governance.Env" } }, "kind": { "type": "string" }, "label": { "type": "string" }, "namespace": { "type": "string" }, "services": { "type": "array", "items": { "type": "string" } } } } } }