{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-machine-learning/json-schema/microsoft-azure-machine-learning-serverless-endpoint-schema.json",
  "title": "ServerlessEndpoint",
  "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/ServerlessEndpoint",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ServerlessEndpointProperties"
    },
    "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": {
    "ContentSafety": {
      "type": "object",
      "properties": {
        "contentSafetyStatus": {
          "$ref": "#/$defs/ContentSafetyStatus"
        }
      },
      "required": [
        "contentSafetyStatus"
      ]
    },
    "ContentSafetyStatus": {
      "type": "string",
      "description": "Specifies the status of content safety.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "ContentSafetyStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled"
          }
        ]
      }
    },
    "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
    },
    "ModelSettings": {
      "type": "object",
      "properties": {
        "modelId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The unique model identifier that this ServerlessEndpoint should provision."
        }
      }
    },
    "ServerlessEndpointProperties": {
      "type": "object",
      "properties": {
        "authMode": {
          "$ref": "#/$defs/ServerlessInferenceEndpointAuthMode"
        },
        "contentSafety": {
          "$ref": "#/$defs/ContentSafety"
        },
        "endpointState": {
          "$ref": "#/$defs/ServerlessEndpointState"
        },
        "inferenceEndpoint": {
          "$ref": "#/$defs/ServerlessInferenceEndpoint"
        },
        "marketplaceSubscriptionId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The MarketplaceSubscription Azure ID associated to this ServerlessEndpoint.",
          "readOnly": true
        },
        "modelSettings": {
          "$ref": "#/$defs/ModelSettings"
        },
        "provisioningState": {
          "$ref": "#/$defs/EndpointProvisioningState"
        }
      },
      "required": [
        "authMode"
      ]
    },
    "ServerlessEndpointState": {
      "type": "string",
      "description": "State of the Serverless Endpoint.",
      "enum": [
        "Unknown",
        "Creating",
        "Deleting",
        "Suspending",
        "Reinstating",
        "Online",
        "Suspended",
        "CreationFailed",
        "DeletionFailed"
      ],
      "x-ms-enum": {
        "name": "ServerlessEndpointState",
        "modelAsString": true,
        "values": [
          {
            "name": "Unknown",
            "value": "Unknown"
          },
          {
            "name": "Creating",
            "value": "Creating"
          },
          {
            "name": "Deleting",
            "value": "Deleting"
          },
          {
            "name": "Suspending",
            "value": "Suspending"
          },
          {
            "name": "Reinstating",
            "value": "Reinstating"
          },
          {
            "name": "Online",
            "value": "Online"
          },
          {
            "name": "Suspended",
            "value": "Suspended"
          },
          {
            "name": "CreationFailed",
            "value": "CreationFailed"
          },
          {
            "name": "DeletionFailed",
            "value": "DeletionFailed"
          }
        ]
      }
    },
    "ServerlessInferenceEndpoint": {
      "type": "object",
      "properties": {
        "headers": {
          "type": [
            "object",
            "null"
          ],
          "description": "Specifies any required headers to target this serverless endpoint.",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          },
          "readOnly": true
        },
        "uri": {
          "type": "string",
          "format": "uri",
          "description": "[Required] The inference uri to target when making requests against the Serverless Endpoint.",
          "readOnly": true
        }
      },
      "required": [
        "uri"
      ]
    },
    "ServerlessInferenceEndpointAuthMode": {
      "type": "string",
      "enum": [
        "Key",
        "AAD",
        "KeyAndAAD"
      ],
      "x-ms-enum": {
        "name": "ServerlessInferenceEndpointAuthMode",
        "modelAsString": true,
        "values": [
          {
            "name": "Key",
            "value": "Key"
          },
          {
            "name": "AAD",
            "value": "AAD"
          },
          {
            "name": "KeyAndAAD",
            "value": "KeyAndAAD"
          }
        ]
      }
    }
  }
}