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 类型的对象
Expand
表 9.1. HTTP 响应
HTTP 代码响应正文

200 - OK

PrometheusRuleList 模式

401 - Unauthorized

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部