{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-arc/json-schema/microsoft-azure-arc-vm-applications-list-result-schema.json",
  "title": "VmApplicationsListResult",
  "description": "A page of VM applications.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-arc-vmapplications-api-openapi.yml#/components/schemas/VmApplicationsListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The VmApplication items on this page",
      "items": {
        "$ref": "#/$defs/VmApplication"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "ProvisioningState": {
      "type": "string",
      "description": "The provisioning state, which only appears in the response.",
      "enum": [
        "Creating",
        "Updating",
        "Deleting",
        "Succeeded",
        "Failed",
        "Accepted",
        "Canceled",
        "Deleted"
      ],
      "x-ms-enum": {
        "name": "ProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Creating",
            "value": "Creating",
            "description": "Creating"
          },
          {
            "name": "Updating",
            "value": "Updating",
            "description": "Updating"
          },
          {
            "name": "Deleting",
            "value": "Deleting",
            "description": "Deleting"
          },
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "Succeeded"
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Failed"
          },
          {
            "name": "Accepted",
            "value": "Accepted",
            "description": "Accepted"
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "Canceled"
          },
          {
            "name": "Deleted",
            "value": "Deleted",
            "description": "Deleted"
          }
        ]
      }
    },
    "TrackedResource": {
      "type": "object",
      "title": "Tracked Resource",
      "description": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'",
      "properties": {
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          },
          "x-ms-mutability": [
            "read",
            "create",
            "update"
          ]
        },
        "location": {
          "type": "string",
          "description": "The geo-location where the resource lives",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      },
      "required": [
        "location"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "VmApplication": {
      "type": "object",
      "description": "A VM application installed on a hybrid machine.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/VmApplicationProperties",
          "description": "The VM application properties."
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/TrackedResource"
        }
      ]
    },
    "VmApplicationInstanceView": {
      "type": "object",
      "description": "The instance view of a VM application.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The application name."
        },
        "version": {
          "type": "string",
          "description": "The application version."
        },
        "result": {
          "type": "string",
          "description": "The current installation result."
        },
        "actionsPerformed": {
          "type": "array",
          "description": "The recent actions performed for the application.",
          "items": {
            "$ref": "#/$defs/VmApplicationInstanceViewAction"
          },
          "x-ms-identifiers": []
        }
      }
    },
    "VmApplicationInstanceViewAction": {
      "type": "object",
      "description": "An action recently performed for a VM application.",
      "properties": {
        "operation": {
          "type": "string",
          "description": "The operation that was performed."
        },
        "result": {
          "type": "string",
          "description": "The result of the operation."
        }
      }
    },
    "VmApplicationProperties": {
      "type": "object",
      "description": "The properties of a VM application. Exactly one gallery application reference must be specified when creating or replacing the resource.",
      "properties": {
        "order": {
          "type": "integer",
          "format": "int32",
          "description": "The order in which the application is installed."
        },
        "packageReferenceId": {
          "type": "string",
          "format": "arm-id",
          "description": "The resource ID of the gallery application version. The version name can be `latest` or a specific version. This property is mutually exclusive with sharedGalleryApplicationId and communityGalleryApplicationId.",
          "x-ms-arm-id-details": {
            "allowedResources": [
              {
                "type": "Microsoft.Compute/galleries/applications/versions"
              }
            ]
          }
        },
        "sharedGalleryApplicationId": {
          "type": "string",
          "description": "The identifier of a direct shared gallery application version. Use `/sharedGalleries/{sharedGalleryUniqueName}/applications/{applicationName}/versions/{versionName}`, where the version name can be `latest` or a specific version. This property is mutually exclusive with packageReferenceId and communityGalleryApplicationId."
        },
        "communityGalleryApplicationId": {
          "type": "string",
          "description": "The identifier of a community gallery application version. Use `/communityGalleries/{communityGalleryPublicName}/applications/{applicationName}/versions/{versionName}`, where the version name can be `latest` or a specific version. This property is mutually exclusive with packageReferenceId and sharedGalleryApplicationId."
        },
        "configurationReference": {
          "type": "string",
          "format": "uri",
          "description": "The URI of configuration data that replaces the package's default configuration."
        },
        "treatFailureAsDeploymentFailure": {
          "type": "boolean",
          "description": "Indicates whether an application operation failure causes the deployment to fail."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the VM application.",
          "readOnly": true
        },
        "instanceView": {
          "$ref": "#/$defs/VmApplicationInstanceView",
          "description": "The instance view of the VM application.",
          "readOnly": true
        }
      }
    }
  }
}