pcapi/wwwroot/doc/slurm/节点相关.md
2025-07-16 14:46:24 +08:00

14 lines
445 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## GET V1 修改节点
* url: /api/v1/slurm/node/update_node
* query
* NodeName:节点名称
* State状态
* Reason原因
### 将节点设置为维护状态
`/api/v1/slurm/node/update_node?NodeName=CENI-KFSJk&State=DRAIN&Reason=weihu`
### 重新启动节点
`/api/v1/slurm/node/update_node?NodeName=node01&State=RESUME`
### 将节点设置为下线状态
`/api/v1/slurm/node/update_node?NodeName=CENI-KFSJk&State=DOWN&Reason=weihu`