{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-cdn/json-schema/microsoft-azure-cdn-afdorigin-list-result-schema.json",
  "title": "AFDOriginListResult",
  "description": "The response of a AFDOrigin list operation.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-cdn-afdorigins-api-openapi.yml#/components/schemas/AFDOriginListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The AFDOrigin items on this page",
      "items": {
        "$ref": "#/$defs/AFDOrigin"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "AFDOrigin": {
      "type": "object",
      "description": "Azure Front Door origin is the source of the content being delivered via Azure Front Door. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/AFDOriginProperties",
          "description": "The JSON object that contains the properties of the origin.",
          "x-ms-client-flatten": true
        }
      },
      "allOf": [
        {
          "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource"
        }
      ]
    },
    "AFDOriginProperties": {
      "type": "object",
      "description": "The JSON object that contains the properties of the origin.",
      "properties": {
        "originGroupName": {
          "type": "string",
          "description": "The name of the origin group which contains this origin.",
          "readOnly": true
        },
        "azureOrigin": {
          "$ref": "#/$defs/ResourceReference",
          "description": "Resource reference to the Azure origin resource."
        },
        "hostName": {
          "type": "string",
          "description": "The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint."
        },
        "httpPort": {
          "type": "integer",
          "format": "int32",
          "description": "The value of the HTTP port. Must be between 1 and 65535.",
          "default": 80,
          "minimum": 1,
          "maximum": 65535
        },
        "httpsPort": {
          "type": "integer",
          "format": "int32",
          "description": "The value of the HTTPS port. Must be between 1 and 65535.",
          "default": 443,
          "minimum": 1,
          "maximum": 65535
        },
        "originHostHeader": {
          "type": "string",
          "description": "The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure Front Door origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint"
        },
        "priority": {
          "type": "integer",
          "format": "int32",
          "description": "Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5",
          "minimum": 1,
          "maximum": 5
        },
        "weight": {
          "type": "integer",
          "format": "int32",
          "description": "Weight of the origin in given origin group for load balancing. Must be between 1 and 1000",
          "minimum": 1,
          "maximum": 1000
        },
        "sharedPrivateLinkResource": {
          "$ref": "#/$defs/SharedPrivateLinkResourceProperties",
          "description": "The properties of the private link resource for private origin."
        },
        "enabledState": {
          "$ref": "#/$defs/EnabledState",
          "description": "Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool."
        },
        "enforceCertificateNameCheck": {
          "type": "boolean",
          "description": "Whether to enable certificate name check at origin level",
          "default": true
        },
        "certificateNameCheckValidationMode": {
          "$ref": "#/$defs/CertificateNameCheckValidationMode",
          "description": "The validation mode for certificate name check. Only applicable when enforceCertificateNameCheck is true."
        },
        "customCertificateSubjects": {
          "type": "array",
          "description": "The list of custom certificate subjects to validate against. Only applicable when certificateNameCheckValidationMode is 'CustomCertificateSubject'. Must contain 1 or 2 entries.",
          "minItems": 1,
          "maxItems": 2,
          "items": {
            "type": "string"
          }
        },
        "provisioningState": {
          "$ref": "#/$defs/AfdProvisioningState",
          "description": "Provisioning status",
          "readOnly": true
        },
        "deploymentStatus": {
          "$ref": "#/$defs/DeploymentStatus",
          "readOnly": true
        }
      }
    },
    "AfdProvisioningState": {
      "type": "string",
      "description": "Provisioning status",
      "enum": [
        "Succeeded",
        "Failed",
        "Updating",
        "Deleting",
        "Creating"
      ],
      "x-ms-enum": {
        "name": "AfdProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Succeeded",
            "value": "Succeeded"
          },
          {
            "name": "Failed",
            "value": "Failed"
          },
          {
            "name": "Updating",
            "value": "Updating"
          },
          {
            "name": "Deleting",
            "value": "Deleting"
          },
          {
            "name": "Creating",
            "value": "Creating"
          }
        ]
      }
    },
    "CertificateNameCheckValidationMode": {
      "type": "string",
      "description": "The validation mode for certificate name check at origin level. Only applicable when enforceCertificateNameCheck is true.",
      "enum": [
        "OriginHostname",
        "CustomCertificateSubject",
        "IncomingHostHeader"
      ],
      "x-ms-enum": {
        "name": "CertificateNameCheckValidationMode",
        "modelAsString": true,
        "values": [
          {
            "name": "OriginHostname",
            "value": "OriginHostname",
            "description": "Validate the certificate against the origin hostname."
          },
          {
            "name": "CustomCertificateSubject",
            "value": "CustomCertificateSubject",
            "description": "Validate the certificate against custom certificate subjects."
          },
          {
            "name": "IncomingHostHeader",
            "value": "IncomingHostHeader",
            "description": "Validate the certificate against the incoming host header."
          }
        ]
      }
    },
    "DeploymentStatus": {
      "type": "string",
      "enum": [
        "NotStarted",
        "InProgress",
        "Succeeded",
        "Failed"
      ],
      "x-ms-enum": {
        "name": "DeploymentStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "NotStarted",
            "value": "NotStarted"
          },
          {
            "name": "InProgress",
            "value": "InProgress"
          },
          {
            "name": "Succeeded",
            "value": "Succeeded"
          },
          {
            "name": "Failed",
            "value": "Failed"
          }
        ]
      }
    },
    "EnabledState": {
      "type": "string",
      "description": "Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "EnabledState",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled"
          }
        ]
      }
    },
    "ResourceReference": {
      "type": "object",
      "description": "Reference to another resource.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        }
      }
    },
    "SharedPrivateLinkResourceProperties": {
      "type": "object",
      "description": "Describes the properties of an existing Shared Private Link Resource to use when connecting to a private origin.",
      "properties": {
        "privateLink": {
          "$ref": "#/$defs/ResourceReference",
          "description": "The resource id of the resource the shared private link resource is for."
        },
        "privateLinkLocation": {
          "type": "string",
          "description": "The location of the shared private link resource"
        },
        "groupId": {
          "type": "string",
          "description": "The group id from the provider of resource the shared private link resource is for."
        },
        "requestMessage": {
          "type": "string",
          "description": "The request message for requesting approval of the shared private link resource."
        },
        "status": {
          "$ref": "#/$defs/SharedPrivateLinkResourceStatus",
          "description": "Status of the shared private link resource. Can be Pending, Approved, Rejected, Disconnected, or Timeout."
        }
      }
    },
    "SharedPrivateLinkResourceStatus": {
      "type": "string",
      "description": "Status of the shared private link resource. Can be Pending, Approved, Rejected, Disconnected, or Timeout.",
      "enum": [
        "Pending",
        "Approved",
        "Rejected",
        "Disconnected",
        "Timeout"
      ],
      "x-ms-enum": {
        "name": "SharedPrivateLinkResourceStatus",
        "modelAsString": false
      }
    }
  }
}