10.2. API endpoints
The following API endpoints are available:
/apis/monitoring.coreos.com/v1/prometheusrules-
GET: list objects of kind PrometheusRule
-
/apis/monitoring.coreos.com/v1/namespaces/{namespace}/prometheusrules-
DELETE: delete collection of PrometheusRule -
GET: list objects of kind PrometheusRule -
POST: create a PrometheusRule
-
/apis/monitoring.coreos.com/v1/namespaces/{namespace}/prometheusrules/{name}-
DELETE: delete a PrometheusRule -
GET: read the specified PrometheusRule -
PATCH: partially update the specified PrometheusRule -
PUT: replace the specified PrometheusRule
-
/apis/monitoring.coreos.com/v1/namespaces/{namespace}/prometheusrules/{name}/status-
GET: read status of the specified PrometheusRule -
PATCH: partially update status of the specified PrometheusRule -
PUT: replace status of the specified PrometheusRule
-
10.2.1. /apis/monitoring.coreos.com/v1/prometheusrules 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
- HTTP method
-
GET - Description
- list objects of kind PrometheusRule
| HTTP code | Reponse body |
|---|---|
| 200 - OK |
|
| 401 - Unauthorized | Empty |