{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "CertificateExpiryNotification",
  "description": "CertificateExpiryNotification schema from SASE Multitenant Notifications",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-schema/sase-notifications-certificate-expiry-notification-schema.json",
  "type": "object",
  "properties": {
    "notificationId": {
      "type": "string",
      "description": "Unique identifier for this notification delivery."
    },
    "type": {
      "type": "string",
      "enum": [
        "certificate_expiry"
      ],
      "description": "Notification type identifier."
    },
    "tsg_id": {
      "type": "string",
      "description": "Tenant Service Group identifier for the affected tenant."
    },
    "certificateName": {
      "type": "string",
      "description": "Name of the certificate approaching expiration."
    },
    "serialNumber": {
      "type": "string",
      "description": "Certificate serial number."
    },
    "issuer": {
      "type": "string",
      "description": "Certificate issuer distinguished name."
    },
    "subject": {
      "type": "string",
      "description": "Certificate subject distinguished name."
    },
    "expirationDate": {
      "type": "string",
      "format": "date-time",
      "description": "Certificate expiration date and time."
    },
    "daysUntilExpiry": {
      "type": "integer",
      "description": "Number of days remaining until the certificate expires."
    },
    "usedBy": {
      "type": "array",
      "description": "List of SASE services or configurations using this certificate.",
      "items": {
        "type": "string"
      }
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when this notification was generated."
    }
  }
}
