---
title: "执行SSH命令"
method: GET
path: "/api/v1/cmdb/hostssh/command/{id}"
tags: ["CMDB主机SSH"]
---

# 执行SSH命令

`GET /api/v1/cmdb/hostssh/command/{id}`

在SSH终端执行命令

## Path parameters

- `id` integer, required

## Query parameters

- `command` string, required

## Response `200`

OK

- ResultResult
  - `code` integer — 状态码
  - `data` unknown
  - `message` string — 提示信息

---

[API](https://skmtc.net/opsre/apis/devops.md) · [All operations](https://skmtc.net/opsre/apis/devops/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opsre/devops/revisions/25cac8835c4c/schema)
