{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-machine-learning/json-schema/microsoft-azure-machine-learning-online-endpoint-schema.json",
  "title": "OnlineEndpoint",
  "description": "Concrete tracked resource types can be created by aliasing this type using a specific property type.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-machine-learning-openapi.yml#/components/schemas/OnlineEndpoint",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/OnlineEndpointProperties"
    },
    "identity": {
      "$ref": "../../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity"
    },
    "kind": {
      "type": "string",
      "description": "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type."
    },
    "sku": {
      "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/Sku"
    }
  },
  "required": [
    "properties"
  ],
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
    }
  ],
  "$defs": {
    "EndpointAuthKeys": {
      "type": "object",
      "description": "Keys for endpoint authentication.",
      "properties": {
        "primaryKey": {
          "type": [
            "string",
            "null"
          ],
          "format": "password",
          "description": "The primary key.",
          "x-ms-mutability": [
            "read",
            "create"
          ],
          "x-ms-secret": true
        },
        "secondaryKey": {
          "type": [
            "string",
            "null"
          ],
          "format": "password",
          "description": "The secondary key.",
          "x-ms-mutability": [
            "read",
            "create"
          ],
          "x-ms-secret": true
        }
      }
    },
    "EndpointAuthMode": {
      "type": "string",
      "description": "Enum to determine endpoint authentication mode.",
      "enum": [
        "AMLToken",
        "Key",
        "AADToken"
      ],
      "x-ms-enum": {
        "name": "EndpointAuthMode",
        "modelAsString": true,
        "values": [
          {
            "name": "AMLToken",
            "value": "AMLToken"
          },
          {
            "name": "Key",
            "value": "Key"
          },
          {
            "name": "AADToken",
            "value": "AADToken"
          }
        ]
      }
    },
    "EndpointPropertiesBase": {
      "type": "object",
      "description": "Inference Endpoint base definition",
      "properties": {
        "authMode": {
          "$ref": "#/$defs/EndpointAuthMode"
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Description of the inference endpoint."
        },
        "keys": {
          "$ref": "#/$defs/EndpointAuthKeys"
        },
        "properties": {
          "type": [
            "object",
            "null"
          ],
          "description": "Property dictionary. Properties can be added, but not removed or altered.",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "scoringUri": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "Endpoint URI.",
          "readOnly": true
        },
        "swaggerUri": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "Endpoint Swagger URI.",
          "readOnly": true
        }
      },
      "required": [
        "authMode"
      ]
    },
    "EndpointProvisioningState": {
      "type": "string",
      "description": "State of endpoint provisioning.",
      "enum": [
        "Creating",
        "Deleting",
        "Succeeded",
        "Failed",
        "Updating",
        "Canceled"
      ],
      "x-ms-enum": {
        "name": "EndpointProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Creating",
            "value": "Creating"
          },
          {
            "name": "Deleting",
            "value": "Deleting"
          },
          {
            "name": "Succeeded",
            "value": "Succeeded"
          },
          {
            "name": "Failed",
            "value": "Failed"
          },
          {
            "name": "Updating",
            "value": "Updating"
          },
          {
            "name": "Canceled",
            "value": "Canceled"
          }
        ]
      },
      "readOnly": true
    },
    "OnlineEndpointProperties": {
      "type": "object",
      "description": "Online endpoint configuration",
      "properties": {
        "compute": {
          "type": [
            "string",
            "null"
          ],
          "description": "ARM resource ID of the compute if it exists.\noptional"
        },
        "mirrorTraffic": {
          "type": [
            "object",
            "null"
          ],
          "description": "Percentage of traffic to be mirrored to each deployment without using returned scoring. Traffic values need to sum to utmost 50.",
          "additionalProperties": {
            "format": "int32",
            "type": "integer"
          }
        },
        "provisioningState": {
          "$ref": "#/$defs/EndpointProvisioningState"
        },
        "publicNetworkAccess": {
          "type": "string",
          "description": "Enum to determine whether PublicNetworkAccess is Enabled or Disabled.",
          "default": "Enabled",
          "enum": [
            "Enabled",
            "Disabled"
          ],
          "x-ms-enum": {
            "name": "PublicNetworkAccessType",
            "modelAsString": true,
            "values": [
              {
                "name": "Enabled",
                "value": "Enabled"
              },
              {
                "name": "Disabled",
                "value": "Disabled"
              }
            ]
          }
        },
        "traffic": {
          "type": [
            "object",
            "null"
          ],
          "description": "Percentage of traffic from endpoint to divert to each deployment. Traffic values need to sum to 100.",
          "additionalProperties": {
            "format": "int32",
            "type": "integer"
          }
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/EndpointPropertiesBase"
        }
      ]
    }
  }
}