{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-express-route/json-schema/microsoft-azure-express-route-service-endpoint-policy-list-result-schema.json",
  "title": "ServiceEndpointPolicyListResult",
  "description": "The response of a ServiceEndpointPolicy list operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-express-route-serviceendpointpolicies-api-openapi.yml#/components/schemas/ServiceEndpointPolicyListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The ServiceEndpointPolicy items on this page",
      "items": {
        "$ref": "#/$defs/ServiceEndpointPolicy"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "ProvisioningState": {
      "type": "string",
      "description": "Provisioning states of a resource.",
      "enum": [
        "Failed",
        "Succeeded",
        "Canceled",
        "Creating",
        "Updating",
        "Deleting"
      ],
      "x-ms-enum": {
        "name": "ProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Failed"
          },
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "Succeeded"
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "Canceled"
          },
          {
            "name": "Creating",
            "value": "Creating",
            "description": "Creating"
          },
          {
            "name": "Updating",
            "value": "Updating",
            "description": "Updating"
          },
          {
            "name": "Deleting",
            "value": "Deleting",
            "description": "Deleting"
          }
        ]
      }
    },
    "Resource": {
      "type": "object",
      "description": "Common resource representation.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        },
        "name": {
          "type": "string",
          "description": "Resource name.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        },
        "location": {
          "type": "string",
          "description": "Resource location."
        },
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "x-ms-azure-resource": true
    },
    "ServiceEndpointPolicy": {
      "type": "object",
      "description": "Service End point policy resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ServiceEndpointPolicyPropertiesFormat",
          "description": "Properties of the service end point policy.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        },
        "kind": {
          "type": "string",
          "description": "Kind of service endpoint policy. This is metadata used for the Azure portal experience.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "ServiceEndpointPolicyDefinition": {
      "type": "object",
      "description": "Service Endpoint policy definitions.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ServiceEndpointPolicyDefinitionPropertiesFormat",
          "description": "Properties of the service endpoint policy definition.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResourceModel"
        }
      ]
    },
    "ServiceEndpointPolicyDefinitionPropertiesFormat": {
      "type": "object",
      "description": "Service Endpoint policy definition resource.",
      "properties": {
        "description": {
          "type": "string",
          "description": "A description for this rule. Restricted to 140 chars."
        },
        "service": {
          "type": "string",
          "description": "Service endpoint name."
        },
        "serviceResources": {
          "type": "array",
          "description": "A list of service resources.",
          "items": {
            "type": "string"
          }
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the service endpoint policy definition resource.",
          "readOnly": true
        }
      }
    },
    "ServiceEndpointPolicyPropertiesFormat": {
      "type": "object",
      "description": "Service Endpoint Policy resource.",
      "properties": {
        "serviceEndpointPolicyDefinitions": {
          "type": "array",
          "description": "A collection of service endpoint policy definitions of the service endpoint policy.",
          "items": {
            "$ref": "#/$defs/ServiceEndpointPolicyDefinition"
          }
        },
        "subnets": {
          "type": "array",
          "description": "A collection of references to subnets.",
          "items": {
            "$ref": "#/$defs/Subnet"
          },
          "readOnly": true
        },
        "resourceGuid": {
          "type": "string",
          "description": "The resource GUID property of the service endpoint policy resource.",
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the service endpoint policy resource.",
          "readOnly": true
        },
        "serviceAlias": {
          "type": "string",
          "description": "The alias indicating if the policy belongs to a service"
        },
        "contextualServiceEndpointPolicies": {
          "type": "array",
          "description": "A collection of contextual service endpoint policy.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "SubResource": {
      "type": "object",
      "description": "Reference to another subresource.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        }
      }
    },
    "SubResourceModel": {
      "type": "object",
      "description": "Reference to another subresource.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the resource."
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ],
      "x-ms-azure-resource": true
    },
    "Subnet": {
      "type": "object",
      "description": "Subnet in a virtual network resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/SubnetPropertiesFormat",
          "description": "Properties of the subnet.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResourceModel"
        }
      ]
    }
  }
}