3.2. API 端点


可用的 API 端点如下:

  • /api/v1/podtemplates

    • GET: 列出或监视类型为 PodTemplate 的对象
  • /api/v1/watch/podtemplates

    • GET: 观察单个对 PodTemplate 列表的更改。已弃用:改为使用 'watch' 参数及列表操作。
  • /api/v1/namespaces/{namespace}/podtemplates

    • DELETE: 删除 PodTemplate 集合
    • GET: 列出或监视类型为 PodTemplate 的对象
    • POST :创建一个 PodTemplate
  • /api/v1/watch/namespaces/{namespace}/podtemplates

    • GET: 观察单个对 PodTemplate 列表的更改。已弃用:改为使用 'watch' 参数及列表操作。
  • /api/v1/namespaces/{namespace}/podtemplates/{name}

    • DELETE :删除 PodTemplate
    • GET :读取指定的 PodTemplate
    • PATCH: 部分更新指定的 PodTemplate
    • PUT :替换指定的 PodTemplate
  • /api/v1/watch/namespaces/{namespace}/podtemplates/{name}

    • GET: 观察对类型为 PodTemplate 的对象的更改。已弃用:使用带有 list 操作的 'watch' 参数,而是过滤到带有 'fieldSelector' 参数的单个项目。

3.2.1. /api/v1/podtemplates

HTTP 方法
GET
描述
列出或监视类型为 PodTemplate 的对象
Expand
表 3.1. HTTP 响应
HTTP 代码响应正文

200 - OK

PodTemplateList schema

401 - Unauthorized

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

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

让开源更具包容性

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

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部