{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-certificate-authority-bundle-version-collection-schema.json",
  "title": "CertificateAuthorityBundleVersionCollection",
  "description": "The results of a certificate authority (CA) version search. Results contain CA version summary objects and other data.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-certificates-api-openapi.yml#/components/schemas/CertificateAuthorityBundleVersionCollection",
  "properties": {
    "items": {
      "description": "A list of CA version summary objects.",
      "items": {
        "$ref": "#/$defs/CertificateAuthorityBundleVersionSummary"
      },
      "type": "array"
    }
  },
  "required": [
    "items"
  ],
  "type": "object",
  "$defs": {
    "CertificateAuthorityBundleVersionSummary": {
      "description": "The properties of a version of a bundle for a certificate authority (CA). Certificate authority bundle version summary objects do not include the actual contents of the certificate.\n",
      "properties": {
        "certificateAuthorityId": {
          "description": "The OCID of the certificate authority (CA).",
          "type": "string"
        },
        "certificateAuthorityName": {
          "description": "The name of the CA.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "revocationStatus": {
          "$ref": "#/$defs/RevocationStatus"
        },
        "serialNumber": {
          "description": "A unique certificate identifier used in certificate revocation tracking, formatted as octets.\nExample: `03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF`\n",
          "maxLength": 59,
          "minLength": 2,
          "type": "string"
        },
        "stages": {
          "description": "A list of rotation states for this CA version.",
          "items": {
            "enum": [
              "CURRENT",
              "PENDING",
              "PENDING_ACTIVATION",
              "LATEST",
              "PREVIOUS",
              "DEPRECATED",
              "FAILED"
            ],
            "type": "string",
            "x-obmcs-top-level-enum": "#/definitions/VersionStage"
          },
          "type": "array"
        },
        "timeCreated": {
          "description": "An optional property indicating when the CA version was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.\nExample: `2019-04-03T21:10:29.600Z`\n",
          "format": "date-time",
          "type": "string"
        },
        "timeOfDeletion": {
          "default": null,
          "description": "An optional property indicating when to delete the CA version, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.\nExample: `2019-04-03T21:10:29.600Z`\n",
          "format": "date-time",
          "type": "string"
        },
        "validity": {
          "$ref": "#/$defs/Validity"
        },
        "versionName": {
          "default": null,
          "description": "The name of the CA version. When this value is not null, the name is unique across CA versions for a given CA.\n",
          "maxLength": 50,
          "minLength": 1,
          "type": "string"
        },
        "versionNumber": {
          "description": "The version number of the CA.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "certificateAuthorityId",
        "versionNumber",
        "certificateAuthorityName",
        "stages",
        "timeCreated"
      ],
      "type": "object"
    },
    "RevocationStatus": {
      "description": "The current revocation status of the certificate or certificate authority (CA).",
      "properties": {
        "revocationReason": {
          "description": "The reason that the certificate or CA was revoked.",
          "enum": [
            "UNSPECIFIED",
            "KEY_COMPROMISE",
            "CA_COMPROMISE",
            "AFFILIATION_CHANGED",
            "SUPERSEDED",
            "CESSATION_OF_OPERATION",
            "PRIVILEGE_WITHDRAWN",
            "AA_COMPROMISE"
          ],
          "type": "string",
          "x-obmcs-top-level-enum": "#/definitions/RevocationReason"
        },
        "timeRevoked": {
          "description": "The time when the certificate or CA was revoked.",
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "timeRevoked",
        "revocationReason"
      ],
      "type": "object"
    },
    "Validity": {
      "description": "An object that describes a period of time during which an entity is valid.",
      "properties": {
        "timeOfValidityNotAfter": {
          "description": "The date on which the certificate validity period ends, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.\nExample: `2019-04-03T21:10:29.600Z`\n",
          "format": "date-time",
          "type": "string"
        },
        "timeOfValidityNotBefore": {
          "description": "The date on which the certificate validity period begins, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.\nExample: `2019-04-03T21:10:29.600Z`\n",
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "timeOfValidityNotBefore",
        "timeOfValidityNotAfter"
      ]
    }
  }
}