---
title: "增加应用探针"
method: POST
path: "/v2/tenants/{tenant_name}/services/{service_alias}/probe"
tags: ["v2"]
---

# 增加应用探针

`POST /v2/tenants/{tenant_name}/services/{service_alias}/probe`

## Request

- The document declares no server URL.
- Auth: none declared

add probe

## Path parameters

- `tenant_name` string, required
- `service_alias` string, required

## Request body

- object
  - `cmd` string: 运行命令 in: body
  - `failure_threshold` integer: 标志为失败的检测次数 in: body
  - `http_header` string: http请求头,key=value,key2=value2 in: body
  - `initial_delay_second` integer: 初始化等候时间, 默认为1 in: body
  - `is_used` integer: 是否启用 in: body
  - `mode` string: mode in: body
  - `path` string: path in: body
  - `period_second` integer: 检测间隔时间, 默认为3 in: body
  - `port` integer: 端口, 默认为80 in: body
  - `probe_id` string, required: 探针id in: body
  - `scheme` string: mode in: body
  - `success_threshold` integer: 标志为成功的检测次数 in: body
  - `timeout_second` integer: 检测超时时间, 默认为30 in: body

## Response `default`

统一返回格式

- CommandResponse (unresolved $ref)

---

[API](https://skmtc.dev/goodrain/apis/goodrain-cmd-api.md) - [All operations](https://skmtc.dev/goodrain/apis/goodrain-cmd-api/llms.txt) - [OpenAPI document](https://skmtc.dev/goodrain/apis/goodrain-cmd-api/revisions/8c773e222448?raw)
