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