{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-virtual-machines/json-schema/microsoft-azure-virtual-machines-cloud-service-instance-view-schema.json",
  "title": "CloudServiceInstanceView",
  "description": "InstanceView of CloudService as a whole",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-virtual-machines-cloudservices-api-openapi.yml#/components/schemas/CloudServiceInstanceView",
  "type": "object",
  "properties": {
    "roleInstance": {
      "$ref": "#/$defs/InstanceViewStatusesSummary"
    },
    "sdkVersion": {
      "description": "The version of the SDK that was used to generate the package for the cloud service.",
      "type": "string",
      "readOnly": true
    },
    "privateIds": {
      "description": "Specifies a list of unique identifiers generated internally for the cloud service. <br /><br /> NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details.",
      "type": "array",
      "items": {
        "type": "string"
      },
      "readOnly": true
    },
    "statuses": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ResourceInstanceViewStatus"
      },
      "x-ms-identifiers": [],
      "readOnly": true
    }
  },
  "$defs": {
    "InstanceViewStatusesSummary": {
      "description": "Instance view statuses.",
      "type": "object",
      "properties": {
        "statusesSummary": {
          "description": "The summary.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/StatusCodeCount"
          },
          "x-ms-identifiers": [],
          "readOnly": true
        }
      }
    },
    "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
          }
        }
      }
    },
    "StatusCodeCount": {
      "description": "The status code and count of the cloud service instance view statuses",
      "type": "object",
      "properties": {
        "code": {
          "description": "The instance view status code",
          "type": "string",
          "readOnly": true
        },
        "count": {
          "format": "int32",
          "description": "Number of instances having this status code",
          "type": "integer",
          "readOnly": true
        }
      }
    }
  }
}