{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-automation/json-schema/microsoft-azure-automation-dsc-node-schema.json",
  "title": "DscNode",
  "description": "Definition of a DscNode",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-automation-dscnode-api-openapi.yml#/components/schemas/DscNode",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/DscNodeProperties",
      "description": "The properties of a DscNode.",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "DscNodeConfigurationAssociationProperty": {
      "type": "object",
      "description": "The dsc node configuration property associated with the entity.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Gets or sets the name of the dsc node configuration."
        }
      }
    },
    "DscNodeExtensionHandlerAssociationProperty": {
      "type": "object",
      "description": "The dsc extensionHandler property associated with the node",
      "properties": {
        "name": {
          "type": "string",
          "description": "Gets or sets the name of the extension handler."
        },
        "version": {
          "type": "string",
          "description": "Gets or sets the version of the extension handler."
        }
      }
    },
    "DscNodeProperties": {
      "type": "object",
      "description": "The properties of a DscNode",
      "properties": {
        "lastSeen": {
          "type": "string",
          "format": "date-time",
          "description": "Gets or sets the last seen time of the node."
        },
        "registrationTime": {
          "type": "string",
          "format": "date-time",
          "description": "Gets or sets the registration time of the node."
        },
        "ip": {
          "type": "string",
          "description": "Gets or sets the ip of the node."
        },
        "accountId": {
          "type": "string",
          "description": "Gets or sets the account id of the node."
        },
        "nodeConfiguration": {
          "$ref": "#/$defs/DscNodeConfigurationAssociationProperty",
          "description": "Gets or sets the configuration of the node.",
          "x-ms-client-flatten": true
        },
        "status": {
          "type": "string",
          "description": "Gets or sets the status of the node."
        },
        "nodeId": {
          "type": "string",
          "description": "Gets or sets the node id."
        },
        "etag": {
          "type": "string",
          "description": "Gets or sets the etag of the resource."
        },
        "totalCount": {
          "type": "integer",
          "format": "int32",
          "description": "Gets the total number of records matching filter criteria."
        },
        "extensionHandler": {
          "type": "array",
          "description": "Gets or sets the list of extensionHandler properties for a Node.",
          "items": {
            "$ref": "#/$defs/DscNodeExtensionHandlerAssociationProperty"
          },
          "x-ms-identifiers": [
            "name"
          ]
        }
      }
    },
    "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"
        }
      ]
    }
  }
}