{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-machine-learning/json-schema/microsoft-azure-machine-learning-aml-compute-nodes-information-schema.json",
  "title": "AmlComputeNodesInformation",
  "description": "Result of AmlCompute Nodes",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-machine-learning-computeresources-api-openapi.yml#/components/schemas/AmlComputeNodesInformation",
  "type": "object",
  "properties": {
    "nodes": {
      "type": "array",
      "description": "The collection of returned AmlCompute nodes details.",
      "items": {
        "$ref": "#/$defs/AmlComputeNodeInformation"
      },
      "readOnly": true,
      "x-ms-identifiers": [
        "nodeId"
      ]
    },
    "nextLink": {
      "type": "string",
      "description": "The continuation token.",
      "readOnly": true
    }
  },
  "$defs": {
    "AmlComputeNodeInformation": {
      "type": "object",
      "description": "Compute node information related to a AmlCompute.",
      "properties": {
        "nodeId": {
          "type": "string",
          "title": "Node ID.",
          "description": "ID of the compute node.",
          "readOnly": true
        },
        "privateIpAddress": {
          "type": [
            "string",
            "null"
          ],
          "title": "Private IP address.",
          "description": "Private IP address of the compute node.",
          "readOnly": true
        },
        "publicIpAddress": {
          "type": [
            "string",
            "null"
          ],
          "title": "Public IP address.",
          "description": "Public IP address of the compute node.",
          "readOnly": true
        },
        "port": {
          "type": "integer",
          "format": "int32",
          "title": "Port.",
          "description": "SSH port number of the node.",
          "readOnly": true
        },
        "nodeState": {
          "$ref": "#/$defs/NodeState",
          "description": "State of the compute node. Values are idle, running, preparing, unusable, leaving and preempted.",
          "readOnly": true
        },
        "runId": {
          "type": [
            "string",
            "null"
          ],
          "title": "Run ID.",
          "description": "ID of the Experiment running on the node, if any else null.",
          "readOnly": true
        }
      }
    },
    "NodeState": {
      "type": "string",
      "description": "State of the compute node. Values are idle, running, preparing, unusable, leaving and preempted.",
      "enum": [
        "idle",
        "running",
        "preparing",
        "unusable",
        "leaving",
        "preempted"
      ],
      "x-ms-enum": {
        "name": "NodeState",
        "modelAsString": true,
        "values": [
          {
            "name": "idle",
            "value": "idle"
          },
          {
            "name": "running",
            "value": "running"
          },
          {
            "name": "preparing",
            "value": "preparing"
          },
          {
            "name": "unusable",
            "value": "unusable"
          },
          {
            "name": "leaving",
            "value": "leaving"
          },
          {
            "name": "preempted",
            "value": "preempted"
          }
        ]
      }
    }
  }
}