{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cloudera/main/json-schema/cloudera-restore-snapshot-response-schema.json",
  "title": "RestoreSnapshotResponse",
  "description": "Response object for the RestoreSnapshot method.",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudera-opdb-api-openapi.yml#/components/schemas/RestoreSnapshotResponse",
  "type": "object",
  "properties": {
    "environmentName": {
      "type": "string",
      "description": "The name of the environment."
    },
    "databaseName": {
      "type": "string",
      "description": "The name of the database."
    },
    "snapshotName": {
      "type": "string",
      "description": "The name of the snapshot."
    },
    "targetEnvironmentName": {
      "type": "string",
      "description": "The name of the target environment."
    },
    "targetDatabaseName": {
      "type": "string",
      "description": "The name of the target database."
    },
    "status": {
      "description": "The status of the restore snapshot.",
      "$ref": "#/$defs/SnapshotStatusType"
    },
    "restoreTime": {
      "type": "integer",
      "format": "int64",
      "description": "The time when the snapshot restore was started."
    },
    "commandID": {
      "type": "integer",
      "format": "int64",
      "description": "The submitted Command ID of the restore snapshot."
    },
    "statusReason": {
      "type": "string",
      "description": "Reason for the status."
    }
  },
  "$defs": {
    "SnapshotStatusType": {
      "type": "string",
      "description": "Snapshot Status Type.\n `NEW` - Expected when a snapshot request was just requested. `IN_PROGRESS` - When a snapshot request is in progress. `FAILED` - If for any reason a snapshot request has failed. `SUCCESSFUL` - A snapshot request has completed successfully. `LOCKED` - A snapshot exists, but can't be restored or read. `DELETED` - A snapshot existed but was just deleted. `CORRUPT` - A snapshot got corrupted. `DELETING` - A snapshot is being deleted.",
      "enum": [
        "NEW",
        "IN_PROGRESS",
        "FAILED",
        "SUCCESSFUL",
        "LOCKED",
        "DELETED",
        "CORRUPT",
        "DELETING",
        "UNKNOWN"
      ]
    }
  }
}