{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-certificate-bundle-version-collection-schema.json",
  "title": "CertificateBundleVersionCollection",
  "description": "The results of a certificate bundle versions search. Results contain certificate bundle version summary objects.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-certificates-api-openapi.yml#/components/schemas/CertificateBundleVersionCollection",
  "properties": {
    "items": {
      "description": "A list of certificate bundle version summary objects.",
      "items": {
        "$ref": "#/$defs/CertificateBundleVersionSummary"
      },
      "type": "array"
    }
  },
  "required": [
    "items"
  ],
  "type": "object",
  "$defs": {
    "CertificateBundleVersionSummary": {
      "description": "The properties of the certificate bundle. Certificate bundle version summary objects do not include the actual contents of the certificate.\n",
      "properties": {
        "certificateId": {
          "description": "The OCID of the certificate.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "certificateName": {
          "description": "The name of the certificate.",
          "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 certificate bundle 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 certificate 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 certificate 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 certificate version.",
          "maxLength": 50,
          "minLength": 1,
          "type": "string"
        },
        "versionNumber": {
          "description": "The version number of the certificate.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "certificateId",
        "versionNumber",
        "timeCreated",
        "stages",
        "certificateName"
      ],
      "type": "object",
      "x-example": "{\n  \"certificateId\": \"ocid1.certificate.oc1.iad.exampleae47ajxyajghg27ghmlu2cvbcd4hn7ho4qfauxdhzz5a5matr2jgq\",\n  \"serialNumber\": \"123456789467871985158273573384545629334123456789\",\n  \"versionName\": null,\n  \"certificateName\": null,\n  \"versionNumber\": 3,\n  \"timeCreated\": \"2021-04-07T23:01:31.951Z\",\n  \"validity\": {\n    \"timeOfValidityNotBefore\": \"2021-04-07T23:01:31.720Z\",\n    \"timeOfValidityNotAfter\": \"2022-05-07T00:00:00.000Z\"\n  },\n  \"timeOfDeletion\": null,\n  \"stages\": [\n    \"CURRENT\",\n    \"LATEST\"\n  ],\n  \"revocationStatus\": null\n}\n"
    },
    "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"
      ]
    }
  }
}