{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-renewal-events-request-schema.json",
  "title": "RenewalEventsRequest",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-commitment-orchestrator-events-apis-api-openapi.yml#/components/schemas/RenewalEventsRequest",
  "type": "object",
  "properties": {
    "cloud_account_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "When non-empty, only renewal events for these cloud accounts are returned"
    },
    "start_date": {
      "type": "string",
      "format": "date",
      "description": "Start of filter range (YYYY-MM-DD). Defaults to 30 days before today (UTC) when omitted."
    },
    "end_date": {
      "type": "string",
      "format": "date",
      "description": "End of filter range (YYYY-MM-DD). Defaults to today (UTC) when omitted."
    },
    "regions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "When non-empty, only events whose region matches one of these values"
    },
    "service": {
      "type": "string",
      "description": "AWS service type; defaults to Amazon Elastic Compute Cloud - Compute when omitted",
      "enum": [
        "Amazon Elastic Compute Cloud - Compute",
        "Amazon Relational Database Service"
      ],
      "default": "Amazon Elastic Compute Cloud - Compute"
    }
  }
}