{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-certificate-manager/json-schema/google-cloud-certificate-manager-certificate-revocation-list-schema.json",
  "title": "CertificateRevocationList",
  "description": "A CertificateRevocationList corresponds to a signed X.509 certificate Revocation List (CRL). A CRL contains the serial numbers of certificates that should no longer be trusted.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-certificate-manager-privateca-projects-api-openapi.yml#/components/schemas/CertificateRevocationList",
  "type": "object",
  "properties": {
    "updateTime": {
      "description": "Output only. The time at which this CertificateRevocationList was updated.",
      "readOnly": true,
      "format": "google-datetime",
      "type": "string"
    },
    "sequenceNumber": {
      "description": "Output only. The CRL sequence number that appears in pem_crl.",
      "readOnly": true,
      "type": "string",
      "format": "int64"
    },
    "revisionId": {
      "description": "Output only. The revision ID of this CertificateRevocationList. A new revision is committed whenever a new CRL is published. The format is an 8-character hexadecimal string.",
      "type": "string",
      "readOnly": true
    },
    "name": {
      "description": "Identifier. The resource name for this CertificateRevocationList in the format `projects/*/locations/*/caPools/*certificateAuthorities/*/ certificateRevocationLists/*`.",
      "type": "string"
    },
    "revokedCertificates": {
      "description": "Output only. The revoked serial numbers that appear in pem_crl.",
      "readOnly": true,
      "type": "array",
      "items": {
        "$ref": "#/$defs/RevokedCertificate"
      }
    },
    "labels": {
      "description": "Optional. Labels with user-defined metadata.",
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "createTime": {
      "format": "google-datetime",
      "description": "Output only. The time at which this CertificateRevocationList was created.",
      "readOnly": true,
      "type": "string"
    },
    "pemCrl": {
      "description": "Output only. The PEM-encoded X.509 CRL.",
      "readOnly": true,
      "type": "string"
    },
    "accessUrl": {
      "readOnly": true,
      "type": "string",
      "description": "Output only. The location where 'pem_crl' can be accessed."
    },
    "state": {
      "description": "Output only. The State for this CertificateRevocationList.",
      "readOnly": true,
      "type": "string",
      "enum": [
        "STATE_UNSPECIFIED",
        "ACTIVE",
        "SUPERSEDED"
      ]
    }
  },
  "$defs": {
    "RevokedCertificate": {
      "type": "object",
      "properties": {
        "revocationReason": {
          "type": "string",
          "description": "The reason the Certificate was revoked.",
          "enum": [
            "REVOCATION_REASON_UNSPECIFIED",
            "KEY_COMPROMISE",
            "CERTIFICATE_AUTHORITY_COMPROMISE",
            "AFFILIATION_CHANGED",
            "SUPERSEDED",
            "CESSATION_OF_OPERATION",
            "CERTIFICATE_HOLD",
            "PRIVILEGE_WITHDRAWN",
            "ATTRIBUTE_AUTHORITY_COMPROMISE"
          ]
        },
        "certificate": {
          "description": "The resource name for the Certificate in the format `projects/*/locations/*/caPools/*/certificates/*`.",
          "type": "string"
        },
        "hexSerialNumber": {
          "type": "string",
          "description": "The serial number of the Certificate."
        }
      },
      "description": "Describes a revoked Certificate."
    }
  }
}