Compute - List Nodes
获取计算中所有计算节点的详细信息(例如 IP 地址、端口等)。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listNodes?api-version=2025-09-01URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 | 
|---|---|---|---|---|
| compute | path | True | string | Azure 机器学习计算的名称。 | 
| resource | path | True | stringminLength: 1 maxLength: 90 | 资源组的名称。 此名称不区分大小写。 | 
| subscription | path | True | stringminLength: 1 | 目标订阅的 ID。 | 
| workspace | path | True | stringpattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$ | Azure 机器学习工作区的名称。 | 
| api-version | query | True | stringminLength: 1 | 要用于此操作的 API 版本。 | 
响应
| 名称 | 类型 | 说明 | 
|---|---|---|
| 200 OK | 操作成功。 响应包含 IP 地址列表。 | |
| Other Status Codes | 描述操作失败的原因的错误响应。 | 
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
					类型: 
					oauth2
					流向: 
					implicit
					授权 URL: 
					https://login.microsoftonline.com/common/oauth2/authorize
			
作用域
| 名称 | 说明 | 
|---|---|
| user_impersonation | 模拟用户帐户 | 
示例
Get compute nodes information for a compute
示例请求
POST https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123/listNodes?api-version=2025-09-01
示例响应
{
  "nodes": [
    {
      "nodeId": "tvm-3601533753_1-20170719t162906z",
      "privateIpAddress": "13.84.190.124",
      "publicIpAddress": "13.84.190.134",
      "port": 50000,
      "nodeState": "running",
      "runId": "2f378a44-38f2-443a-9f0d-9909d0b47890"
    },
    {
      "nodeId": "tvm-3601533753_2-20170719t162906z",
      "privateIpAddress": "13.84.190.124",
      "publicIpAddress": "13.84.190.134",
      "port": 50001,
      "nodeState": "idle"
    }
  ],
  "nextLink": "nextLink"
}定义
| 名称 | 说明 | 
|---|---|
| Aml | 与 AmlCompute 相关的计算节点信息。 | 
| Aml | AmlCompute 节点的结果 | 
| Error | 资源管理错误附加信息。 | 
| Error | 错误详细信息。 | 
| Error | 错误响应 | 
| node | 计算节点的状态。 值为空闲、正在运行、准备中、不可用、离开和抢占。 | 
AmlComputeNodeInformation   
			
			与 AmlCompute 相关的计算节点信息。
| 名称 | 类型 | 说明 | 
|---|---|---|
| nodeId | string | 节点 ID。 | 
| nodeState | 计算节点的状态。 值为空闲、正在运行、准备中、不可用、离开和抢占。 | |
| port | number (int32) | 港口。 | 
| privateIpAddress | string | 专用 IP 地址。 | 
| publicIpAddress | string | 公共 IP 地址。 | 
| runId | string | 运行 ID。 | 
AmlComputeNodesInformation   
			
			AmlCompute 节点的结果
| 名称 | 类型 | 说明 | 
|---|---|---|
| nextLink | string | 延续标记。 | 
| nodes | 返回的 AmlCompute 节点详细信息的集合。 | 
ErrorAdditionalInfo  
			
			资源管理错误附加信息。
| 名称 | 类型 | 说明 | 
|---|---|---|
| info | object | 其他信息。 | 
| type | string | 其他信息类型。 | 
ErrorDetail 
			
			错误详细信息。
| 名称 | 类型 | 说明 | 
|---|---|---|
| additionalInfo | 错误附加信息。 | |
| code | string | 错误代码。 | 
| details | 错误详细信息。 | |
| message | string | 错误消息。 | 
| target | string | 错误目标。 | 
ErrorResponse 
			
			错误响应
| 名称 | 类型 | 说明 | 
|---|---|---|
| error | 错误对象。 | 
nodeState 
			
			计算节点的状态。 值为空闲、正在运行、准备中、不可用、离开和抢占。
| 值 | 说明 | 
|---|---|
| idle | |
| running | |
| preparing | |
| unusable | |
| leaving | |
| preempted |