{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/looker/json-schema/looker-instance-backup-schema.json",
  "title": "InstanceBackup",
  "description": "The details of a backup resource.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/looker-projects-api-openapi.yml#/components/schemas/InstanceBackup",
  "type": "object",
  "properties": {
    "encryptionConfig": {
      "$ref": "#/$defs/EncryptionConfig",
      "description": "Output only. Current status of the CMEK encryption"
    },
    "expireTime": {
      "type": "string",
      "format": "google-datetime",
      "description": "Output only. The time when the backup will be deleted.",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "Immutable. The relative resource name of the backup, in the following form: `projects/{project_number}/locations/{location_id}/instances/{instance_id}/backups/{backup}`"
    },
    "state": {
      "type": "string",
      "enum": [
        "STATE_UNSPECIFIED",
        "CREATING",
        "DELETING",
        "ACTIVE",
        "FAILED"
      ],
      "readOnly": true,
      "description": "Output only. The current state of the backup."
    },
    "createTime": {
      "type": "string",
      "description": "Output only. The time when the backup was started.",
      "readOnly": true,
      "format": "google-datetime"
    }
  },
  "$defs": {
    "EncryptionConfig": {
      "properties": {
        "kmsKeyState": {
          "description": "Output only. Status of the CMEK key.",
          "type": "string",
          "enum": [
            "KMS_KEY_STATE_UNSPECIFIED",
            "VALID",
            "REVOKED"
          ],
          "readOnly": true
        },
        "kmsKeyName": {
          "type": "string",
          "description": "Optional. Immutable. Name of the CMEK key in KMS (input parameter)."
        },
        "kmsKeyNameVersion": {
          "description": "Output only. Full name and version of the CMEK key currently in use to encrypt Looker data. Format: `projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}/cryptoKeyVersions/{version}`. Empty if CMEK is not configured in this instance.",
          "type": "string",
          "readOnly": true
        }
      },
      "type": "object",
      "description": "Encryption configuration (i.e. CMEK)."
    }
  }
}