9.2. API 端点
可用的 API 端点如下:
/apis/monitoring.coreos.com/v1/prometheusrules-
GET: 列出 PrometheusRule 类型的对象
-
/apis/monitoring.coreos.com/v1/namespaces/{namespace}/prometheusrules-
DELETE: 删除 PrometheusRule 集合 -
GET: 列出 PrometheusRule 类型的对象 -
POST:创建 PrometheusRule
-
/apis/monitoring.coreos.com/v1/namespaces/{namespace}/prometheusrules/{name}-
DELETE:删除 PrometheusRule -
GET:读取指定的 PrometheusRule -
PATCH: 部分更新指定的 PrometheusRule -
PUT:替换指定的 PrometheusRule
-
9.2.1. /apis/monitoring.coreos.com/v1/prometheusrules 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
- HTTP 方法
-
GET - 描述
- 列出 PrometheusRule 类型的对象
| HTTP 代码 | 响应正文 |
|---|---|
| 200 - OK | |
| 401 - Unauthorized | 空 |