{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-cdn/json-schema/microsoft-azure-cdn-validate-secret-input-schema.json",
  "title": "ValidateSecretInput",
  "description": "Input of the secret to be validated.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-cdn-profiles-api-openapi.yml#/components/schemas/ValidateSecretInput",
  "type": "object",
  "properties": {
    "secretType": {
      "$ref": "#/$defs/SecretType",
      "description": "The secret type."
    },
    "secretSource": {
      "$ref": "#/$defs/ResourceReference",
      "description": "Resource reference to the Azure Key Vault secret. Expected to be in format of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}"
    },
    "secretVersion": {
      "type": "string",
      "description": "Secret version, if customer is using a specific version."
    }
  },
  "required": [
    "secretType",
    "secretSource"
  ],
  "$defs": {
    "ResourceReference": {
      "type": "object",
      "description": "Reference to another resource.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        }
      }
    },
    "SecretType": {
      "type": "string",
      "description": "The type of the secret resource.",
      "enum": [
        "UrlSigningKey",
        "CustomerCertificate",
        "ManagedCertificate",
        "AzureFirstPartyManagedCertificate",
        "MtlsCertificateChain"
      ],
      "x-ms-enum": {
        "name": "SecretType",
        "modelAsString": true,
        "values": [
          {
            "name": "UrlSigningKey",
            "value": "UrlSigningKey"
          },
          {
            "name": "CustomerCertificate",
            "value": "CustomerCertificate"
          },
          {
            "name": "ManagedCertificate",
            "value": "ManagedCertificate"
          },
          {
            "name": "AzureFirstPartyManagedCertificate",
            "value": "AzureFirstPartyManagedCertificate"
          },
          {
            "name": "MtlsCertificateChain",
            "value": "MtlsCertificateChain"
          }
        ]
      }
    }
  }
}