---
title: "在 Provider 节点上执行命令"
method: POST
path: "/v1/admin/providers/{id}/exec"
tags: ["admin/providers"]
---

# 在 Provider 节点上执行命令

`POST /v1/admin/providers/{id}/exec`

通过 SSH（SSH模式）或 Agent WebSocket（Agent模式）在节点上执行 shell 命令

## Path parameters

- `id` integer, required

## Request body

- string

## Changes

- **2026-05-18** `24cddb042691` — 1 info
  - endpoint added
- **2025-10-22** `dcdf027169a3` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/oneclickvirt/apis/oneclickvirt-api/changes/v1/admin/providers/:id/exec/post.md)

---

[API](https://skmtc.dev/oneclickvirt/apis/oneclickvirt-api.md) · [All operations](https://skmtc.dev/oneclickvirt/apis/oneclickvirt-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/oneclickvirt/oneclickvirt-api/revisions/5d38e17cc07e/schema)
