{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-sql/json-schema/google-cloud-sql-workload-captures-start-replay-request-schema.json",
  "title": "WorkloadCapturesStartReplayRequest",
  "description": "Request to start executing a captured workload on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed).",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-sql-workload-captures-api-openapi.yml#/components/schemas/WorkloadCapturesStartReplayRequest",
  "properties": {
    "startWorkloadReplayContext": {
      "$ref": "#/$defs/StartWorkloadReplayContext",
      "description": "Required. Contains details about the start workload replay operation."
    }
  },
  "type": "object",
  "$defs": {
    "StartWorkloadReplayContext": {
      "type": "object",
      "description": "The context for the `StartWorkloadReplay` operation, which contains details about starting the execution of a captured workload (recorded read and write SQL queries) on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed).",
      "properties": {
        "workloadId": {
          "type": "string",
          "description": "Output only. The ID of the workload to start executing on the replay instance. Each workload capture generates a unique ID in the format `workload-` (for example, `workload-1786046400`). Use this ID to start executing the recorded SQL queries.",
          "readOnly": true
        },
        "replayInstance": {
          "description": "Required. The name of the Cloud SQL instance where the captured workload (SQL queries) is being executed, excluding the project ID (for example, `my-replay-instance`). The instance name must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens. The combined length of `project-ID:instance-name` must be 98 characters or less.",
          "type": "string"
        }
      }
    }
  }
}