{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-commerce-cloud/json-schema/salesforce-commerce-cloud-certificate-request-schema.json",
  "title": "CertificateRequest",
  "description": "Certificate request information",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-commerce-cloud-zones-api-openapi.yml#/components/schemas/CertificateRequest",
  "required": [
    "hostname"
  ],
  "type": "object",
  "properties": {
    "hostname": {
      "type": "string",
      "description": "Hostname that certificate needs to be applied to.",
      "pattern": "^.*$"
    },
    "bundleMethod": {
      "type": "string",
      "description": "Bundle method of the custom certificate chain for verification.",
      "pattern": "^.*$"
    },
    "certificateType": {
      "type": "string",
      "description": "Indicates certificate is custom or automatic certificate renewal by eCDN. Optional field, if nothing specified the default value is custom. Valid values are custom or automatic.",
      "pattern": "^.*$"
    },
    "certificate": {
      "type": "string",
      "description": "Public key of the custom certificate. Required if the certificateType value is custom.",
      "pattern": "^.*$"
    },
    "privateKey": {
      "type": "string",
      "description": "Private key associated with the custom certificate. Required if the `certificateType` value is custom.",
      "pattern": "^.*$"
    },
    "certificateAuthority": {
      "type": "string",
      "description": "Certificate authority only for automatic certificate renewal by eCDN. Required if the `certificateType` value is automatic. Valid values are `google` or `lets_encrypt`.",
      "pattern": "^.*$"
    },
    "certificateValidation": {
      "type": "string",
      "description": "Certificate validation type is optional only for `certificateType` automatic, default value is `http`. Valid values are `http` or `txt`.",
      "pattern": "^.*$"
    },
    "wildcardHostname": {
      "type": "boolean",
      "description": "Set to true for a wildcard custom hostname."
    }
  },
  "additionalProperties": false
}