{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-sql-database/json-schema/microsoft-azure-sql-database-managed-instance-administrator-schema.json",
  "title": "ManagedInstanceAdministrator",
  "description": "An Azure SQL managed instance administrator.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-sql-database-managedinstanceadministrators-api-openapi.yml#/components/schemas/ManagedInstanceAdministrator",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ManagedInstanceAdministratorProperties",
      "description": "Resource properties.",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "Azure.Core.uuid": {
      "type": "string",
      "format": "uuid",
      "description": "Universally Unique Identifier"
    },
    "ManagedInstanceAdministratorProperties": {
      "type": "object",
      "description": "The properties of a managed instance administrator.",
      "properties": {
        "administratorType": {
          "$ref": "#/$defs/ManagedInstanceAdministratorType",
          "description": "Type of the managed instance administrator."
        },
        "login": {
          "type": "string",
          "description": "Login name of the managed instance administrator."
        },
        "sid": {
          "$ref": "#/$defs/Azure.Core.uuid",
          "description": "SID (object ID) of the managed instance administrator."
        },
        "tenantId": {
          "$ref": "#/$defs/Azure.Core.uuid",
          "description": "Tenant ID of the managed instance administrator."
        }
      },
      "required": [
        "administratorType",
        "login",
        "sid"
      ]
    },
    "ManagedInstanceAdministratorType": {
      "type": "string",
      "description": "Type of the managed instance administrator.",
      "enum": [
        "ActiveDirectory"
      ],
      "x-ms-enum": {
        "name": "ManagedInstanceAdministratorType",
        "modelAsString": true,
        "values": [
          {
            "name": "ActiveDirectory",
            "value": "ActiveDirectory",
            "description": "ActiveDirectory"
          }
        ]
      }
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "Resource": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    }
  }
}