{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-virtual-machines/json-schema/microsoft-azure-virtual-machines-role-instance-instance-view-schema.json",
  "title": "RoleInstanceInstanceView",
  "description": "The instance view of the role instance.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-virtual-machines-cloudserviceroleinstances-api-openapi.yml#/components/schemas/RoleInstanceInstanceView",
  "type": "object",
  "properties": {
    "platformUpdateDomain": {
      "format": "int32",
      "description": "The Update Domain.",
      "type": "integer",
      "readOnly": true
    },
    "platformFaultDomain": {
      "format": "int32",
      "description": "The Fault Domain.",
      "type": "integer",
      "readOnly": true
    },
    "privateId": {
      "description": "Specifies a unique identifier generated internally for the cloud service associated with this role instance. <br /><br /> NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details.",
      "type": "string",
      "readOnly": true
    },
    "statuses": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ResourceInstanceViewStatus"
      },
      "x-ms-identifiers": [],
      "readOnly": true
    }
  },
  "$defs": {
    "ResourceInstanceViewStatus": {
      "description": "Instance view status.",
      "type": "object",
      "properties": {
        "code": {
          "description": "The status code.",
          "type": "string",
          "readOnly": true
        },
        "displayStatus": {
          "description": "The short localizable label for the status.",
          "type": "string",
          "readOnly": true
        },
        "message": {
          "description": "The detailed status message, including for alerts and error messages.",
          "type": "string",
          "readOnly": true
        },
        "time": {
          "format": "date-time",
          "description": "The time of the status.",
          "type": "string",
          "readOnly": true
        },
        "level": {
          "description": "The level code.",
          "enum": [
            "Info",
            "Warning",
            "Error"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "StatusLevelTypes",
            "modelAsString": false
          }
        }
      }
    }
  }
}