8.2. API endpoints


The following API endpoints are available:

  • /api/v1/secrets

    • GET: list or watch objects of kind Secret
  • /api/v1/watch/secrets

    • GET: watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead.
  • /api/v1/namespaces/{namespace}/secrets

    • DELETE: delete collection of Secret
    • GET: list or watch objects of kind Secret
    • POST: create a Secret
  • /api/v1/watch/namespaces/{namespace}/secrets

    • GET: watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead.
  • /api/v1/namespaces/{namespace}/secrets/{name}

    • DELETE: delete a Secret
    • GET: read the specified Secret
    • PATCH: partially update the specified Secret
    • PUT: replace the specified Secret
  • /api/v1/watch/namespaces/{namespace}/secrets/{name}

    • GET: watch changes to an object of kind Secret. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.

8.2.1. /api/v1/secrets

HTTP method
GET
Description
list or watch objects of kind Secret
Expand
表 8.1. HTTP responses
HTTP codeReponse body

200 - OK

SecretList schema

401 - Unauthorized

Empty

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

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

让开源更具包容性

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

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部